And when I open that on my PC are all portrait but imediatelly when I upload it to opencart are all landscape.
I use opencart 3.0.4.0.
How to solve that so pictures are in position as they are made - portrait?
When you took them were they in landscape or portrait?
When you look at them on the computer are they landscape or portrait?
How are you uploading them to the site?
My first thought is to look at them on the computer and adjust them.
Mike
cue4cheap not cheap quality
v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.
Code: Select all
'image_versions' => array(
// The empty image version key defines options for the original image:
// Keep in mind that these options are inherited by all other image versions!
'' => array(
// Automatically rotate images based on EXIF meta data:
'auto_orient' => true
),
..........
this is in: admin/view/javascript/filemanager/UploadHandler.php
There is no such file in OpenCart 3.0.4.0 !nonnedelectari wrote: ↑Thu Jan 16, 2025 11:33 amso it may be due to the EXIF meta data stored with your images on your phone which causes the uploader to rotate the image.
this is in: admin/view/javascript/filemanager/UploadHandler.php
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Yep, just do this.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
viewtopic.php?t=234114JNeuhoff wrote: ↑Thu Jan 16, 2025 6:46 pmThere is no such file in OpenCart 3.0.4.0 !nonnedelectari wrote: ↑Thu Jan 16, 2025 11:33 amso it may be due to the EXIF meta data stored with your images on your phone which causes the uploader to rotate the image.
this is in: admin/view/javascript/filemanager/UploadHandler.php
When I doubleclick on picture on my PC it opens and it is as it should be.
Picture is created portrait.
Funny is that picture created landscape are OK.
I upload it when I start to creating new product for selling in picture setting I upload it. It is print screen at first post.
width of picture is 3000 pixels
and height is 4000 pixela
Adjust them how?? they are already portrait, everywhere I look.
there is no folder "filemanager". I have add print screen of my foldersnonnedelectari wrote: ↑Thu Jan 16, 2025 11:33 amNot sure if it is this but the upload handler of the filemanager in admin has this:so it may be due to the EXIF meta data stored with your images on your phone which causes the uploader to rotate the image.Code: Select all
'image_versions' => array( // The empty image version key defines options for the original image: // Keep in mind that these options are inherited by all other image versions! '' => array( // Automatically rotate images based on EXIF meta data: 'auto_orient' => true ), ..........
this is in: admin/view/javascript/filemanager/UploadHandler.php
But it seems you have installed some extensions from purpletree which may have modified the filemanager.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
I tested it before I installed purpletree and it was the same
Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature
sorry about that, was from an extention I have, not default OC.JNeuhoff wrote: ↑Thu Jan 16, 2025 6:46 pmThere is no such file in OpenCart 3.0.4.0 !nonnedelectari wrote: ↑Thu Jan 16, 2025 11:33 amso it may be due to the EXIF meta data stored with your images on your phone which causes the uploader to rotate the image.
this is in: admin/view/javascript/filemanager/UploadHandler.php
If it is done server-side, the exif data has to be read somewhere.
If not, it might also just be your phone which does this while uploading?
why do you saying it doesn't exist? here is print screen from opencart extensions page.
that folder doesn't exist in instalation files and folders it looks like 3.0.4.0 doesn't have it anymore. Here is print screen from installation folders
It would very much appear the issue is with uploading directly from your phone.
In addition the imagine sizes from your phone greatly exceed the recommended images sizes for a website.
If you search google you can find lots of information regarding orientation and mobile - search for your exact model and you may find there is a setting in your phone.
As is correct practice anyway - you should be compressing your images before uploaing.
There are many online sites that do this for free - as an example - https://tinypng.com/
Since they create new images they probably do not include the image data from your phone that appears to be causing you a problem.
If that site doesnt work - try another online compressor.
There is nothing anyone can offer here for your phones including data. Opencart does not edit orientation and you say your theme is not the issue either - so that leaves your phone or some extension.
There is no easy solution if some of your images are landscape and some portrait. Opencart resizes everything to fit cached preset sizes, unless your theme / extensions mess with that.
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Attachments
20241217_124341-4 (1).jpg (33.06 KiB) Viewed 883 times
20241217_124341-4.jpg (36.44 KiB) Viewed 883 times
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Users browsing this forum: lockiedownunder, maffe and 90 guests