Developer forum

Forum » CMS - Standard features » Image handler - orientation problem

Image handler - orientation problem

Bogdan Ciocsan
Reply

Hi,

I am experiencing some weird behavior from the getImage.ashx function. 

When I try to resize using getImage, the image gets turned, meaning that it shows in landscape mode, instead of portrait. 

Picture without getImage:

http://buch-copenhagen.smarttest.dk/files/images/products/Franckl%20Pantalon%20Cocomin_Taupe_3.JPG

GetImage:

http://buch-copenhagen.smarttest.dk/admin/public/GetImage.ashx?Image=/files/images/products/Franckl%20Pantalon%20Cocomin_Taupe_3.JPG&Height=700&Width=700&Compression=100

Is there any way to fix that using a parameter in the getImage call? 

PS: I am using version 8.7 

 

Best regards

Bogdan 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Bogdan

From what I can see both versions are landscape...? see my dumps.

Or am I missing something?

Capture.PNG Capture2.PNG
 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Be aware, that you original picture might contain exif information that the image is taken with the camera standing up - and your computer can find out to flip it automatically. On mac maybe?

Votes for this answer: 1
 
Bogdan Ciocsan
Reply

Hi Nicolai, we actually found that the exif was the problem yesterday, but I did not get the chance to post anything in the forum.

Anyway, on a side note, look at the attachment below to see how the first image looks in my browser, it's a bit weird that you are seeing both in landscape mode.

Thanks for the help.

Best regards

Bogdan

 

getimage-example.png
 
Nicolai Høeg Pedersen
Reply

It seems that Firefox turns the image - IE Edge does not... It aint easy :-)

 

You must be logged in to post in the forum