Author Topic: Deleted Batch-Resize-Recursively-Script  (Read 414 times)

HansDampf

  • Newbie
  • *
  • Posts: 2
Deleted Batch-Resize-Recursively-Script
« on: December 01, 2018, 08:18:46 AM »
Hello :-)
For years now I have used a script to shrink images and save the new version in another folder.

Unfortunately, i lost it through a missing backup.
It has been many years since I built it myself.
Since I am not sure which logic comes from ExifTool I would be grateful for any help.

What did the script do?
- Recursively it went through my picture folder
- For new files (so if there is not a small version)
  -> it has shrunk the original
  -> saved it in another folder under the same folder structure and original filename
  -> Meta information has been adjusted for the width and height

Can someone give me some hints as I can solve this task with exiftool?

Sorry for the english translation from Google ;-)

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16878
    • ExifTool Home Page
Re: Deleted Batch-Resize-Recursively-Script
« Reply #1 on: December 01, 2018, 10:41:28 AM »
ExifTool can adjust the metadata, but doesn't do image manipulations.  You can use ImageMagick's "convert" utility to do the resizing.

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

HansDampf

  • Newbie
  • *
  • Posts: 2
Re: Deleted Batch-Resize-Recursively-Script
« Reply #2 on: December 02, 2018, 04:34:24 AM »
Thank you Phil, i thought it was exiftool.
Nevermind, i checked imagemagics convert-tool and it seems to be the solution for my script.