954,173 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to bulk resize JPG files in folder and subfolder

Hi
I want to resize all my photos but there are so many subfolders too and every subfolder contents JPG files. Now, I want to resize all my main and sub folder's JPG files with HIGEST CLEARITY.

I know that there is "convert" command but it only do inside one folder and I want to resize all images inside sub folders too.

How do I do this ?

bimaljr
Junior Poster in Training
51 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

Maybe the "find" command with the "exec" option?

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

Oh
I got the command

find . -iname "*.jpg" | xargs -l -i convert -resize 1000x600  {}  {}


This will do my job.

bimaljr
Junior Poster in Training
51 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You