Post Reply 

simple image conversion on files

Jun 25, 2011, 17:48
Post: #1
simple image conversion on files
Hello guys,
I am really frustrated. I have been trying to find a script that will do this for me but can't. I basically have thousands of .png files and I want to convert them to .bmp . It's as simple as that. The steps I take to do this in gimp are:
1) Open the .png file.
2) Goto file save-as.
3) Change the extension from .png to .bmp and save. (leaving the "advanced settings" to default.. that is save as 32bit "ARGB")

An example image is here: http://www.amanithvg.com/testsuite/amani...n_swap.png

I want to do repeatedly for all the image files. Can someone please help me. It's so simple but I don't really know much scripting.

Thanks!
Find all posts by this user
Quote this message in a reply
Jun 25, 2011, 17:57
Post: #2
RE: simple image conversion on files
Why are you using Gimp for that. Use some command line utility like ImageMagick. Can be as simple as:

convert some.png some.bmp

http://www.imagemagick.org/script/index.php

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Jun 26, 2011, 22:06
Post: #3
RE: simple image conversion on files
(Jun 25, 2011 17:57)ofnuts Wrote:  Why are you using Gimp for that. Use some command line utility like ImageMagick. Can be as simple as:

convert some.png some.bmp

http://www.imagemagick.org/script/index.php

Hi, thanks for help. I downloaded and the did the conversion like you said but the file size is not exactly the same as from gimp. I want to preserve the alpha channel and the output should be "ARGB" and not even "RGBA". I need this to do some more manipulation later. please tell me if you know how to do that.
thanks!
Find all posts by this user
Quote this message in a reply
Jun 26, 2011, 22:37
Post: #4
RE: simple image conversion on files
(Jun 26, 2011 22:06)djgolu123 Wrote:  Hi, thanks for help. I downloaded and the did the conversion like you said but the file size is not exactly the same as from gimp.
As you can see in the Gimp dialogs, there are plenty of options to save PNG files. Gimp's default are likely no identical to ImageMagick's but if you have a specific requirement I'm sure that ImageMagick covers it.
(Jun 26, 2011 22:06)djgolu123 Wrote:  I want to preserve the alpha channel and the output should be "ARGB" and not even "RGBA". I need this to do some more manipulation later. please tell me if you know how to do that.
thanks!
Try '-background none" to preserve transparency. There is a forum for IM where you will get more precise answers: http://www.imagemagick.org/discourse-server/index.php

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Any plugin for open multiple image in paint.net shinprog 1 334 Oct 31, 2017 11:38
Last Post: paynekj
  Scale image to specific size MattRothschild 1 222 Sep 15, 2017 11:13
Last Post: ythgilb
  Dividing and printing a large image RayArdia 1 156 Aug 9, 2017 07:22
Last Post: ythgilb
  Late binding / COM for opening an image into GIMP? i73 2 205 Aug 4, 2017 17:39
Last Post: i73
  PDB call to Image/Canvas size... ? Shadowes 3 435 Sep 1, 2014 22:31
Last Post: Shadowes

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS