Out put File size differing from IM version to version

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
sireeshala
Posts: 38
Joined: 2013-09-27T04:00:05-07:00
Authentication code: 6789

Out put File size differing from IM version to version

Post by sireeshala »

Hi ,

previously i am working on 6.8.7-9 .Using the following command to convert a file

Code: Select all

convert.exe test.tif -density 300x300 -quality 50 -compress Group4 -resize  2541x3300! test_out.tif 
for a sample i got the file size as 63KB

with the same file and same command with the IM version 6.9.0-0 giving the file size as 56KB .its still decreased with 6.9.1-2 version .

Can i know the reason exactly why we got different file sizes ?
Is there any cmd parametre to remove that differences ?
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: Out put File size differing from IM version to version

Post by glennrp »

Run "identify -verbose" on each of the output files. That might give you an idea of where the differences are.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Out put File size differing from IM version to version

Post by fmw42 »

I wonder if -quality 50 is the correct value/meaning of quality for tiff Group4. Different formats use different ways of using -quality. See http://www.imagemagick.org/script/comma ... hp#quality which does not even list TIFF. Though using the same value should give the same output, unless there has been some changes since 6.8.7.9.

Also are you using the same version of libtiff in both versions of IM?
sireeshala
Posts: 38
Joined: 2013-09-27T04:00:05-07:00
Authentication code: 6789

Re: Out put File size differing from IM version to version

Post by sireeshala »

How can i Know the libtiff version ?
If i did not use the -quality 50 in my conversion still the issue exists. I am able to see the size diferences
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Out put File size differing from IM version to version

Post by fmw42 »

convert -list format

will show you the version of most delegate libraries for the given image format


alternately type this at the terminal window

tiffinfo
Post Reply