fix: Do not optimize images when image_resolution < 1
This commit is contained in:
parent
b400d98380
commit
d6c36e1012
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ public class BinaryGraphicsDocument implements OutputFile {
|
||||||
float targetPPI = config.getImageResolution();
|
float targetPPI = config.getImageResolution();
|
||||||
//int targetQuality = config.getImageQuality();
|
//int targetQuality = config.getImageQuality();
|
||||||
//float quality = targetQuality / 100;
|
//float quality = targetQuality / 100;
|
||||||
if (blob == null || style == null || isInvalidImageFormat()) {
|
if (blob == null || style == null || isInvalidImageFormat() || targetPPI < 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
extractPPI();
|
extractPPI();
|
||||||
|
|
Loading…
Add table
Reference in a new issue