Open xerenahmed opened 2 years ago
What's the expectation here? PNG is a lossless format and optimized for computer graphics, not photos. JPEG achieves its smaller size due to its lossy compression. So I don't see how the PNG could be smaller than the JPEG, even at high (lossless!) compression.
IMO the only way out would be to use a lossy compression (imagequant does that for example), but that more or less destroys the advantage of PNG.
code sample:
image is jpeg by default.
the image:![00042b7d-d3d4-466a-8e79-b49f22904b98_big](https://user-images.githubusercontent.com/35738714/148097061-edc60658-546b-43e2-833d-d3d5d5c547b6.jpg)