TIF file saved a JPG after orientation change.

Started by LCL999, January 23, 2021, 01:41:38 AM

Previous topic - Next topic

LCL999

Using exiftool in Windows 10
This command seemed to work
/tt E:\5scans\fresh\A>exiftool -n -orientation=2 202012-M4P-00.tif
As I got
/code    1 image files updated
But the modified file was saved as jpg.
How do I change the orientation but still keep the file as TIF?

StarGeek

Exiftool only writes metadata.  It has absolutely nothing in it that can convert a tif to a jpg.  There is something else going on.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

quickshot

Maybe show what exiftool reports for the "TIFF". I know TIFFs that are actually JPEGs...

StarGeek

A tiff file can use jpeg compression, but it's still a tiff file.

Example output from exiftool on one created by Irfanview
C:\>exiftool -G1 -a -s -file:all -compression "Y:\!temp\Testtest.tif" --system:all
[File]          FileType                        : TIFF
[File]          FileTypeExtension               : tif
[File]          MIMEType                        : image/tiff
[File]          ExifByteOrder                   : Little-endian (Intel, II)
[IFD0]          Compression                     : JPEG
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

LCL999

Hi StarGeek
Thank you for your reply. I could not repeat the issue so you are right and I guess I had finger trouble initially.

On a related issue, after I used "orientation = 2", (i.e. mirror the image) there was no perceptible change in the thumbnails in the file listing (using Windows 10), nor did VuePrint (my preferred image display tool) show any change. Even though Exiftool showed all the "changed" files as "orientation = 2". However when I imported the images into LightRoom, sure enough the images had been mirrored.
I can live with that, now that I know. Any comment though?

 


StarGeek

See FAQ #6, specifically the second paragraph.

You set values for Orientation the same as they are output
  • Horizontal (normal)
  • Mirror horizontal
  • Rotate 180
  • Mirror vertical
  • Mirror horizontal and rotate 270 CW
  • Rotate 90 CW
  • Mirror horizontal and rotate 90 CW
  • Rotate 270 CW

To Orientation as a number, you need to bypass the printconv routine that displays the values in human readable form.  This is done with the -n (--printConv) option to affect all tags you set or with a trailing hashtag

Any of these would work, with the second line affecting all tags in the same command
-Orientation="Mirror horizontal"
-n -Orientation=2
-Orientation#=2
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype