Resizing Script to resize jpegs in subdirecties

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Kroto86
Posts: 2
Joined: 2018-12-13T10:30:15-07:00
Authentication code: 1152

Resizing Script to resize jpegs in subdirecties

Post by Kroto86 » 2018-12-13T10:35:51-07:00

This may have been asked before, I could not find anything though. I was hoping someone has a script to resize all jpegs in a folder including its nested sub folders and overwrite the original so it keeps the file paths. We have a share drive that is nearing capacity. Thanks so much in advance.

User avatar
fmw42
Posts: 24473
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Resizing Script to resize jpegs in subdirecties

Post by fmw42 » 2018-12-13T13:56:07-07:00

You will have to write a script loop over each directory and use mogrify to process each folder of files. But scripting is OS dependent and you have not said what platform you are on.

Please, always provide your IM version and platform when asking questions, since syntax may differ.

Also provide your exact command line and your images, if possible.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

If using Imagemagick 7, then see http://imagemagick.org/script/porting.php#cli


For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
https://github.com/ImageMagick/usage-markdown
https://imagemagick.org/script/porting.php#cli

Kroto86
Posts: 2
Joined: 2018-12-13T10:30:15-07:00
Authentication code: 1152

Re: Resizing Script to resize jpegs in subdirecties

Post by Kroto86 » 2018-12-13T14:48:22-07:00

Im sorry. ImageMagick-7.0.8-16-Q16-x64 in windows 10 64 bit

User avatar
fmw42
Posts: 24473
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Resizing Script to resize jpegs in subdirecties

Post by fmw42 » 2018-12-13T16:06:09-07:00

Search this forum. This topic has come up before and there may have been posts of code.

Post Reply