Jump to content
Sign in to follow this  
kde-head

Bulk Thumbnailing from the command line

Recommended Posts

Requirements: ImageMagick

(urpmi imagemagick should install it for you)

 

If you have a directory of large jpg images that you want to mass thumbnail down to say , 120 pixel wide thumbs, just issue to the following command from the konsole:

 

ls -1 *.jpg | sed "s/\(.*\)\.jpg/\1.jpg \1_thumb.jpg/" |xargs -n 2 convert -resize 120 -quality 100 -compress JPEG

 

 

 

This creates 120 pixel wide thumbs of your images , all with the extension "_thumb.jpg"

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...