how to find if image is progressive or baseline

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
manit
Posts: 123
Joined: 2009-01-30T22:31:26-07:00

how to find if image is progressive or baseline

Post by manit »

Hi , I tried in windows

Code: Select all

identify -verbose  "d:\lxuser\for all\personal\more\20140327_185957.jpg"
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Class: DirectClass
  Geometry: 3264x2448+0+0
  Resolution: 72x72
  Print size: 45.3333x34
  Units: PixelsPerInch
  Type: TrueColor
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
  Channel statistics:
    Red:
      min: 0 (0)
      max: 255 (1)
      mean: 126.274 (0.495193)
      standard deviation: 76.8368 (0.301321)
      kurtosis: -1.39341
      skewness: -0.190892
    Green:
      min: 0 (0)
      max: 255 (1)
      mean: 127.333 (0.499346)
      standard deviation: 77.6117 (0.30436)
      kurtosis: -1.44636
      skewness: -0.259306
    Blue:
      min: 0 (0)
      max: 255 (1)
      mean: 122.805 (0.481589)
      standard deviation: 77.5225 (0.30401)
      kurtosis: -1.51696
      skewness: -0.211664
  Image statistics:
    Overall:
      min: 0 (0)
      max: 255 (1)
      mean: 125.471 (0.492043)
      standard deviation: 77.3244 (0.303233)
      kurtosis: -1.45024
      skewness: -0.221072
  Rendering intent: Perceptual
  Gamma: 0.454545
  Chromaticity:
    red primary: (0.64,0.33)
    green primary: (0.3,0.6)
    blue primary: (0.15,0.06)
    white point: (0.3127,0.329)
  Interlace: None
  Background color: white
  Border color: srgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Compose: Over
  Page geometry: 3264x2448+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: JPEG
  Quality: 99
  Orientation: RightTop
  Properties:
    date:create: 2014-03-27T19:08:42+06:00
    date:modify: 2014-03-27T18:59:57+05:00
    exif:ApertureValue: 28102/10000
    exif:BrightnessValue: 242/100
    exif:ColorSpace: 1
    exif:ComponentsConfiguration: 1, 2, 3, 0
    exif:Compression: 6
    exif:DateTime: 2014:03:27 18:59:54
    exif:DateTimeDigitized: 2014:03:27 18:59:54
    exif:DateTimeOriginal: 2014:03:27 18:59:54
    exif:DigitalZoomRatio: 1/1
    exif:ExifImageLength: 2448
    exif:ExifImageWidth: 3264
    exif:ExifOffset: 226
    exif:ExifVersion: 48, 50, 50, 48
    exif:ExposureBiasValue: 0/6
    exif:ExposureMode: 0
    exif:ExposureProgram: 3
    exif:ExposureTime: 59998/1000000
    exif:Flash: 0
    exif:FlashPixVersion: 48, 49, 48, 48
    exif:FNumber: 26484/10000
    exif:FocalLength: 370/100
    exif:ImageLength: 2448
    exif:ImageUniqueID: O08B0SAGD01
    exif:ImageWidth: 3264
    exif:InteroperabilityIndex: R98
    exif:InteroperabilityOffset: 938
    exif:ISOSpeedRatings: 320
    exif:JPEGInterchangeFormat: 1086
    exif:JPEGInterchangeFormatLength: 24576
    exif:Make: SAMSUNG
    exif:MakerNote: 8, 0, 1, 0, 7, 0, 4, 0, 0, 0, 48, 49, 48, 48, 2, 0, 4, 0, 1,
 0, 0, 0, 0, 32, 1, 0, 12, 0, 4, 0, 1, 0, 0, 0, 0, 0, 0, 0, 16, 0, 5, 0, 1, 0, 0
, 0, 102, 0, 0, 0, 64, 0, 4, 0, 1, 0, 0, 0, 0, 0, 0, 0, 80, 0, 4, 0, 1, 0, 0, 0,
 1, 0, 0, 0, 96, 0, 7, 0, 92, 0, 0, 0, 110, 0, 0, 0, 0, 1, 3, 0, 1, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 1, 0, 7, 0, 4, 0, 0, 0, 48, 4
9, 48, 48, 2, 0, 4, 0, 1, 0, 0, 0, 0, 32, 1, 0, 0, 1, 3, 0, 1, 0, 0, 0, 0, 0, 0,
 0, 1, 1, 3, 0, 6, 0, 0, 0, 62, 0, 0, 0, 2, 1, 3, 0, 9, 0, 0, 0, 74, 0, 0, 0, 0,
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
, 0, 0
    exif:MaxApertureValue: 28102/10000
    exif:MeteringMode: 2
    exif:Model: GT-I9082
    exif:Orientation: 6
    exif:ResolutionUnit: 2
    exif:Saturation: 0
    exif:SceneCaptureType: 0
    exif:SceneType: 1
    exif:Sharpness: 0
    exif:ShutterSpeedValue: 4058941/1000000
    exif:Software: I9082XXUBNB2
    exif:thumbnail:Orientation: 6
    exif:thumbnail:ResolutionUnit: 2
    exif:thumbnail:XResolution: 72/1
    exif:thumbnail:YResolution: 72/1
    exif:UserComment: 65, 83, 67, 73, 73, 0, 0, 0
    exif:WhiteBalance: 0
    exif:XResolution: 72/1
    exif:YCbCrPositioning: 1
    exif:YResolution: 72/1
    jpeg:colorspace: 2
    jpeg:sampling-factor: 2x2,1x1,1x1
    signature: d15e0a353012efbaa87d9ad9a3e53798dfbf47724bfe3ce6a0fe4dfbc1ff8495
  Profiles:
    Profile-exif: 25668 bytes
  Artifacts:
    filename: d:\sumeet\for all\personal\more\20140327_185957.jpg
    verbose: true
  Tainted: False
  Filesize: 2.842MB
  Number pixels: 7.99M
  Pixels per second: 34.29MB
  User time: 0.218u
  Elapsed time: 0:01.232
  Version: ImageMagick 6.8.3-5 2013-02-24 Q16 http://www.imagemagick.org
Still , not a clue.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: how to find if image is progressive or baseline

Post by fmw42 »

Interlace=none means normal. Interlace=line means progressive, as I understand it from:

http://www.imagemagick.org/Usage/formats/#jpg_write
http://www.imagemagick.org/script/comma ... #interlace

when I do

convert rose: -interlace line rose_prog.jpg

identify shows

interlace: JPEG

So I assume interlace=line and interlace=JPEG are the same for JPG images and means progressive.
Post Reply