Unable to read Orientation exif information from webp

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
saurabheights
Posts: 8
Joined: 2016-09-24T05:16:10-07:00
Authentication code: 1151

Unable to read Orientation exif information from webp

Post by saurabheights »

IM Info:-
Version: ImageMagick 7.0.3-0 Q16 x86_64 2016-09-09 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr lzma openexr pangocairo png tiff webp wmf x xml zlib

I am creating webp from jpeg while preserving exif metadata using cwebp tool. When I try to read Orientation metadata, IM is not able to read it, but exiftool shows its there.

Code: Select all


$ identify  -format '%[exif:orientation]\n' AllExifOrientationValues/Orientation5.jpeg
5
$ cwebp -metadata exif AllExifOrientationValues/Orientation5.jpeg -o WebpOrientation/Orientation5.webp 
Saving file 'WebpOrientation/Orientation5.webp'
File:      AllExifOrientationValues/Orientation5.jpeg
Dimension: 1920 x 2560
Output:    353554 bytes Y-U-V-All-PSNR 39.65 46.55 45.75   40.95 dB
block count:  intra4: 13670
              intra16: 5530  (-> 28.80%)
              skipped block: 101 (0.53%)
bytes used:  header:            429  (0.1%)
             mode-partition:  49604  (14.0%)
 Residuals bytes  |segment 1|segment 2|segment 3|segment 4|  total
    macroblocks:  |       0%|       4%|      23%|      71%|   19200
      quantizer:  |      36 |      33 |      29 |      24 |
   filter level:  |      11 |       6 |       6 |      10 |
Metadata:
  * EXIF data:        90 bytes
$ identify  -format '%[exif:orientation]\n' WebpOrientation/Orientation5.webp
identify: unknown image property "%[exif:orientation]" @ warning/property.c/InterpretImageProperties/3823.

$ cwebp -version
0.5.1

$ exiftool -G WebpOrientation/Orientation5.webp 
[ExifTool]      ExifTool Version Number         : 9.46
[File]          File Name                       : Orientation5.webp
[File]          Directory                       : WebpOrientation
[File]          File Size                       : 345 kB
[File]          File Modification Date/Time     : 2016:10:24 13:02:32+05:30
[File]          File Access Date/Time           : 2016:10:24 13:02:51+05:30
[File]          File Inode Change Date/Time     : 2016:10:24 13:02:32+05:30
[File]          File Permissions                : rw-rw-r--
[File]          File Type                       : WEBP
[File]          MIME Type                       : image/webp
[File]          Exif Byte Order                 : Big-endian (Motorola, MM)
[RIFF]          VP8 Version                     : 0 (bicubic reconstruction, normal loop)
[RIFF]          Image Width                     : 1920
[RIFF]          Horizontal Scale                : 0
[RIFF]          Image Height                    : 2560
[RIFF]          Vertical Scale                  : 0

[EXIF]          Orientation                     : Mirror horizontal and rotate 270 CW

[EXIF]          X Resolution                    : 1
[EXIF]          Y Resolution                    : 1
[EXIF]          Resolution Unit                 : None
[EXIF]          Y Cb Cr Positioning             : Centered
[Composite]     Image Size                      : 1920x2560

$ exiftool -ver
9.46

$ identify -verbose WebpOrientation/Orientation5.webp
Image: WebpOrientation/Orientation5.webp
  Format: WEBP (WebP Image Format)
  Mime type: image/webp
  Class: DirectClass
  Geometry: 1920x2560+0+0
  Units: Undefined
  Type: TrueColor
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    Red: 8-bit
    Green: 8-bit
    Blue: 8-bit
  Channel statistics:
    Pixels: 4915200
    Red:
      min: 0 (0)
      max: 255 (1)
      mean: 134.862 (0.528869)
      standard deviation: 55.6515 (0.218241)
      kurtosis: -0.760559
      skewness: -0.458743
      entropy: 0.948789
    Green:
      min: 0 (0)
      max: 255 (1)
      mean: 94.5574 (0.370813)
      standard deviation: 61.4918 (0.241144)
      kurtosis: -1.15862
      skewness: 0.328752
      entropy: 0.934995
    Blue:
      min: 0 (0)
      max: 255 (1)
      mean: 85.4911 (0.335259)
      standard deviation: 59.7074 (0.234147)
      kurtosis: -0.559961
      skewness: 0.65232
      entropy: 0.938899
  Image statistics:
    Overall:
      min: 0 (0)
      max: 255 (1)
      mean: 104.97 (0.411647)
      standard deviation: 59.0008 (0.231376)
      kurtosis: -0.70326
      skewness: 0.17154
      entropy: 0.940894
  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)
  Alpha color: grey74
  Background color: white
  Border color: srgb(223,223,223)
  Transparent color: none
  Interlace: None
  Intensity: Undefined
  Compose: Over
  Page geometry: 1920x2560+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: Undefined
  Orientation: Undefined
  Properties:
    date:create: 2016-10-24T13:02:32+06:00
    date:modify: 2016-10-24T13:02:32+06:00
    signature: 1a7afe32d76cc7beccbc5a8d798344c7dac7fc4d5ebb5aa0d84ff46d8e7669c2
  Artifacts:
    verbose: true
  Tainted: False
  Filesize: 354KB
  Number pixels: 4.915M
  Pixels per second: 37.81MB
  User time: 0.130u
  Elapsed time: 0:01.129
  Version: ImageMagick 7.0.3-0 Q16 x86_64 2016-09-09 http://www.imagemagick.org

Image Link: https://s16.postimg.org/576u48hwl/Orientation5.jpg

Please let me know if there is any other information I should provide. Thank you.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Unable to read Orientation exif information from webp

Post by fmw42 »

saurabheights
Posts: 8
Joined: 2016-09-24T05:16:10-07:00
Authentication code: 1151

Re: Unable to read Orientation exif information from webp

Post by saurabheights »

Hi,
Sorry, I was away for too long.

Thank you for the issue link.
Post Reply