Page 1 of 1

Use ImageMagick to convert png to png 24

Posted: 2014-10-10T05:41:39-07:00
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!

Re: Use ImageMagick to convert png to png 24

Posted: 2014-10-10T05:45:12-07:00
by Ackbach
Never mind: comment # 9 in the link was exactly the right thing!

Cheers.