Skip to content

Get('orientation') always returns 'Undefined" in perlmagick #3162

@hstejas

Description

@hstejas

Prerequisites

  • [ y] I have written a descriptive issue title
  • [ y] I have verified that I am using the latest version of ImageMagick
  • [ y] I have searched open and closed issues to ensure it has not already been reported

Description

The orientation property when read from the Perl Image::Magick module always returns 'Undefined'

Steps to Reproduce

Example image: https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/orientation/landscape_2.jpg

wget https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/orientation/landscape_2.jpg
identify -format '%[orientation]' landscape_2.jpg 
TopRight

perl -MImage::Magick  -E 'my $i = Image::Magick->new; say $i->Get("version"); $i->Read("landscape_2.jpg") ; say $i->Get("magick", "orientation", "columns");'
ImageMagick 7.0.10-59 Q8 armv7l 2021-01-23 https://imagemagick.org
JPEGUndefined600

System Configuration

  • ImageMagick version:
  • Environment (Operating system, version and so on):
    • Ubuntu 20.04
    • Ubuntu 18.04
  • Additional information:
    • perl versions 5.30 and 5.28

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions