Filesize differences between versions using identify

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ianwinter
Posts: 1
Joined: 2016-07-14T11:27:38-07:00
Authentication code: 1151

Filesize differences between versions using identify

Post by ianwinter »

Hi,

We're looking to upgrade from 6.8.9 to 7.0.2 but one of things that's tripped us up is the file size is returning differently.

Command:

Code: Select all

/usr/bin/identify -ping -format %wx%hx%b, /file1 /file2 /file3 /file4 /file5
Output:

Code: Select all

6.8.9: 1024x1024x73280B,420x420x22376B,200x200x7372B,70x70x1809B,90x90x2498B,
7.0.2: 1024x1024x73.3KB,420x420x22.4KB,200x200x7.37KB,70x70x1.81KB,90x90x2.5KB
Now our code depends on a integer size, i.e. bytes. Right now it just lops of the B. Can identify be changed (I couldn't see anything to do it) or is this just how it is now? I'd prefer to avoid converting it in the code if I can!

Full versions:

Code: Select all

Version: ImageMagick 6.8.9-0 Q16 x86_64 2014-06-25 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib cairo djvu fftw fontconfig freetype gslib jng jpeg lcms ltdl lzma openexr pangocairo png ps rsvg tiff webp wmf x xml zlib

Version: ImageMagick 7.0.2-4 Q16 x86_64 2016-07-12 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gvc jng jpeg lcms ltdl openexr pangocairo png rsvg tiff webp wmf x xml zlib
Thanks in advance,
Ian
Post Reply