Page 1 of 1
How to convert PNG as tinypng.com does?
Posted: Fri Aug 04, 2023 7:35 pm
by cy66a
Hi, guys!
I noticed that when I convert PNG images, they are much larger than when I do it with tinypng.com service.
I tried different combinations of compression ratio and filters, but nothing helps.
Can you
help me to create a profile or just tell me settings combination in order to achieve the same result as tinypng.com?
Best regards!
Re: How to convert PNG as tinypng.com does?
Posted: Fri Aug 04, 2023 8:33 pm
by cday
Could you either post example tinypng.com and XnConvert images, or use XnView MP (for example) to examine the differences in the properties of the images. Maybe the colour depths are different??
Or if easier maybe post an original image for examination.
Re: How to convert PNG as tinypng.com does?
Posted: Mon Aug 07, 2023 2:30 am
by XnTriq
TinyPNG's compression is lossy. According to XnView (
Image →
Count colors used),
example-orig.png has 14'983 unique colors, while
example-shrunk.png has only 236. Inspecting these examples with
TweakPNG shows that the color depth has been reduced from truecolor + alpha channel to indexed + alpha channel. So-called “
ancillary chunks” (e.g. metadata) have also been removed.
Because I use
Pngyu/
PNGoo (for lossy color reduction) and
PngOptimizer (for lossless compression), I put buttons to these programs on XnView's toolbar.

- https://www.tinypng.com/images/example-orig.png
- example-orig.png (55.57 KiB) Viewed 25747 times

- https://www.tinypng.com/images/example-shrunk.png
- example-shrunk.png (15.03 KiB) Viewed 25747 times

- example-orig.png compressed with PngOptimizer
- png-optimizer.png (50.4 KiB) Viewed 25747 times

- example-orig.png compressed with Pngyu (256 colors)
- pngynu.png (16.3 KiB) Viewed 25747 times

- example-orig.png compressed with Pngyu (256 colors) and PngOptimizer
- pngynu+png-optimizer.png (14.93 KiB) Viewed 25747 times
Re: How to convert PNG as tinypng.com does?
Posted: Tue Aug 22, 2023 2:12 pm
by cy66a
Many thanks!