View Single Post
Old 08-03-2023, 11:04 AM   #3
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Ah, of course! I forgot that PNG was lossless.

I grabbed a couple of these large PNGs and using ImageMagick's convert program and could shrink these to a much smaller files that are still more than usable for a news recipe. These are converted with convert -resize 100000@ :

Code:
img15.png PNG 1975x465 1975x465+0+0 8-bit sRGB 631111B 0.000u 0:00.000
img15_small.png PNG 651x153 651x153+0+0 8-bit sRGB 70669B 0.000u 0:00.000
img1_u1.png PNG 3840x2160 3840x2160+0+0 8-bit sRGB 6.93234MiB 0.000u 0:00.000
img1_u1_small.png PNG 421x237 421x237+0+0 8-bit sRGB 168503B 0.000u 0:00.000

-rw-rw-rw-  1 simonb   631111 Aug  1 06:01 img15.png
-rw-r--r--  1 simonb    70669 Aug  4 00:38 img15_small.png
-rw-rw-rw-  1 simonb  7269085 Aug  1 06:01 img1_u1.png
-rw-r--r--  1 simonb   168503 Aug  4 00:38 img1_u1_small.png
I see that calibre used to have a dependancy on ImageMagick but no longer does. Do we have any other options for doing something like what the convert program does?
snarkophilus is offline   Reply With Quote