ExifImageHeight from identify

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Locked
mkuhfuss
Posts: 7
Joined: 2019-06-10T02:23:03-07:00
Authentication code: 1152

ExifImageHeight from identify

Post by mkuhfuss »

Hi,

i got no result if i grep Image height form exif data like:
identify -format %[EXIF:ExifImageHeight] preview.jpg

Width is working:
identify -format %[EXIF:ExifImageWidth] preview.jpg

but not height.
Error: identify-im6.q16: unknown image property "%[EXIF:ExifImageHeight]"

When i open the Image in irfan view and look at the exif data i got this:
https://tmpfiles.org/download/30105/exif.jpg

Image

Is this a bug or what is the problem?
Any ideas?

Version:
Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: ExifImageHeight from identify

Post by snibgo »

I suggest you link to a sample input file that has the problem.
snibgo's IM pages: im.snibgo.com

mkuhfuss
Posts: 7
Joined: 2019-06-10T02:23:03-07:00
Authentication code: 1152

Re: ExifImageHeight from identify

Post by mkuhfuss »

No i only write here for the post "preview.jpg". In my Code the Image path is correct. Width is working!!

mkuhfuss
Posts: 7
Joined: 2019-06-10T02:23:03-07:00
Authentication code: 1152

Re: ExifImageHeight from identify

Post by mkuhfuss »

Solution:

It's not:
identify -format %[EXIF:ExifImageHeight] preview.jpg

it must be:
identify -format %[EXIF:ExifImageLength] preview.jpg

Locked