Developer forum

Forum » CMS - Standard features » GetImage and EXIF orientation data in JPG files

GetImage and EXIF orientation data in JPG files

Jimmy Hartington
Jimmy Hartington
Reply

It seems the Image Handler (GetImage.ashx) does not honor the rotation bit which can be in jpg-files (or other image files).

Below is an example of how an image looks in the backend and how it is displayed in the frontend with the Image Handler.

Here is the original file + a text file containing the metadata in the file: https://d.pr/f/uvxG34

Here is a snippet of the metadata. And the part which is not honored is the Orientation data.

Make                            : Apple
Camera Model Name               : iPhone 12 Pro
Orientation                     : Rotate 90 CW
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : 18.2
Modify Date                     : 2024:11:25 12:01:22
Host Computer                   : iPhone 12 Pro
Y Cb Cr Positioning             : Centered
Exposure Time                   : 1/121
F Number                        : 1.6
Exposure Program                : Program AE
ISO                             : 125
Exif Version                    : 0232
Date/Time Original              : 2024:11:25 12:01:22
Create Date                     : 2024:11:25 12:01:22
Offset Time                     : +01:00
Offset Time Original            : +01:00
Offset Time Digitized           : +01:00
Components Configuration        : Y, Cb, Cr, -
Shutter Speed Value             : 1/121
Aperture Value                  : 1.6
Brightness Value                : 3.667022955
Exposure Compensation           : 0
Metering Mode                   : Multi-segment
Flash                           : Off, Did not fire
Focal Length                    : 4.2 mm

Has anybody else run into this issue? It happens in both DW 9 and DW 10.


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Jim

We will try to have a look at this - seems like we have support for it in the underlying image component, so we will see if there is an easy fix.

BR Nicolai

 
Jimmy Hartington
Jimmy Hartington
Reply

Hi Nic

Thanks for looking into it.

This is probably an edged case since if you have not seen it before.

So I will just say if an eventual fix degrades the performance of the Image Handler, then it is probably not a good idea to fix it.

Kind regards Jimmy

 

You must be logged in to post in the forum