Control automatic PNG to JPG threshold?
-
I have images that are small resolution (old games) and i want to retain the crisp pixel perfect only PNG guarantees. I see that even if i try to convert those PNG to JPG it won’t do it, probably because for these kind of images PNG always produce a smaller size than PNG, examples:
The beauty in these is that i can show them in full screen using:
image-rendering: pixelated;
And they will look crisp.I want to turn ON convert PNG to JPG but, is it safe to assume these will never be converted to JPG?
If it’s not safe. I was wondering if you would like to add an option to control the automatic conversion to JPG that happens when a file size is bigger than 300KB?
If i could lower that to say 50KB i could be sure none of these small PNG will get converted while the larger images that really, should be JPG get converted.
Does that make sense?
Since this is probably specific to my case, could you point me to the file that controls those 300KB so i can reduce it on my end without bothering everyone else?
EDIT: Could this be it? https://github.com/nosilver4u/ewww-image-optimizer/blob/master/common.php#L6259
- The topic ‘Control automatic PNG to JPG threshold?’ is closed to new replies.