fix: Do not optimize images when image_resolution < 1

This commit is contained in:
Georgy Litvinov 2021-08-01 17:22:56 +02:00
parent b400d98380
commit d6c36e1012

View file

@ -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();