Author Topic: recreate on the command line prompt in Linux what album.pl does?  (Read 1057 times)

0 Members and 1 Guest are viewing this topic.

Offline ziphem

  • album.pl User
  • *
  • Posts: 5
  • Karma: +0/-0
  • I forgot to change the default text
This may be a bit off topic, but can anyone tell me how to recreate on the command line prompt in Linux what album.pl does (-scale and renaming images...)?  I don't think I'm Imagemagick 6.0 yet....

Ultimately I'd like to convert all images in a directory tacking on a _small to the filename, lik 112432.jpg converts to 112432__small.jpg, so now the directory has 112432.jpg and 112432__small.jpg

Thank you!!!
« Last Edit: April 01, 2004, 02:48:03 by ziphem »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: recreate on the command line prompt in Linux what album.pl does?
« Reply #1 on: April 01, 2004, 14:47:55 »
Hi ziphem,

You should be able to do something like this:

ls *.jpg *.JPG | xargs -i covert -scale 120x90 {} small_{}

Would create thumbnails for all existing JPEG files in the current directory to no more than 120x90 dimensions. The thumbnails would have a "small_" prefix in their filename. (Inserting __small in the middle of the filename would be harder...)

Hope that helps.


Cheers

Offline ziphem

  • album.pl User
  • *
  • Posts: 5
  • Karma: +0/-0
  • I forgot to change the default text
Re: recreate on the command line prompt in Linux what album.pl does?
« Reply #2 on: April 01, 2004, 21:55:56 »
Great - just what I needed!!  Thanks!!!