Skip to content

Instantly share code, notes, and snippets.

@drdogbot7
Last active November 4, 2022 05:01
Show Gist options
  • Save drdogbot7/ae995aaf4161868ffaec66835a0361d4 to your computer and use it in GitHub Desktop.
Save drdogbot7/ae995aaf4161868ffaec66835a0361d4 to your computer and use it in GitHub Desktop.
EXIFTOOL command to tag resolution to 300 PPI (aka DPI)
There's no good reason to do this, but some automated file checks are set to reject files that aren't "300 DPI". You will need EXIFTOOL installed, obviously.
```shell
exiftool -XResolution=300 -YResolution=300 -overwrite_original my-stupid-file.jpg
# works on a buncha files too.
exiftool -XResolution=300 -YResolution=300 -overwrite_original ./*.jpg
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment