Use ImageMagick to convert png to png 24

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Ackbach
Posts: 2
Joined: 2014-10-10T05:30:33-07:00
Authentication code: 6789

Use ImageMagick to convert png to png 24

Post by Ackbach »

Running Xubuntu Linux 14.04, IM 6.7.7-10, and I would like to use the Bash shell to invoke IM.

What I want to do is fix the mplayer bug here: https://bugs.launchpad.net/ubuntu/+sour ... ug/1218510. This involves converting at least one png file to a png 24 file, as per Comment # 8 in the link.

I would like to build up a nice bash shell script to do this. I realize I don't have to convert all the files in the directory structure, but if you all could please help me out here with the necessary bash shell commands, I would be much obliged. Start simple:

1. Convert a single png file to png 24, and then rename it as before.
2. Do this for all files in a folder.
3. Do this for all files in a folder, and any in subfolders, recursively.

Thanks much!
Ackbach
Posts: 2
Joined: 2014-10-10T05:30:33-07:00
Authentication code: 6789

Re: Use ImageMagick to convert png to png 24

Post by Ackbach »

Never mind: comment # 9 in the link was exactly the right thing!

Cheers.
Post Reply