EXIF information: picture rotation EXIF information: picture rotation
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

EXIF information: picture rotation

Started by ylz, February 04, 2004, 09:18:12 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ylz

Hello all!

My digital camera is using some EXIF information to mark any picture rotated or not (portrait or landscape).

Is it possible, that Coppermine can display EXIF rotated pictures correctly in the next releases?

Thank you for your good work!!
- Dan

PS: I'm trying to set-up a photo gallery to publish my picture for internal and external uses and would like to take the pictures right of the camera. Coppermines "batch add pictures" function seems to be unique for this! This is a great feature!  :D

pnear

I wanted to make this same request, but found this one via search.  I officially second this motion.

My PC-based photo management and viewers all support the EXIF orientation, and when up upload to coppermine I'm usually quite surprised to see that some of my images are rotated 90 degrees one way or the other.  Completely understandable, since I know of no good way to rotate images when output to the browser for display.  Instead, I would assume that some sort of rotate on import would be required (and quite doable).

Process might go something like this:
1. Upload the picture to CPG
2. Read EXIF information for orientation, perform that transformation on the image server-side
3. Create intermediate and thumbnail images based on the transformed image

The only unknown here is what to do with the EXIF tag once you've rotated.  Theoretically, if you leave the orientation flag the way it was then the next person who views it with an EXIF orientation compatible viewer will see the image rotated incorrectly (since it will now be trying to rotate an image that has already been transformed).  Does it make sense to change the EXIF orientation tag to zero degrees after the transformation is made or is that considered bad form to overwrite information from the camera?

Pete

donnoman

I would think you would want to rewrite the exif orientation if the image is re-written in the final orientation.

Obviously the preferred method would be to honor the orientation in exif, but it will come at a potentially severe performance penalty.

Let me do some research on exif, gd, and in coppermine's code and see what I think we could accomplish.

cunparis

Quote from: donnoman on February 27, 2005, 05:10:18 PM
I would think you would want to rewrite the exif orientation if the image is re-written in the final orientation.

Obviously the preferred method would be to honor the orientation in exif, but it will come at a potentially severe performance penalty.

Let me do some research on exif, gd, and in coppermine's code and see what I think we could accomplish.

I just ran into this problem tonight.. I'm wondering if I have to rotate all my images or if Coppermine can do it for me?


Tranz

Just curious... does your digital camera not come with software that would rotate the files for you?

donnoman

I'm knee deep in other projects and spread too thin to look at this anytime soon. Other interested parties are encouraged to put thier heads together and hack together a solution.

where there is a will there is a way.

cunparis

Quote from: TranzNDance on August 18, 2005, 04:16:53 AM
Just curious... does your digital camera not come with software that would rotate the files for you?

I'm going to take a look.  I use Acdsee mostly, so if it has a batch rotate then I can use it.  Or if another software exists.  Surely such a thing exists.  Since I'll be resizing for the web I might as well rotate at the same time.