Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Recommend a command-line utility to scale images to fit a defined file (Read 3568 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

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.

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!

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

 

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