Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Rotating the images  (Read 987 times)

0 Members and 1 Guest are viewing this topic.

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 116
    • World of Lighthouses
Rotating the images
« on: June 18, 2020, 09:59:11 am »

Hi All!
Can you please advice with strange issue?
I'm very sure that after upload the image was seen correctly.
But now it looks like this https://www.lightphotos.net/photos/displayimage.php?pid=6792
There is a number of such images now appear in gallery (i don't know how many exactly as it is 40K images in it in total).
Seems the issue is somewhere in the autorotating the original image - the size is taken from rotated image but the file is showing as original.
Can you advice how to fix this without re-uploading or at least how to find the problematic images? 

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1536
Re: Rotating the images
« Reply #1 on: June 18, 2020, 02:50:59 pm »

The original images seem to have an incorrect image orientation value.
https://www.lightphotos.net/photos/albums/userpics/10041/Corny_Point_Lighthouse_1.JPG
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1536
Re: Rotating the images
« Reply #2 on: June 18, 2020, 03:15:52 pm »

Here are landscape and portrait images in all 8 orientations.
(file is too large to attach here) https://rfourm.net/CPGdev/cur_develop/orientations.zip

Uploading them with auto-orient on should create thumbnails and images that display correctly. Uploading without auto-orient on would create improper thumbnails and images for orientations 2 through 8. You can test your gallery with them.
« Last Edit: June 18, 2020, 04:23:17 pm by ron4mac »
Logged

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 116
    • World of Lighthouses
Re: Rotating the images
« Reply #3 on: June 19, 2020, 01:48:21 pm »

Thank you, will do.
My main concern is that i'm very sure originally the pictures were displayed correctly as i check all uploads.

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1536
Re: Rotating the images
« Reply #4 on: June 19, 2020, 02:28:33 pm »

Attached is how that file uploads for me (with auto-orient). Could someone have tried to edit the file to display upright and it didn't turn out well?
Logged

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 116
    • World of Lighthouses
Re: Rotating the images
« Reply #5 on: June 19, 2020, 03:14:56 pm »

Attached is how that file uploads for me (with auto-orient). Could someone have tried to edit the file to display upright and it didn't turn out well?
Good question - i don't think anybody touched this image since 2013 then it was uploaded.
Also strange that the size of the image stayed the same in the database - you can see it is portrait, but the image actually turned on 90 degrees.

Another question - than you talk about auto-orient you mentioned auto-rotate plugin or some other setting?

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1536
Re: Rotating the images
« Reply #6 on: June 19, 2020, 03:40:52 pm »

Another question - than you talk about auto-orient you mentioned auto-rotate plugin or some other setting?
In CPG 1.6.x, there is an 'Auto-orient image(s)' checkbox on the upload forms (and I think on batch, also).
Logged

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 116
    • World of Lighthouses
Re: Rotating the images
« Reply #7 on: June 19, 2020, 04:16:01 pm »

Ahh i still on 1.5 and i have this plugin only...
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 21 queries.