Quote:
Originally Posted by KevinH
Unless it is a state secret ... how on earth do you get your image file sizes so small?
[...]
I then compared it to your pageedit.png that you produced (literally the same width and height and ppi) and it was only 35kb - less than 1/10th my file size!.
How is that possible? Your file sizes are truly amazing and they still look great on the screen.
|
It looks like they were lossy conversions by:
- converting to Indexed (256 colors or less)
- Ehh, don't know how much I agree with that on some of these images. (See note below.)
- resizing/lowering resolution.
- Again, I don't agree on many of these.
- Remember, there are now higher DPI devices out there + higher resolution monitors coming out. You want to future-proof, not go backwards.
- And while yes, some of those 4k images were a bit excessive, but I definitely wouldn't shrink down to 800px.
Side Note: See
my 2013 ScriptPNG post explaining PNG compression + Indexing.
Indexing is fine on very basic images, like:
cp-menu.png
Here's the one I compressed a few days ago vs. Indexed (145 KB vs. 40.5 KB):
The 1st is full RGB + 2nd only has 128 colors.
Very little visual difference.
But to resize down to a thimble PLUS Indexing? Compare the above 2 with:
It went from 684x228 -> 226x91 (8.09 KB)....
Sure, the filesize is "much smaller", but:
- the text is all fuzzy/blurry (because of resizing/artifacting!).
- you threw away so much of the information/color with an enormous lossy conversion.
(Also see my other 2013 posts about JPG/GIF/PNG and lossy conversions:
"Tables in an epub?". Especially posts #5+8.)
Quote:
Originally Posted by KevinH
I used Gimp and rescaled my original macOS screen capture pageedit.png file to 800 by 850 and downsampled it from 144 ppi to 72 ppi and saved it.
|
You can Index in GIMP by:
1.
Image > Mode > Indexed.
2.
Generate optimum palette and set the "Maximum number of colors". This will be a number from 2->256.
Depending on the image, sometimes these can be Indexed down to very few colors (
like the 17 I use on formulas), and you'll visually see very little difference.
PS. And "DPI" in PNGs is gibberish. It's only metadata that doesn't mean anything. Changing that number won't save you any filesize.