I have a lot of tif images I would like to convert to a web friendly format. Ive been playing a little bit with imagemagick (and a couple other libraries) to try to convert them, but the resulting image is a lot larger than the original, uncompressed image.
For example:
1.tif - 348.2kB
1.png - 781.7 kB
1.jpg - 429.1 kb
2.tif - 49.8 kB
2.png - 76.2 kB
2.jpg 900.4 kB
3.tif 7.7 kB
3.png 21.4 kB
3.jpg 191.3 kB
The command im using:
convert *.tif -set filename: "%t" %[filename:].jpg
Im not an expert, but I dont understand how passing from an uncompressed source image to a compressed one makes the size explode. Any idea of what is happening?
After running the proposed command
identify -format "%f: size: %B, compression: %C\n" *png *tif *jpg
I get the following output
00000001.png: size: 104522, compression: Zip
00000002.png: size: 23565, compression: Zip
00000003.png: size: 58936, compression: Zip
00000001.tif: size: 74122, compression: Group4
00000002.tif: size: 10946, compression: Group4
00000003.tif: size: 29702, compression: Group4
00000001.jpg: size: 1011535, compression: JPEG
00000002.jpg: size: 226068, compression: JPEG
00000003.jpg: size: 457045, compression: JPEG