Thread: PNG to JPG
View Single Post
Old 03-26-2022, 11:39 AM   #4
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 451
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
I often see this. Given the quality of images on an e-ink reader, I don't care much about absolute image quality. On the Kindle or Kobo I usually can't tell the difference after I seriously change and compress images. I use ImagMagick from the command line:

1. Open the book in the editor, export all the png images to a working directory.
2. In that directory, run mogrify -format jpg *.png from a terminal, of course ImageMagick has to be installed.
3. Back in the editor, delete all the png files and import all the jpg files you made
4. In search & replace, look for .png and replace with .jpg in all text files
5. Run compress images lossily at a factor of 50.

That actually takes only a minute or two after you have done it a couple of times. When you are dealing with 40 or 50 or more images, it saves hours compared to one-by-one processing.
retiredbiker is offline   Reply With Quote