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

#   Orientation of uploaded images is wrong

##

- **[icomex](/forum/user/4967-icomex "View icomex's Profile")**
- [![icomex's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4967.png)](/forum/user/4967-icomex "View icomex's Profile") Topic Author
- [ Offline](/forum/user/4967-icomex)

Less More

- Posts: 149
- Thank you received: 6
-
-

7 years 1 month ago [\#311710](#311710) by [icomex](/forum/user/4967-icomex "View icomex's Profile")  *[Orientation of uploaded images is wrong](/forum/26-product-category-display/898427-orientation-of-uploaded-images-is-wrong#311710 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.23  Our customer has started using her iPhone for product photography - however once she downloads the JPG files to Windows and then uploads them to Hikashop, the images are not rotated in accordance with the Orientation settings stored in the EXIF data.  Release notes for Hikashop 3.3.0 state &quot;We now auto rotate the images during the upload when the EXIF data of the image specifies an orientation.&quot; Is this still working correctly?  I have also read that JCE occasionally has issues with this. Could JCE be interfering with a Hikashop image upload?  I work on a Mac, so it would be an easy matter for me to strip the Orientation setting, or even use preview to export a properly rotated image before uploading. But I have no idea of a simple way to do that on a Windows machine. without software they don't have or time they don't want to spend.")* was created by *[icomex](/forum/user/4967-icomex "View icomex's Profile")*

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.12
-- PHP version -- : 7.2.23

Our customer has started using her iPhone for product photography - however once she downloads the JPG files to Windows and then uploads them to Hikashop, the images are not rotated in accordance with the Orientation settings stored in the EXIF data.

Release notes for Hikashop 3.3.0 state "We now auto rotate the images during the upload when the EXIF data of the image specifies an orientation." Is this still working correctly?

I have also read that JCE occasionally has issues with this. Could JCE be interfering with a Hikashop image upload?

I work on a Mac, so it would be an easy matter for me to strip the Orientation setting, or even use preview to export a properly rotated image before uploading. But I have no idea of a simple way to do that on a Windows machine. without software they don't have or time they don't want to spend.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTg0Mjctb3JpZW50YXRpb24tb2YtdXBsb2FkZWQtaW1hZ2VzLWlzLXdyb25nP3RtcGw9bWFya2Rvd24=) 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: 86540
- Thank you received: 14301
-
-

7 years 1 month ago [\#311711](#311711) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Orientation of uploaded images is wrong](/forum/26-product-category-display/898427-orientation-of-uploaded-images-is-wrong#311711 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.23  Our customer has started using her iPhone for product photography - however once she downloads the JPG files to Windows and then uploads them to Hikashop, the images are not rotated in accordance with the Orientation settings stored in the EXIF data.  Release notes for Hikashop 3.3.0 state &quot;We now auto rotate the images during the upload when the EXIF data of the image specifies an orientation.&quot; Is this still working correctly?  I have also read that JCE occasionally has issues with this. Could JCE be interfering with a Hikashop image upload?  I work on a Mac, so it would be an easy matter for me to strip the Orientation setting, or even use preview to export a properly rotated image before uploading. But I have no idea of a simple way to do that on a Windows machine. without software they don't have or time they don't want to spend.")*

Hi,

We indeed added a patch for that in the 3.3.0 and it's still there and working as far as I can test.
JCE is not interfering.
Maybe there is something specific to the images your customer is using or where / how she is uploading them.
We would need that you provide a JPG file with the issue and precise instructions to reproduce the problem so that we can look into it.
Regarding a windows software to auto rotate images based on the EXIF data, you have this one:
[ savolai.net/software/jpeg-autorotate/](https://savolai.net/software/jpeg-autorotate/)
It's free and really easy to use.

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

- **[icomex](/forum/user/4967-icomex "View icomex's Profile")**
- [![icomex's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4967.png)](/forum/user/4967-icomex "View icomex's Profile") Topic Author
- [ Offline](/forum/user/4967-icomex)

Less More

- Posts: 149
- Thank you received: 6
-
-

7 years 1 month ago [\#311739](#311739) by [icomex](/forum/user/4967-icomex "View icomex's Profile")  Replied by *[icomex](/forum/user/4967-icomex "View icomex's Profile")* on topic *[Orientation of uploaded images is wrong](/forum/26-product-category-display/898427-orientation-of-uploaded-images-is-wrong#311739 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.23  Our customer has started using her iPhone for product photography - however once she downloads the JPG files to Windows and then uploads them to Hikashop, the images are not rotated in accordance with the Orientation settings stored in the EXIF data.  Release notes for Hikashop 3.3.0 state &quot;We now auto rotate the images during the upload when the EXIF data of the image specifies an orientation.&quot; Is this still working correctly?  I have also read that JCE occasionally has issues with this. Could JCE be interfering with a Hikashop image upload?  I work on a Mac, so it would be an easy matter for me to strip the Orientation setting, or even use preview to export a properly rotated image before uploading. But I have no idea of a simple way to do that on a Windows machine. without software they don't have or time they don't want to spend.")*

All I have is a few sample images she provide to me. I can see the exif settings within the files using Preview, and when I export the file from Preview, the new exported file has no Orientation setting and imports properly.

Thank you for the windows lead. I will read up a bit about it and pass it along.

[ ![DSCF0909.JPG](/forum/attachment/47878) ](/forum/attachment/47878 "DSCF0909.JPG")

[ ![DSCF0910.JPG](/forum/attachment/47879) ](/forum/attachment/47879 "DSCF0910.JPG")

[ ![DSCF0912.JPG](/forum/attachment/47880) ](/forum/attachment/47880 "DSCF0912.JPG")

[ ![DSCF0911.JPG](/forum/attachment/47881) ](/forum/attachment/47881 "DSCF0911.JPG")

- [ ![DSCF0909.JPG](/forum/attachment/47878) ](/forum/attachment/47878 "DSCF0909.JPG") [ ](/forum/attachment/47878?download=1 "DSCF0909.JPG")
- [ ![DSCF0910.JPG](/forum/attachment/47879) ](/forum/attachment/47879 "DSCF0910.JPG") [ ](/forum/attachment/47879?download=1 "DSCF0910.JPG")
- [ ![DSCF0912.JPG](/forum/attachment/47880) ](/forum/attachment/47880 "DSCF0912.JPG") [ ](/forum/attachment/47880?download=1 "DSCF0912.JPG")
- [ ![DSCF0911.JPG](/forum/attachment/47881) ](/forum/attachment/47881 "DSCF0911.JPG") [ ](/forum/attachment/47881?download=1 "DSCF0911.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTg0Mjctb3JpZW50YXRpb24tb2YtdXBsb2FkZWQtaW1hZ2VzLWlzLXdyb25nP3RtcGw9bWFya2Rvd24=) 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: 86540
- Thank you received: 14301
-
-

7 years 1 month ago [\#311801](#311801) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Orientation of uploaded images is wrong](/forum/26-product-category-display/898427-orientation-of-uploaded-images-is-wrong#311801 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.23  Our customer has started using her iPhone for product photography - however once she downloads the JPG files to Windows and then uploads them to Hikashop, the images are not rotated in accordance with the Orientation settings stored in the EXIF data.  Release notes for Hikashop 3.3.0 state &quot;We now auto rotate the images during the upload when the EXIF data of the image specifies an orientation.&quot; Is this still working correctly?  I have also read that JCE occasionally has issues with this. Could JCE be interfering with a Hikashop image upload?  I work on a Mac, so it would be an easy matter for me to strip the Orientation setting, or even use preview to export a properly rotated image before uploading. But I have no idea of a simple way to do that on a Windows machine. without software they don't have or time they don't want to spend.")*

Hi,

I downloaded all 4 images and uploaded them in a product on my end and they got the proper orientation in all the places I could check in HikaShop.
Could it be that you have an old version of HikaShop on that website and thus it doesn't have the patch for the auto rotation based on the exif data ?
Or could it be that the exif data is missing in these images ?
I checked the exif data in the files you provided and it seems to be missing :
[ monosnap.com/file/Agyr1wrSjI258yD4oDBkprkGIhozrk](https://monosnap.com/file/Agyr1wrSjI258yD4oDBkprkGIhozrk)

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

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

7 years 1 month ago [\#311838](#311838) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Orientation of uploaded images is wrong](/forum/26-product-category-display/898427-orientation-of-uploaded-images-is-wrong#311838 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.23  Our customer has started using her iPhone for product photography - however once she downloads the JPG files to Windows and then uploads them to Hikashop, the images are not rotated in accordance with the Orientation settings stored in the EXIF data.  Release notes for Hikashop 3.3.0 state &quot;We now auto rotate the images during the upload when the EXIF data of the image specifies an orientation.&quot; Is this still working correctly?  I have also read that JCE occasionally has issues with this. Could JCE be interfering with a Hikashop image upload?  I work on a Mac, so it would be an easy matter for me to strip the Orientation setting, or even use preview to export a properly rotated image before uploading. But I have no idea of a simple way to do that on a Windows machine. without software they don't have or time they don't want to spend.")*

@icomex:

It's likely that it's a server-side problem:
1. Usually no issue, but please double-check that EXIF is enabled in your PHP: /administrator/index.php?option=com_admin&amp;view=sysinfo
2. Your image files have an uppercase suffix (".JPG"), and for certain systems (Unix/Linux) that's not the same as ".jpg". So make sure that in the HikaShop config, under Main -&gt; Images -&gt; Allowed images, you have entered both jpg and JPG -- and, just in case, the same for all other allowed suffixes.

Sidenote:
Kunena (= this forum software) may alter image data when attaching/inserting them in posts. To make sure this does not happen (so the support team gets "original" files), zip them first, then attach them as .zip files.

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

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

- **[icomex](/forum/user/4967-icomex "View icomex's Profile")**
- [![icomex's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4967.png)](/forum/user/4967-icomex "View icomex's Profile") Topic Author
- [ Offline](/forum/user/4967-icomex)

Less More

- Posts: 149
- Thank you received: 6
-
-

7 years 1 month ago -  7 years 1 month ago [\#311857](#311857) by [icomex](/forum/user/4967-icomex "View icomex's Profile")  Replied by *[icomex](/forum/user/4967-icomex "View icomex's Profile")* on topic *[Orientation of uploaded images is wrong](/forum/26-product-category-display/898427-orientation-of-uploaded-images-is-wrong#311857 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.2.23  Our customer has started using her iPhone for product photography - however once she downloads the JPG files to Windows and then uploads them to Hikashop, the images are not rotated in accordance with the Orientation settings stored in the EXIF data.  Release notes for Hikashop 3.3.0 state &quot;We now auto rotate the images during the upload when the EXIF data of the image specifies an orientation.&quot; Is this still working correctly?  I have also read that JCE occasionally has issues with this. Could JCE be interfering with a Hikashop image upload?  I work on a Mac, so it would be an easy matter for me to strip the Orientation setting, or even use preview to export a properly rotated image before uploading. But I have no idea of a simple way to do that on a Windows machine. without software they don't have or time they don't want to spend.")*

I can't get the Exif data from the images I uploaded here either. But it's definitely in the files I received from the customer.

Here's what I've found out. First, there was a server issue. Our CPanel configuration for this server did not have the EXIF build extension active in PHP. Once we turned that on, images would rotate properly. I suspect we never saw this before because our background is in printing, so no photo goes through our internal workflow without being sized appropriately out of habit.

Now that PHP sees the Exif data, images are rotated, but these particular files now fail during upload. (We see the red progress bar when we attempt it) We think this is due to the file sizes. Our server is set up to accept large file uploads, but uploading these (which are about 3400px x 4600 px) seems to overwhelm Hikashop's resizing routine IF the file needs to be rotated as well as resized. The sample files they gave us that don't need to be rotated are uploaded and resized correctly. Smaller files upload properly as well.

Our preference, would, of course, be to resize the images beforehand as always, but our customer is shooting photos to be used as inventory shots while working in their warehouse, and would prefer to upload the shots immediately via her iPhone.

While I can make an autorotate script happen pretty simply on a Mac, I haven't found an easy way to scale the image down using ios's built in tools (yet).

It might be worth Hika's time to explore the promise and perils of a direct iPhone-to-Hikashop image workflow. After all, the cameras are pretty good, they're everywhere, and the native size of iPhone images is never going to get any smaller.

We'll keep working on it. Thanks for your help.

Last edit: 7 years 1 month ago by [icomex](/forum/user/4967-icomex "View icomex's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTg0Mjctb3JpZW50YXRpb24tb2YtdXBsb2FkZWQtaW1hZ2VzLWlzLXdyb25nP3RtcGw9bWFya2Rvd24=) 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.066 seconds

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