Is it possible to output file type and progressiveness only?

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
imagenki

Is it possible to output file type and progressiveness only?

Post by imagenki »

Hi I tried this command to output only file type.

Code: Select all

identify -format "%m" 0000048884_20080529155208.jpg
However, I can't find any info related to a way to find progressiveness. Is there special format letter to return it that I might have missed?

Thanks in advance.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Is it possible to output file type and progressiveness only?

Post by fmw42 »

imagenki wrote:Hi I tried this command to output only file type.

Code: Select all

identify -format "%m" 0000048884_20080529155208.jpg
However, I can't find any info related to a way to find progressiveness. Is there special format letter to return it that I might have missed?

Thanks in advance.
Best I can figure out, you have to extract it from the verbose info:

convert rose: -interlace line rose.jpg
identify -verbose rose.jpg | grep "Interlace:"

returns:
Interlace: JPEG


see
http://www.imagemagick.org/script/comma ... #interlace
for JPEG progressive via interlace line or plane
imagenki

Re: Is it possible to output file type and progressiveness only?

Post by imagenki »

fmw42 wrote: convert rose: -interlace line rose.jpg
identify -verbose rose.jpg | grep "Interlace:"
I think that should work. How would I have not thought about that??? :?
Thanks so much!
Post Reply