Skip to main content

Topic: Recommend a command-line utility to scale images to fit a defined file (Read 2343 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • rohangc
  • [*][*][*][*][*]
Recommend a command-line utility to scale images to fit a defined file
Hi.

I am about to batch transcode my FLAC files into LAME 3.99.5 MP3s. I have really large high-resolution album-art images that I downloaded off the Internet.

The problem is my phone which will be one of my listening devices expects album-art to be embedded in the MP3s that it plays or it won't display them at all.
It really doesn't make sense to embed a large image file (sometimes running into megabytes) into each and every MP3 file in an album.

I want a command-line utility that I can use with CygWin to scale a bunch of .jpg files in a folder to a specified file size (say 100KB). I am willing to live with the bloat caused by embedding these (relatively) small images into my individual MP3s.

If someone knows of one such software, please let me know what it is. Thanks for your help in advance.

Cheers.

  • harto69
  • [*]
Recommend a command-line utility to scale images to fit a defined file
Reply #1
Hi,
Irfanview has a confortable batch-conversion-utility.
Harald

Edit: hoppala, not a command-line utility, sorry!
  • Last Edit: 17 April, 2012, 03:47:02 AM by harto69

  • rohangc
  • [*][*][*][*][*]
Recommend a command-line utility to scale images to fit a defined file
Reply #2
Last night, I found ImageMagick which seems to be the only decent command line image processing software around.

Although it didn't exactly fulfill my requirements, I used it to simply resize all my album art images to a 'low' 256x256' resolution and had to be content with that.

Looks like I can't have my cake and eat it too

  • polemon
  • [*][*][*]
Recommend a command-line utility to scale images to fit a defined file
Reply #3
http://www.graphicsmagick.org/

Simply prefix your imagemagick command with gm:

Code: [Select]
mogrify -scale 250x250 cover.png

becomes:
Code: [Select]
gm mogrify -scale 250x250 cover.png
-EOF-