Prevent ExifTool to Modify Horizontal & Vertical Resolution

Started by JT83, July 08, 2019, 08:25:18 AM

Previous topic - Next topic

JT83

I rename exiftool to this:

exiftool(-overwrite_original -all= -resolutionunit= -tagsfromfile @ -filecreatedate -filemodifydate -xresolution -yresolution -colorspace).exe

What I need:
- Remove almost everything including date taken and program name, including Adobe "leftovers" in the image (those can be viewed with hex editor).
- Remove resolution unit, but keep horizontal and vertical resolution intact.

What ExifTool does:

- Removes all tags/attributes including Date Taken and Program Name but leaves those tags I added in the end untouched.
- Removes resolution unit, but always reduces/modifies horizontal and vertical resolution to monitor dpi (96), regardless of my original resolution (300-350 dpi).

I want to keep horizontal and vertical resolution intact, unmodified, untouched.
How do I prevent ExifTool from changing/modifiying/reducing horizontal and vertical resolution?

Phil Harvey

What is the output of this command for an original image?:

exiftool -a -G1 -xresolution -yresolution 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 ($).