TIF and Orientation tag

Started by ax666, October 15, 2020, 04:26:54 AM

Previous topic - Next topic

ax666

Hi, I have to strip the orientation tag from some image files, and it works well in most cases (JPG).
But there is some TIF files where the tag is not removed or rewritten, and I have no clue for what reason.

Removal:

exiftool -Orientation -n original.tif
Orientation                     : 8


exiftool -Orientation= -o out.tif -v original.tif

gives:

======== original.tif
'original.tif' --> 'out.tif'
Rewriting 0047397_2.tif...
  Editing tags in: IFD0 TIFF XMP
  FileType = TIFF
  FileTypeExtension = TIF
  MIMEType = image/tiff
  Rewriting IFD0
  Rewriting Photoshop
  Rewriting ICC_Profile
  Copying 3307 image data blocks
Nothing changed in original.tif
    1 image files copied


the output file still has the same orientation.

Rewrite:

exiftool -Orientation=1 -n -o out.tif -v original.tif


======== original.tif
'original.tif' --> 'out.tif'
Rewriting original.tif...
  Editing tags in: IFD0 TIFF XMP
  FileType = TIFF
  FileTypeExtension = TIF
  MIMEType = image/tiff
  Rewriting IFD0
  Rewriting Photoshop
  Rewriting ICC_Profile
  Copying 3307 image data blocks
    1 image files created


but the output file still has the original orientation!


exiftool -Orientation -n out.tif
Orientation                     : 8


any ideas how to solve this? Only orientation needs to be removed (because it's wrong), everything else needs to be kept.

Thanks,
Al

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

ax666

#2
The image has some standard tags:

[IFD0]          Orientation                     : 8

and also some Nikon, PreviewIFD, NikonCustom and ICC-xxx group tags. Could any of those prevent to change the orientation tag value?
Exiftool reports to be editing tags in IFD0 and writing a new file, to me that sound as there is no real problem:


exiftool -Orientation=1 -n -o out.tif -v2 original.tif
Writing XMP-tiff:Orientation if tag exists
Writing XMP-pmi:Orientation if tag exists
Writing IFD0:Orientation
Writing IFD0:Orientation
======== original.tif
'original.tif' --> 'out.tif'
Rewriting original.tif...
  Editing tags in: IFD0 TIFF XMP
  Creating tags in: IFD0 TIFF
  FileType = TIFF
  FileTypeExtension = TIF
  MIMEType = image/tiff
  Rewriting IFD0
    + IFD0:Orientation = '1'
  Rewriting Photoshop
  Rewriting ICC_Profile
  Copying 3307 image data blocks
    1 image files created



exiftool -Orientation -n out.tif
Orientation                     : 8



ax666

I hope this is not too much, here is all the tags of the original file:


[ExifTool]      ExifToolVersion                 : 10.55
[System]        FileName                        : original.tif
[System]        Directory                       : .
[System]        FileSize                        : 12497676
[System]        FileModifyDate                  : 2020:03:27 21:42:06+01:00
[System]        FileAccessDate                  : 2020:10:15 09:42:22+02:00
[System]        FileInodeChangeDate             : 2020:10:15 09:41:34+02:00
[System]        FilePermissions                 : 664
[File]          FileType                        : TIFF
[File]          FileTypeExtension               : TIF
[File]          MIMEType                        : image/tiff
[File]          ExifByteOrder                   : II
[File]          ExifByteOrder                   : MM
[IFD0]          SubfileType                     : 0
[IFD0]          ImageWidth                      : 2362
[IFD0]          ImageHeight                     : 3307
[IFD0]          BitsPerSample                   : 8 8 8
[IFD0]          Compression                     : 5
[IFD0]          PhotometricInterpretation       : 2
[IFD0]          StripOffsets                    : (Binary data 26818 bytes, use -b option to extract)
[IFD0]          SamplesPerPixel                 : 3
[IFD0]          RowsPerStrip                    : 1
[IFD0]          StripByteCounts                 : (Binary data 16534 bytes, use -b option to extract)
[IFD0]          XResolution                     : 400
[IFD0]          YResolution                     : 400
[IFD0]          PlanarConfiguration             : 1
[IFD0]          ResolutionUnit                  : 2
[IFD0]          Predictor                       : 2
[IFD0]          Make                            : NIKON CORPORATION
[IFD0]          Model                           : NIKON D3S
[IFD0]          Orientation                     : 8
[IFD0]          XResolution                     : 300
[IFD0]          YResolution                     : 300
[IFD0]          ResolutionUnit                  : 2
[IFD0]          Software                        : Ver.1.01
[IFD0]          ModifyDate                      : 2013:09:02 17:52:47
[IFD0]          Artist                          :
[IFD0]          YCbCrPositioning                : 2
[IFD0]          Copyright                       :
[Photoshop]     XResolution                     : 400
[Photoshop]     DisplayedUnitsX                 : 1
[Photoshop]     YResolution                     : 400
[Photoshop]     DisplayedUnitsY                 : 1
[Photoshop]     GlobalAngle                     : 30
[Photoshop]     GlobalAltitude                  : 30
[Photoshop]     CopyrightFlag                   : 0
[Photoshop]     URL_List                        :
[Photoshop]     SlicesGroupName                 : AMF_1126
[Photoshop]     NumSlices                       : 1
[Photoshop]     PhotoshopThumbnail              : (Binary data 3250 bytes, use -b option to extract)
[Photoshop]     HasRealMergedData               : 1
[Photoshop]     WriterName                      : Adobe Photoshop
[Photoshop]     ReaderName                      : Adobe Photoshop 6.0
[ExifIFD]       ExposureTime                    : 0.02
[ExifIFD]       FNumber                         : 9
[ExifIFD]       ExposureProgram                 : 1
[ExifIFD]       ISO                             : 2500
[ExifIFD]       ExifVersion                     : 0221
[ExifIFD]       DateTimeOriginal                : 2013:09:02 17:52:47
[ExifIFD]       CreateDate                      : 2013:09:02 17:52:47
[ExifIFD]       ComponentsConfiguration         : 1 2 3 0
[ExifIFD]       CompressedBitsPerPixel          : 4
[ExifIFD]       ExposureCompensation            : 0
[ExifIFD]       MaxApertureValue                : 4
[ExifIFD]       MeteringMode                    : 5
[ExifIFD]       LightSource                     : 0
[ExifIFD]       Flash                           : 0
[ExifIFD]       FocalLength                     : 600
[ExifIFD]       UserComment                     :
[ExifIFD]       SubSecTime                      : 00
[ExifIFD]       SubSecTimeOriginal              : 00
[ExifIFD]       SubSecTimeDigitized             : 00
[ExifIFD]       FlashpixVersion                 : 0100
[ExifIFD]       ColorSpace                      : 1
[ExifIFD]       ExifImageWidth                  : 4256
[ExifIFD]       ExifImageHeight                 : 2832
[ExifIFD]       SensingMethod                   : 2
[ExifIFD]       FileSource                      : 3
[ExifIFD]       SceneType                       : 1
[ExifIFD]       CFAPattern                      : 2 2 0 1 1 2
[ExifIFD]       CustomRendered                  : 0
[ExifIFD]       ExposureMode                    : 1
[ExifIFD]       WhiteBalance                    : 1
[ExifIFD]       DigitalZoomRatio                : 1
[ExifIFD]       FocalLengthIn35mmFormat         : 600
[ExifIFD]       SceneCaptureType                : 0
[ExifIFD]       GainControl                     : 2
[ExifIFD]       Contrast                        : 0
[ExifIFD]       Saturation                      : 0
[ExifIFD]       Sharpness                       : 0
[ExifIFD]       SubjectDistanceRange            : 0
[Nikon]         MakerNoteVersion                : 0210
[Nikon]         ISO                             : 0 2500
[Nikon]         Quality                         : FINE
[Nikon]         WhiteBalance                    : 4170K
[Nikon]         FocusMode                       : AF-S
[Nikon]         FlashSetting                    : NORMAL
[Nikon]         FlashType                       :
[Nikon]         WhiteBalanceFineTune            : 0 0
[Nikon]         WB_RBLevels                     : 1.54296875 1.5625 1 1
[Nikon]         ProgramShift                    : 0
[Nikon]         ExposureDifference              : -1.08333333333333
[Nikon]         ISOSetting                      : 0 2500
[Nikon]         ImageBoundary                   : 0 0 4256 2832
[Nikon]         ExternalFlashExposureComp       : 0
[Nikon]         FlashExposureBracketValue       : 0
[Nikon]         ExposureBracketValue            : 0
[Nikon]         CropHiSpeed                     : 0 4288 2844 4288 2844 0 0
[Nikon]         ExposureTuning                  : 0
[Nikon]         SerialNumber                    : 2042453
[Nikon]         ColorSpace                      : 1
[Nikon]         VRInfoVersion                   : 0100
[Nikon]         VibrationReduction              : 2
[Nikon]         VRMode                          : 0
[Nikon]         ImageAuthentication             : 0
[Nikon]         ActiveD-Lighting                : 0
[Nikon]         PictureControlVersion           : 0100
[Nikon]         PictureControlName              : STANDARD
[Nikon]         PictureControlBase              : STANDARD
[Nikon]         PictureControlAdjust            : 0
[Nikon]         PictureControlQuickAdjust       : 0
[Nikon]         Sharpness                       : 3
[Nikon]         Contrast                        : 0
[Nikon]         Brightness                      : 0
[Nikon]         Saturation                      : 0
[Nikon]         HueAdjustment                   : 0
[Nikon]         FilterEffect                    : 255
[Nikon]         ToningEffect                    : 255
[Nikon]         ToningSaturation                : 127
[Nikon]         TimeZone                        : 0
[Nikon]         DaylightSavings                 : 0
[Nikon]         DateDisplayFormat               : 2
[Nikon]         ISO                             : 2539.84168314912
[Nikon]         ISOExpansion                    : 0
[Nikon]         ISO2                            : 2539.84168314912
[Nikon]         ISOExpansion2                   : 0
[Nikon]         VignetteControl                 : 3
[Nikon]         LensType                        : 2
[Nikon]         Lens                            : 600 600 4 4
[Nikon]         FlashMode                       : 0
[Nikon]         ShootingMode                    : 1
[Nikon]         LensFStops                      : 5
[Nikon]         ShotInfoVersion                 : 0218
[Nikon]         FirmwareVersion                 : 1.01c
[Nikon]         ImageArea                       : 0
[Nikon]         ISO2                            : 2539.84168314912
[Nikon]         ShutterCount                    : 74127
[Nikon]         NoiseReduction                  : OFF
[Nikon]         WB_GRBGLevels                   : 256 395 400 256
[Nikon]         LensDataVersion                 : 0204
[Nikon]         ExitPupilPosition               : 157.538461538462
[Nikon]         AFAperture                      : 4
[Nikon]         FocusPosition                   : 17
[Nikon]         FocusDistance                   : 25.1188643150958
[Nikon]         FocalLength                     : 604.079560116284
[Nikon]         LensIDNumber                    : 73
[Nikon]         LensFStops                      : 5
[Nikon]         MinFocalLength                  : 604.079560116284
[Nikon]         MaxFocalLength                  : 604.079560116284
[Nikon]         MaxApertureAtMinFocal           : 4
[Nikon]         MaxApertureAtMaxFocal           : 4
[Nikon]         MCUVersion                      : 76
[Nikon]         EffectiveMaxAperture            : 4
[Nikon]         RetouchHistory                  : 0
[Nikon]         ImageDataSize                   : 5038621
[Nikon]         ShutterCount                    : 74127
[Nikon]         FlashInfoVersion                : 0103
[Nikon]         FlashSource                     : 0
[Nikon]         ExternalFlashFirmware           : 0 0
[Nikon]         ExternalFlashFlags              : 0
[Nikon]         FlashCommanderMode              : 0
[Nikon]         FlashControlMode                : 0
[Nikon]         FlashCompensation               : 0
[Nikon]         FlashGNDistance                 : 0
[Nikon]         FlashColorFilter                : 0
[Nikon]         FlashGroupAControlMode          : 0
[Nikon]         FlashGroupBControlMode          : 0
[Nikon]         FlashGroupCControlMode          : 0
[Nikon]         FlashGroupACompensation         : 0
[Nikon]         FlashGroupBCompensation         : 0
[Nikon]         FlashGroupCCompensation         : 0
[Nikon]         MultiExposureVersion            : 0100
[Nikon]         MultiExposureMode               : 0
[Nikon]         MultiExposureShots              : 0
[Nikon]         MultiExposureAutoGain           : 0
[Nikon]         HighISONoiseReduction           : 0
[Nikon]         AFInfo2Version                  : 0100
[Nikon]         ContrastDetectAF                : 0
[Nikon]         AFAreaMode                      : 0
[Nikon]         PhaseDetectAF                   : 1
[Nikon]         PrimaryAFPoint                  : 1
[Nikon]         AFPointsUsed                    : 01 00 00 00 00 00 00
[Nikon]         ContrastDetectAFInFocus         : 0
[Nikon]         FileInfoVersion                 : 0100
[Nikon]         MemoryCardNumber                : 0
[Nikon]         DirectoryNumber                 : 107
[Nikon]         FileNumber                      : 1126
[Nikon]         AFFineTune                      : 0
[Nikon]         AFFineTuneIndex                 : 255
[Nikon]         AFFineTuneAdj                   : 0
[PreviewIFD]    Compression                     : 6
[PreviewIFD]    XResolution                     : 300
[PreviewIFD]    YResolution                     : 300
[PreviewIFD]    ResolutionUnit                  : 2
[PreviewIFD]    PreviewImageStart               : 9216
[PreviewIFD]    PreviewImageLength              : 26657
[PreviewIFD]    YCbCrPositioning                : 2
[PreviewIFD]    PreviewImage                    : (Binary data 26657 bytes, use -b option to extract)
[NikonCustom]   CustomSettingsBank              : 0
[NikonCustom]   CustomSettingsAllDefault        : 0
[NikonCustom]   AF-CPrioritySelection           : 0
[NikonCustom]   AF-SPrioritySelection           : 0
[NikonCustom]   AFPointSelection                : 0
[NikonCustom]   DynamicAFArea                   : 0
[NikonCustom]   AFActivation                    : 0
[NikonCustom]   FocusPointWrap                  : 0
[NikonCustom]   AFPointIllumination             : 0
[NikonCustom]   AFPointBrightness               : 2
[NikonCustom]   AFOnButton                      : 0
[NikonCustom]   VerticalAFOnButton              : 0
[NikonCustom]   FocusTrackingLockOn             : 2
[NikonCustom]   AssignBktButton                 : 0
[NikonCustom]   MultiSelectorLiveView           : 128
[NikonCustom]   InitialZoomLiveView             : 0
[NikonCustom]   ISOStepSize                     : 0
[NikonCustom]   ExposureControlStepSize         : 0
[NikonCustom]   ExposureCompStepSize            : 0
[NikonCustom]   EasyExposureCompensation        : 0
[NikonCustom]   CenterWeightedAreaSize          : 32
[NikonCustom]   FineTuneOptCenterWeighted       : 0
[NikonCustom]   FineTuneOptMatrixMetering       : 0
[NikonCustom]   FineTuneOptSpotMetering         : 0
[NikonCustom]   MultiSelectorShootMode          : 0
[NikonCustom]   InitialZoomSetting              : 8
[NikonCustom]   MultiSelector                   : 0
[NikonCustom]   ExposureDelayMode               : 0
[NikonCustom]   CLModeShootingSpeed             : 5
[NikonCustom]   CHModeShootingSpeed             : 0
[NikonCustom]   MaxContinuousRelease            : 130
[NikonCustom]   ReverseIndicators               : 0
[NikonCustom]   FileNumberSequence              : 0
[NikonCustom]   RearDisplay                     : 0
[NikonCustom]   ViewfinderDisplay               : 0
[NikonCustom]   ScreenTips                      : 0
[NikonCustom]   Beep                            : 128
[NikonCustom]   ShootingInfoDisplay             : 0
[NikonCustom]   MultiSelectorPlaybackMode       : 0
[NikonCustom]   PreviewButton                   : 8
[NikonCustom]   PreviewButtonPlusDials          : 0
[NikonCustom]   FuncButton                      : 0
[NikonCustom]   FuncButtonPlusDials             : 1
[NikonCustom]   AELockButton                    : 24
[NikonCustom]   AELockButtonPlusDials           : 0
[NikonCustom]   CommandDialsReverseRotation     : 0
[NikonCustom]   CommandDialsChangeMainSub       : 0
[NikonCustom]   CommandDialsApertureSetting     : 0
[NikonCustom]   CommandDialsMenuAndPlayback     : 0
[NikonCustom]   LCDIllumination                 : 0
[NikonCustom]   PhotoInfoPlayback               : 0
[NikonCustom]   ShutterReleaseButtonAE-L        : 0
[NikonCustom]   ReleaseButtonToUseDial          : 0
[NikonCustom]   SelfTimerTime                   : 16
[NikonCustom]   MonitorOffTime                  : 0
[NikonCustom]   FlashSyncSpeed                  : 32
[NikonCustom]   FlashShutterSpeed               : 0
[NikonCustom]   AutoBracketSet                  : 0
[NikonCustom]   AutoBracketModeM                : 0
[NikonCustom]   AutoBracketOrder                : 0
[NikonCustom]   ModelingFlash                   : 0
[NikonCustom]   NoMemoryCard                    : 128
[NikonCustom]   MeteringTime                    : 1
[NikonCustom]   InternalFlash                   : 0
[NikonCustom]   ImageReviewTime                 : 0
[NikonCustom]   PlaybackMonitorOffTime          : 4
[NikonCustom]   MenuMonitorOffTime              : 64
[NikonCustom]   ShootingInfoMonitorOffTime      : 4
[InteropIFD]    InteropIndex                    : R98
[InteropIFD]    InteropVersion                  : 0100
[GPS]           GPSVersionID                    : 2 2 0 0
[IFD1]          Compression                     : 6
[IFD1]          XResolution                     : 300
[IFD1]          YResolution                     : 300
[IFD1]          ResolutionUnit                  : 2
[IFD1]          ThumbnailOffset                 : 36032
[IFD1]          ThumbnailLength                 : 9761
[IFD1]          YCbCrPositioning                : 2
[IFD1]          ThumbnailImage                  : (Binary data 9761 bytes, use -b option to extract)
[ICC-header]    ProfileCMMType                  : Lino
[ICC-header]    ProfileVersion                  : 528
[ICC-header]    ProfileClass                    : mntr
[ICC-header]    ColorSpaceData                  : RGB
[ICC-header]    ProfileConnectionSpace          : XYZ
[ICC-header]    ProfileDateTime                 : 1998:02:09 06:49:00
[ICC-header]    ProfileFileSignature            : acsp
[ICC-header]    PrimaryPlatform                 : MSFT
[ICC-header]    CMMFlags                        : 0
[ICC-header]    DeviceManufacturer              : IEC
[ICC-header]    DeviceModel                     : sRGB
[ICC-header]    DeviceAttributes                : 0 0
[ICC-header]    RenderingIntent                 : 1
[ICC-header]    ConnectionSpaceIlluminant       : 0.9642 1 0.82491
[ICC-header]    ProfileCreator                  : HP
[ICC-header]    ProfileID                       : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[ICC_Profile]   ProfileCopyright                : Copyright (c) 1998 Hewlett-Packard Company
[ICC_Profile]   ProfileDescription              : sRGB IEC61966-2.1
[ICC_Profile]   MediaWhitePoint                 : 0.95045 1 1.08905
[ICC_Profile]   MediaBlackPoint                 : 0 0 0
[ICC_Profile]   RedMatrixColumn                 : 0.43607 0.22249 0.01392
[ICC_Profile]   GreenMatrixColumn               : 0.38515 0.71687 0.09708
[ICC_Profile]   BlueMatrixColumn                : 0.14307 0.06061 0.7141
[ICC_Profile]   DeviceMfgDesc                   : IEC http://www.iec.ch
[ICC_Profile]   DeviceModelDesc                 : IEC 61966-2.1 Default RGB colour space - sRGB
[ICC_Profile]   ViewingCondDesc                 : Reference Viewing Condition in IEC61966-2.1
[ICC_Profile]   Luminance                       : 76.03647 80 87.12462
[ICC_Profile]   Technology                      : CRT
[ICC_Profile]   RedTRC                          : (Binary data 2060 bytes, use -b option to extract)
[ICC_Profile]   GreenTRC                        : (Binary data 2060 bytes, use -b option to extract)
[ICC_Profile]   BlueTRC                         : (Binary data 2060 bytes, use -b option to extract)
[ICC-view]      ViewingCondIlluminant           : 19.6445 20.3718 16.8089
[ICC-view]      ViewingCondSurround             : 3.92889 4.07439 3.36179
[ICC-view]      ViewingCondIlluminantType       : 1
[ICC-meas]      MeasurementObserver             : 1
[ICC-meas]      MeasurementBacking              : 0 0 0
[ICC-meas]      MeasurementGeometry             : 0
[ICC-meas]      MeasurementFlare                : 0.00999
[ICC-meas]      MeasurementIlluminant           : 2
[Composite]     Aperture                        : 9
[Composite]     AutoFocus                       : 1
[Composite]     BlueBalance                     : 1.5625
[Composite]     ImageSize                       : 2362x3307
[Composite]     LensID                          : 49 3C A6 A6 30 30 4C 02
[Composite]     LensSpec                        : 600 600 4 4 2
[Composite]     Megapixels                      : 7.811134
[Composite]     RedBalance                      : 1.54296875
[Composite]     ScaleFactor35efl                : 1
[Composite]     ShutterSpeed                    : 0.02
[Composite]     SubSecCreateDate                : 2013:09:02 17:52:47.00
[Composite]     SubSecDateTimeOriginal          : 2013:09:02 17:52:47.00
[Composite]     SubSecModifyDate                : 2013:09:02 17:52:47.00
[Composite]     CircleOfConfusion               : 0.0300462606288666
[Composite]     DOF                             : 24.6646038579058 25.5901714171476
[Composite]     FOV                             : 3.35467542783154 1.47113185890575
[Composite]     FocalLength35efl                : 600
[Composite]     HyperfocalDistance              : 1331.28047094055
[Composite]     LightValue                      : 7.33985000288462

Phil Harvey

There is something else going on here.  Could you send me the tif file so I can try it out?  My email is philharvey66 at gmail.com

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Alan Clifford

Have we seen the output from
exiftool -Orientation -a -n original.tif

Phil Harvey

@StarGeek.  No we haven't.

Yes, this was FAQ 3 as I suspected, but a bit trickier (I expected the problem Orientation tag to be in IFD1, but instead it was hiding in a non-standard IFD0):

> exiftool tmp/original.tif -orientation -n -a -u -G1
[IFD0]          Orientation                     : 8
> exiftool tmp/original.tif -orientation=1 -n
    1 image files updated
> exiftool tmp/original.tif -orientation -n -a -u -G1
[IFD0]          Orientation                     : 1
[IFD0]          Orientation                     : 8
> exiftool tmp/original.tif -validate -warning
Validate                        : 1 Warning (minor)
Warning                         : [minor] Non-standard EXIF at TIFF-IFD0-Photoshop-EXIFInfo-IFD0


ExifTool is updating the standard IFD0 properly, but not the non-standard EXIF.

This shouldn't create any problems, but If you want you can remove the non-standard EXIF (along with all of the other photoshop tags) like this:

exiftool -photoshop:all= FILE

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

ax666

Ah cool, so the destination file now hat 2 orientation tags. I was suspecting Photoshop to cause this.
Can this be overcome? Can the non-standard one be addressed and removed? The goal is anyway to remove any orientation tags

Phil Harvey

I was editing my post as you posted this.  My edited post should answer these questions.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

ax666

I'm wondering, why I dont see the offending Photoshop orientation on the source image:


exiftool -photoshop:ALL -a -n -u -G1 original.tif
[Photoshop]     X Resolution                    : 400
[Photoshop]     Displayed Units X               : 1
[Photoshop]     Y Resolution                    : 400
[Photoshop]     Displayed Units Y               : 1
[Photoshop]     Global Angle                    : 30
[Photoshop]     Global Altitude                 : 30
[Photoshop]     Print Flags                     : 0 0 0 0 0 0 0 0 1
[Photoshop]     Copyright Flag                  : 0
[Photoshop]     Print Flags Info                : ..
[Photoshop]     Color Halftoning Info           : /ff.lff../ff.▒▒▒..2.Z..5.-..
[Photoshop]     Color Transfer Funcs            : ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒.▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒.▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒.▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒.▒
[Photoshop]     Grid Guides Info                : ..@.@
[Photoshop]     URL List                        :
[Photoshop]     Slices Group Name               : AMF_1126
[Photoshop]     Num Slices                      : 1
[Photoshop]     IDs Base Value                  : 1
[Photoshop]     Photoshop Thumbnail             : (Binary data 3250 bytes, use -b option to extract)
[Photoshop]     Has Real Merged Data            : 1
[Photoshop]     Writer Name                     : Adobe Photoshop
[Photoshop]     Reader Name                     : Adobe Photoshop 6.0


But removing ALL photoshop tags does indeed help with that, big thanks for that info! And also allows to remove orientation completely. It is a bigger modification of the original's metadata than whished though.


Phil Harvey

It is in the IFD0 group, not the Photoshop group.

Use -G5 instead of -G1 to see all of the gory details.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

ax666

Indeed:


[TIFF-IFD0-Photoshop-EXIFInfo-IFD0] Orientation : 8


Is there a way to specifically remove this single tag with keeping everything else?
Sorry to ask so many questions, not an in-depth expert on on those dirty metadata tags

Phil Harvey

No.  ExifTool doesn't yet have the ability to edit Photoshop EXIF information.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

ax666

Ha, that would be too good to be true I guess  :D

Phil, thank you for your support, I have a solution now that I can work with

Alan Clifford

One of my cameras does two orientation tags.  Used to iritate me until I found out!

exiftool -a -G1 x-s1_3948.jpg -orientation#
[IFD0]          Orientation                     : 6
[IFD1]          Orientation                     : 6