[Skip to main content](#vessel-content)

#   how to change Product Image orientation from horizontal to vertical?

##

- **[Leinetal](/forum/user/61777-leinetal "View Leinetal's Profile")**
- [![Leinetal's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61777-leinetal "View Leinetal's Profile") Topic Author
- [ Offline](/forum/user/61777-leinetal)

Less More

- Posts: 7
- Thank you received: 0
-
-

3 years 2 months ago [\#354696](#354696) by [Leinetal](/forum/user/61777-leinetal "View Leinetal's Profile")  *[how to change Product Image orientation from horizontal to vertical?](/forum/26-product-category-display/906936-how-to-change-product-image-orientation-from-horizontal-to-vertical#354696 "-- url of the page with the problem -- :   leinetal.de  -- HikaShop version -- : 4.7.5 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1.22 -- Browser(s) name and version -- : all browser -- Error-message(debug-mod must be tuned on) -- : no error message  Hello, unfortunately, I can not figure out how to change the product image orientation.  The image i vertical and displayed in the correct orientation only if you click on the product image when the pop-up shows the image.  But on the product page, it is displayed in a horizontal orientation.  As my vendors tend to upload images of &quot;Art&quot; in both orientations, the &quot;preview&quot; shall be displayed as the pop-up image:  please have a look here:   leinetal.de/marktplatz/kategorien/produk...-postkarte-der-loewe  I'm sure that I'm simply looking not at the right spot to change that.  Any help is very appreciated :-)  sunny regards Bernd")* was created by *[Leinetal](/forum/user/61777-leinetal "View Leinetal's Profile")*

-- url of the page with the problem -- : [ leinetal.de](https://leinetal.de)
-- HikaShop version -- : 4.7.5
-- Joomla version -- : 4.3.4
-- PHP version -- : 8.1.22
-- Browser(s) name and version -- : all browser
-- Error-message(debug-mod must be tuned on) -- : no error message

Hello,
unfortunately, I can not figure out how to change the product image orientation.

The image i vertical and displayed in the correct orientation only if you click on the product image when the pop-up shows the image.

But on the product page, it is displayed in a horizontal orientation.

As my vendors tend to upload images of "Art" in both orientations, the "preview" shall be displayed as the pop-up image:

please have a look here:
[ leinetal.de/marktplatz/kategorien/produk...-postkarte-der-loewe](https://leinetal.de/marktplatz/kategorien/produkt/132-postkarte-der-loewe)

I'm sure that I'm simply looking not at the right spot to change that.

Any help is very appreciated ![:-)](/media/kunena/emoticons/3.png ":-)")

sunny regards
Bernd

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDY5MzYtaG93LXRvLWNoYW5nZS1wcm9kdWN0LWltYWdlLW9yaWVudGF0aW9uLWZyb20taG9yaXpvbnRhbC10by12ZXJ0aWNhbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14296
-
-

3 years 2 months ago -  3 years 2 months ago [\#354700](#354700) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to change Product Image orientation from horizontal to vertical?](/forum/26-product-category-display/906936-how-to-change-product-image-orientation-from-horizontal-to-vertical#354700 "-- url of the page with the problem -- :   leinetal.de  -- HikaShop version -- : 4.7.5 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1.22 -- Browser(s) name and version -- : all browser -- Error-message(debug-mod must be tuned on) -- : no error message  Hello, unfortunately, I can not figure out how to change the product image orientation.  The image i vertical and displayed in the correct orientation only if you click on the product image when the pop-up shows the image.  But on the product page, it is displayed in a horizontal orientation.  As my vendors tend to upload images of &quot;Art&quot; in both orientations, the &quot;preview&quot; shall be displayed as the pop-up image:  please have a look here:   leinetal.de/marktplatz/kategorien/produk...-postkarte-der-loewe  I'm sure that I'm simply looking not at the right spot to change that.  Any help is very appreciated :-)  sunny regards Bernd")*

Hi,

HikaShop uses the GD library available by default with PHP to process images.
Unfortunately, GD doesn't take into account the EXIF data of images.
This has been an open issue for many years:
[ github.com/libgd/libgd/issues/341](https://github.com/libgd/libgd/issues/341)
Because of that, when the tool used to capture the image used the EXIF data of the image to specify the rotation of the image, instead of really rotating the image, the thumbnails generated from these images ignore the rotation in the EXIF data and thus the thumbnails look rotated.
Unfortunately, it seems that for GD to include this will require many more years of waiting.
So we actually worked on this many years ago to manually process the EXIF data.
And thus, since HikaShop 3.3.0, HikaShop will take into account the EXIF data to auto rotate the images for the thumbnails.

However:
- if the images was uploaded and used on an HikaShop older than this version, even if you updated later on, the thumbnails generated from the original image would still not be regenerated and thus would still not take into account the EXIF rotation.
- similarly, before PHP 7.2, many EXIF formats where not supported by PHP ( [ www.php.net/manual/en/function.exif-read-data.php](https://www.php.net/manual/en/function.exif-read-data.php) ), even with the code in HikaShop, it couldn't read the EXIF data properly. So if you uploaded the image before moving to a version of PHP newer than 7.1, you would have to same problem.

This all means that normally, if you delete the images/com_hikashop/upload/thumbnails/ folder in order to let HikaShop generate the thumbnails, since you're using a recent version of PHP and a recent version of HikaShop, it should normally regenerate automatically the thumbnails with the correct auto rotation.
I actually tried to use your image on HikaShop 4.7.5 with PHP 8.1 on my end, and the auto rotation was properly taken into account.

Last edit: 3 years 2 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDY5MzYtaG93LXRvLWNoYW5nZS1wcm9kdWN0LWltYWdlLW9yaWVudGF0aW9uLWZyb20taG9yaXpvbnRhbC10by12ZXJ0aWNhbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Leinetal](/forum/user/61777-leinetal "View Leinetal's Profile")**
- [![Leinetal's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61777-leinetal "View Leinetal's Profile") Topic Author
- [ Offline](/forum/user/61777-leinetal)

Less More

- Posts: 7
- Thank you received: 0
-
-

3 years 2 months ago [\#354782](#354782) by [Leinetal](/forum/user/61777-leinetal "View Leinetal's Profile")  Replied by *[Leinetal](/forum/user/61777-leinetal "View Leinetal's Profile")* on topic *[how to change Product Image orientation from horizontal to vertical?](/forum/26-product-category-display/906936-how-to-change-product-image-orientation-from-horizontal-to-vertical#354782 "-- url of the page with the problem -- :   leinetal.de  -- HikaShop version -- : 4.7.5 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1.22 -- Browser(s) name and version -- : all browser -- Error-message(debug-mod must be tuned on) -- : no error message  Hello, unfortunately, I can not figure out how to change the product image orientation.  The image i vertical and displayed in the correct orientation only if you click on the product image when the pop-up shows the image.  But on the product page, it is displayed in a horizontal orientation.  As my vendors tend to upload images of &quot;Art&quot; in both orientations, the &quot;preview&quot; shall be displayed as the pop-up image:  please have a look here:   leinetal.de/marktplatz/kategorien/produk...-postkarte-der-loewe  I'm sure that I'm simply looking not at the right spot to change that.  Any help is very appreciated :-)  sunny regards Bernd")*

Thank you for explanation.
I will check tomorrow &amp; report.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDY5MzYtaG93LXRvLWNoYW5nZS1wcm9kdWN0LWltYWdlLW9yaWVudGF0aW9uLWZyb20taG9yaXpvbnRhbC10by12ZXJ0aWNhbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Leinetal](/forum/user/61777-leinetal "View Leinetal's Profile")**
- [![Leinetal's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61777-leinetal "View Leinetal's Profile") Topic Author
- [ Offline](/forum/user/61777-leinetal)

Less More

- Posts: 7
- Thank you received: 0
-
-

3 years 2 months ago [\#354797](#354797) by [Leinetal](/forum/user/61777-leinetal "View Leinetal's Profile")  Replied by *[Leinetal](/forum/user/61777-leinetal "View Leinetal's Profile")* on topic *[how to change Product Image orientation from horizontal to vertical?](/forum/26-product-category-display/906936-how-to-change-product-image-orientation-from-horizontal-to-vertical#354797 "-- url of the page with the problem -- :   leinetal.de  -- HikaShop version -- : 4.7.5 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1.22 -- Browser(s) name and version -- : all browser -- Error-message(debug-mod must be tuned on) -- : no error message  Hello, unfortunately, I can not figure out how to change the product image orientation.  The image i vertical and displayed in the correct orientation only if you click on the product image when the pop-up shows the image.  But on the product page, it is displayed in a horizontal orientation.  As my vendors tend to upload images of &quot;Art&quot; in both orientations, the &quot;preview&quot; shall be displayed as the pop-up image:  please have a look here:   leinetal.de/marktplatz/kategorien/produk...-postkarte-der-loewe  I'm sure that I'm simply looking not at the right spot to change that.  Any help is very appreciated :-)  sunny regards Bernd")*

Hi, i have deleted all content in that thubnail folder you mentioned above.

This does not have any Impact ![:-(](/media/kunena/emoticons/22.png ":-(")

What would be my next step?
sunny regards
Bernd

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDY5MzYtaG93LXRvLWNoYW5nZS1wcm9kdWN0LWltYWdlLW9yaWVudGF0aW9uLWZyb20taG9yaXpvbnRhbC10by12ZXJ0aWNhbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Leinetal](/forum/user/61777-leinetal "View Leinetal's Profile")**
- [![Leinetal's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/61777-leinetal "View Leinetal's Profile") Topic Author
- [ Offline](/forum/user/61777-leinetal)

Less More

- Posts: 7
- Thank you received: 0
-
-

3 years 2 months ago [\#354798](#354798) by [Leinetal](/forum/user/61777-leinetal "View Leinetal's Profile")  Replied by *[Leinetal](/forum/user/61777-leinetal "View Leinetal's Profile")* on topic *[how to change Product Image orientation from horizontal to vertical?](/forum/26-product-category-display/906936-how-to-change-product-image-orientation-from-horizontal-to-vertical#354798 "-- url of the page with the problem -- :   leinetal.de  -- HikaShop version -- : 4.7.5 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1.22 -- Browser(s) name and version -- : all browser -- Error-message(debug-mod must be tuned on) -- : no error message  Hello, unfortunately, I can not figure out how to change the product image orientation.  The image i vertical and displayed in the correct orientation only if you click on the product image when the pop-up shows the image.  But on the product page, it is displayed in a horizontal orientation.  As my vendors tend to upload images of &quot;Art&quot; in both orientations, the &quot;preview&quot; shall be displayed as the pop-up image:  please have a look here:   leinetal.de/marktplatz/kategorien/produk...-postkarte-der-loewe  I'm sure that I'm simply looking not at the right spot to change that.  Any help is very appreciated :-)  sunny regards Bernd")*

p.s Cache is deactivated and i checked from different devices browser etc.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDY5MzYtaG93LXRvLWNoYW5nZS1wcm9kdWN0LWltYWdlLW9yaWVudGF0aW9uLWZyb20taG9yaXpvbnRhbC10by12ZXJ0aWNhbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

3 years 2 months ago -  3 years 2 months ago [\#354800](#354800) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[how to change Product Image orientation from horizontal to vertical?](/forum/26-product-category-display/906936-how-to-change-product-image-orientation-from-horizontal-to-vertical#354800 "-- url of the page with the problem -- :   leinetal.de  -- HikaShop version -- : 4.7.5 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.1.22 -- Browser(s) name and version -- : all browser -- Error-message(debug-mod must be tuned on) -- : no error message  Hello, unfortunately, I can not figure out how to change the product image orientation.  The image i vertical and displayed in the correct orientation only if you click on the product image when the pop-up shows the image.  But on the product page, it is displayed in a horizontal orientation.  As my vendors tend to upload images of &quot;Art&quot; in both orientations, the &quot;preview&quot; shall be displayed as the pop-up image:  please have a look here:   leinetal.de/marktplatz/kategorien/produk...-postkarte-der-loewe  I'm sure that I'm simply looking not at the right spot to change that.  Any help is very appreciated :-)  sunny regards Bernd")*

Hello,

It's a bit of a hack but why not use CSS?

Now it remains to be seen whether this can be suitable in all cases, and especially the sizes of your images.
If on the product page the main image is always the same then there is a good chance that it will work with very little adjustment

Example : Code:

.hikashop_product_page div#hikashop_main_image_div img { transform: rotate(90deg); }

Where "**hikashop\_product\_page**" is here to be sure that the command css is use only on product page.
Therefore note that you will have to add another CSS command to first adjust the positioning of the image.
Regards

Last edit: 3 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDY5MzYtaG93LXRvLWNoYW5nZS1wcm9kdWN0LWltYWdlLW9yaWVudGF0aW9uLWZyb20taG9yaXpvbnRhbC10by12ZXJ0aWNhbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
