Results 1 to 2 of 2

Thread: imagick help

  1. #1

    imagick help

    I have a dir with a tons of image jpg, gif, png etc. I want to create a script (bash or perl)to resize all imagenes into 160x160 and change the name like this "filename_thumb.jpg filename_thumb.gif filename_thumb.png" etc in high quality.

    Here a sample

    example_thumb.jpg (160x160 high quality)
    Thank You.

  2. #2
    Join Date
    Feb 2005
    Untested, but something to start you off:
    for ext in jpg png gif; do
      for file in *.$ext; do
        convert -resize 160x160 "$file" "${file%.*}"_thumb.$ext
    (Backup first!)

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

Similar Threads

  1. imagick installation error - help?
    By Hare in forum VPS Hosting
    Replies: 3
    Last Post: 09-22-2009, 04:23 AM
  2. PHP APC and Imagick with cpanel
    By Chasseur d'étoiles in forum Hosting Software and Control Panels
    Replies: 2
    Last Post: 04-04-2009, 12:57 PM
  3. Get imagick extensions?
    By Criminal#58369 in forum Hosting Security and Technology
    Replies: 0
    Last Post: 10-09-2005, 12:40 PM
  4. install imagick .. ?
    By khalifa in forum Hosting Security and Technology
    Replies: 15
    Last Post: 11-03-2004, 01:17 AM

Posting Permissions

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