TIFF/JPEG rotation

6 views
Skip to first unread message

Marcus

unread,
Sep 4, 2008, 4:15:49 AM9/4/08
to PTGui
Small(ish) problem...
If I shoot JPEGs and then use Alpha masking for the Nadir shots, these
have to be saved as TIFFs in order to save the Alpha channel. When a
combination of JPEG & TIFF are loaded into PTGui it informs me that
some of my images are landscape and some portrait. They are all
rotated and saved at the same time so they are not. In the source
image file, the sizes are all listed as being the same size and
aspect. This does not occur when I shoot RAW files and process them
all as TIFFs. Is this a known problem or am I missing something?
Thanks,

Marcus

PTGui Support

unread,
Sep 4, 2008, 5:01:59 AM9/4/08
to pt...@googlegroups.com
Hi Marcus,

The problem with JPEG files is the EXIF 'orientation' tag and the
rotation sensor of your camera.

If you hold your camera in portrait, the camera actually still creates a
landscape orientation image, but it adds a tag to the EXIF data that
says that the image should be rotated 90 degrees. Some applications
support this, while others ignore the tag and will still show the image
in landscape orientation.

If you open such an image in PTGui, it will load the image as a
landscape image but set the initial roll to +/- 90 degrees. This was
done mainly for compatibility with PTStitcher.

If you open the image and re-save in Photoshop, Photoshop will
physically rotate the image and remove the EXIF orientation tag. So you
will end up with a 'real' portrait image.

So if you modify one image, it will actually get a different
orientation. Also this will probably mess up your control points, since
the x and y coordinates become swapped!

The solution would be to open all your JPEG files in Photoshop and
resave them, before loading them into PTGui. You can then safely edit an
image and convert to TIFF.

Since hardly anybody uses PTStitcher anymore, it might be better if I
change this behaviour, but this is a bit tricky since it needs to stay
backwards compatible with older projects.

Joost

Marcus

unread,
Sep 5, 2008, 5:53:53 AM9/5/08
to PTGui
Thanks Joost. All clearly explained and understood.

Marcus
Reply all
Reply to author
Forward
0 new messages