diff --git a/Wkhtmltopdf.NetCore.Test/Options/ConvertOptionsTests.cs b/Wkhtmltopdf.NetCore.Test/Options/ConvertOptionsTests.cs
index 45d8acf..af5ca5a 100644
--- a/Wkhtmltopdf.NetCore.Test/Options/ConvertOptionsTests.cs
+++ b/Wkhtmltopdf.NetCore.Test/Options/ConvertOptionsTests.cs
@@ -39,12 +39,15 @@ public void ConvertsAll()
PageWidth = AddWithFormat(++counter + 0.5, "--page-width {0}"),
IsGrayScale = AddWithValue(true, "-g"),
IsLowQuality = AddWithValue(true, "-l"),
+ DisableSmartShrinking = AddWithValue(true, "--disable-smart-shrinking"),
Replacements = AddWithValues(new Dictionary
{
{"one", "1"},
{"two", "2"}
},
- new[] {"--replace \"one\" \"1\"", "--replace \"two\" \"2\""})
+ new[] {"--replace \"one\" \"1\"", "--replace \"two\" \"2\""}),
+ ImageDpi = AddWithFormat(++counter, "--image-dpi {0}"),
+ ImageQuality = AddWithFormat(++counter, "--image-quality {0}")
};
var result = options.GetConvertOptions();
diff --git a/Wkhtmltopdf.NetCore/Implementation/ConvertOptions.cs b/Wkhtmltopdf.NetCore/Implementation/ConvertOptions.cs
index 43136de..376b3c4 100644
--- a/Wkhtmltopdf.NetCore/Implementation/ConvertOptions.cs
+++ b/Wkhtmltopdf.NetCore/Implementation/ConvertOptions.cs
@@ -105,6 +105,24 @@ protected string GetContentType()
[OptionFlag("--replace")]
public Dictionary Replacements { get; set; }
+ ///
+ /// Sets the compression quality of the images
+ ///
+ [OptionFlag("--image-quality")]
+ public int? ImageQuality { get; set; }
+
+ ///
+ /// Sets the dpi of the images
+ ///
+ [OptionFlag("--image-dpi")]
+ public int? ImageDpi { get; set; }
+
+ ///
+ /// Disable the intelligent shrinking strategy used by WebKit that makes the pixel/dpi ratio non-constant
+ ///
+ [OptionFlag("--disable-smart-shrinking")]
+ public bool DisableSmartShrinking { get; set; }
+
/* */
public string GetConvertOptions()
{