Author Topic: EXIF Image rotation  (Read 237 times)

Aubrey

  • Super Hero
  • ****
  • Posts: 1211
  • IMatch user since June 2008
EXIF Image rotation
« on: November 20, 2020, 01:08:17 PM »
I have tried to rotate a NEF or TIF file using:
Rightmouse, rotate and transform -> orientation (EXIF) -> Rotate 90 deg CW.
I get the message "This command can only be applied to jpg files".

This used to be available for RAW files...

Using 2020.11.2


Aubrey.

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 27212
Re: EXIF Image rotation
« Reply #1 on: November 20, 2020, 01:47:33 PM »
This feature has been limited (and documented) to JPEG images a couple of versions ago.
A user has reported that rotating a TIFF that way damaged the file and since I could not figure out how this could happen, I restricted this to JPEG files only. And JPEG files are usually the only files where you face a wrong orientation - because the camera could not decide which orientation is correct.

TIFF files are usually not created by a camera but are a product of an image application or maybe a scanner.
You can easily open the TIFF file in the image processor, rotate it as needed and re-save it. This is lossless.
If this is a big problem because you have hundreds of TIFF files, you can use ExifTool directly to change the EXIF orientation (from the command line or the ECP). Let us know if you need assistance or a link for that.
« Last Edit: November 20, 2020, 01:50:17 PM by Mario »

Aubrey

  • Super Hero
  • ****
  • Posts: 1211
  • IMatch user since June 2008
Re: EXIF Image rotation
« Reply #2 on: November 20, 2020, 02:09:21 PM »
This feature has been limited (and documented) to JPEG images a couple of versions ago.
A user has reported that rotating a TIFF that way damaged the file and since I could not figure out how this could happen, I restricted this to JPEG files only. And JPEG files are usually the only files where you face a wrong orientation - because the camera could not decide which orientation is correct.
Hmmm...
Never had an issue with rotation of raw( NEF) images (or tiffs). I agree that there are packages for rotation of tiff files.

I have images of A3 pages which were photographed in landscape mode (NEF files). However the text is set up for portrait mode. I used to just rotate these images... Now I have to go through 3rd party package to rotate, and in fact lose the NEF extension. (Oh yes I could install the Nikon software, but this creates sub-directories for their sidecar files etc.)

It would be better to have not allowed tiff to be rotated rather than ONLY allowing jpg to be rotated... !

What is the command in ECP to rotate. If I remember correctly it is a numerical value depending on the rotation.

Aubrey.

Aubrey

  • Super Hero
  • ****
  • Posts: 1211
  • IMatch user since June 2008
Re: EXIF Image rotation
« Reply #3 on: November 20, 2020, 02:37:24 PM »
OK  figured out the ECP
-orientation#=integer value, depending on rotation required.
{Files}

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 27212
Re: EXIF Image rotation
« Reply #4 on: November 20, 2020, 03:03:52 PM »
NEF uses the same structure as TIFF.
I've spent a while at the time when this problem was reported but could only figure out that the problem was most likely caused by metadata mapping between XMP and EXIF and TIFF and that this was causing the problem. I did not spent more time but disabled it for all formats except JPEG. This was several months ago, no complaints since then. This shows me that this is a rarely used feature for a anything other than JPG.

Aubrey

  • Super Hero
  • ****
  • Posts: 1211
  • IMatch user since June 2008
Re: EXIF Image rotation
« Reply #5 on: November 20, 2020, 03:58:49 PM »
NEF uses the same structure as TIFF.
I learn something every day, and that's good.

I've spent a while at the time when this problem was reported but could only figure out that the problem was most likely caused by metadata mapping between XMP and EXIF and TIFF and that this was causing the problem. I did not spent more time but disabled it for all formats except JPEG. This was several months ago, no complaints since then. This shows me that this is a rarely used feature for a anything other than JPG.
Agreed. I also had some old files where rotation was wrong, this occurred about 9 years ago. I think it was problems with capture NX. Anyway using the exif tool have sorted these out.

No need to spend any time on the issue for me. I have a workaround for the VERY infrequent time that I need it. Time can be better spent on something else.

Thanks again for the prompt response.

Aubrey.

Aubrey

  • Super Hero
  • ****
  • Posts: 1211
  • IMatch user since June 2008
Re: EXIF Image rotation
« Reply #6 on: November 20, 2020, 04:08:57 PM »
BTW:
Is it possible to add a comment within the ECP arguments, I can't see any reference to comments in the help file. My work around currently is in the title.


It would be nice to define the numbers used in the orientation. So I just set up one "shortcut" and substitute the numbers as my needs... of course I could use the IMatch notepad.

eg:
-orientation#=6
//comment here would be nice
{Files}

JohnZeman

  • Global Moderator
  • *****
  • Posts: 1379
  • I'm too damn old to act my age.
Re: EXIF Image rotation
« Reply #7 on: November 20, 2020, 04:44:44 PM »
Aubrey I don't remember where I learned this but beginning a line with # works as a comment for me in the ExifTool command processor.

# This is a comment


Aubrey

  • Super Hero
  • ****
  • Posts: 1211
  • IMatch user since June 2008
Re: EXIF Image rotation
« Reply #8 on: November 20, 2020, 05:19:11 PM »
John,
It works!
When I read the help file and there was a discussion of placing the following in the first line:
# im-warn

This threw me off the scent of trying the number sign!

Aubrey.