How to bulk resize JPG files in folder and subfolder

Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2006
Posts: 43
Reputation: bimaljr is an unknown quantity at this point 
Solved Threads: 0
bimaljr bimaljr is offline Offline
Light Poster

How to bulk resize JPG files in folder and subfolder

 
0
  #1
Oct 14th, 2008
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 ?
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: How to bulk resize JPG files in folder and subfolder

 
0
  #2
Oct 14th, 2008
Maybe the "find" command with the "exec" option?
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 43
Reputation: bimaljr is an unknown quantity at this point 
Solved Threads: 0
bimaljr bimaljr is offline Offline
Light Poster

Re: How to bulk resize JPG files in folder and subfolder

 
0
  #3
Oct 15th, 2008
Oh
I got the command
  1. find . -iname "*.jpg" | xargs -l -i convert -resize 1000x600 {} {}

This will do my job.
Last edited by bimaljr; Oct 15th, 2008 at 1:07 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Shell Scripting Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC