Find the answer to your Linux question:
Results 1 to 2 of 2
I was wondering how to resize several images for example in the same folder using image magik's convert....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Location
    Europe
    Posts
    13

    resize several imgs using convert?


    I was wondering how to resize several images for example in the same folder using image magik's convert.

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Hmm, most likly you'd be able to use a bash for loop for this.

    Code:
    #!/bin/bash
    
    files=$(ls -1)
    for x in $files
    do
    convert -geometry 200x200 $x newsize-$x
    done
    that will convert all the images in your current directory into 200x200 pixel images... you can change the convert comand to whatever you want.
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •