Forum

Thread tagged as: Question

Image rotates on upload

I understand that this has been a problem for several folk on the forum. Usually I find stripping the exif data helps but the only way I could get the image to be correctly displayed was to follow the advice of a previous post on the forum 2 years ago and resize the image. The problem is that my clients are unlikely to have the time or perhaps even the software to be able to do this. Has there been any additions to Perch files or the gallery files in the past couple of years to get round this? Thanks in advance.

Helen Forrest

Helen Forrest 0 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, this was only a problem with Perch 2 as far as I'm aware.

I have Perch 3 and still have the problem.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you post your diagnostics report and your template?

Diagnostics

 Perch is up to date
 PHP 5.5.38 is up to date
 MySQL 5.5.60-log is up to date
 Image processing available
Summary information
Perch: 3.1.2, PHP: 5.5.38, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.1.2), assets (3.1.2), categories (3.1.2), perch_shop_orders (1.2.6), perch_shop_products (1.2.6), perch_shop (1.2.6), perch_members (1.6.4)
App runtimes: <?php $apps_list = [ 'perch_members', 'perch_shop', ];
PERCH_LOGINPATH: /admin
PERCH_PATH: /var/www/web/admin
PERCH_CORE: /var/www/web/admin/core
PERCH_RESFILEPATH: /var/www/web/admin/resources
Image manipulation: GD
PHP limits: Max upload 128M, Max POST 128M, Memory: 128M, Total max file upload: 128M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
DOCUMENT_ROOT: /var/www/web
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
REQUEST_URI: /admin/core/settings/diagnostics/
HTTP_HOST: www.srendipityjewellery.co.uk

Template gallery-image.html


<div class="col-md-3 item"> <div class="picframe"> <a class="image-popup-gallery" href="<perch:gallery id="main"/>"> <span class="overlay"> <span class="pf_text"> <span class="project-name"><perch:gallery id="imageAlt"/></span> </span> </span> </a> <img src="<perch:gallery id="small"/>" alt="<perch:gallery id="imageAlt"/>" /> </div> </div>

Sorry, wrong diagnostics, I'm working on a couple of sites at the moment.

 Perch is up to date
 PHP 5.5.38 is up to date
 MySQL 5.5.60-log is up to date
 Image processing available
Summary information
Perch: 3.1.2, PHP: 5.5.38, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.1.2), assets (3.1.2), categories (3.1.2), perch_gallery (2.8.9), perch_shop_orders (1.2.6), perch_shop_products (1.2.6), perch_shop (1.2.6), perch_members (1.6.4)
App runtimes: <?php $apps_list = [ 'perch_members', 'perch_shop', 'perch_gallery', ];
PERCH_LOGINPATH: /admin
PERCH_PATH: /var/www/web/admin
PERCH_CORE: /var/www/web/admin/core
PERCH_RESFILEPATH: /var/www/web/admin/resources
Image manipulation: GD
PHP limits: Max upload 128M, Max POST 128M, Memory: 128M, Total max file upload: 128M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
DOCUMENT_ROOT: /var/www/web
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
REQUEST_URI: /admin/core/settings/diagnostics/
HTTP_HOST: www.classicsparesengineering.co.uk
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is this using the Gallery app? If so, does the same problem occur if an image is uploaded into Assets?

It just seems to be in the Gallery that there is a problem.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is this a new project you're setting up with Gallery, or an old site you're updating? If it's new, is there a reason to use Gallery over the inbuilt Assets functionality? Gallery is a bit old and creaky at this point.

It's a new project. The reason I went with the Gallery is that I am developing 3 projects, one after the other, and all need a gallery - one needs to have multiple file upload. However, with this one the gallery is pretty simple so, I'm going to take up your advice and just use the Assets. Thanks for your help