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 ?

Recommended Answers

All 3 Replies

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

I got the command

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

This will do my job.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.