batch convert gif to bmp (SOLVED)

batch convert gif to bmp (SOLVED)

Postby frose » Thu May 21, 2009 8:01 pm

Hello,

how to batch convert a lot of gif's to bmp's keeping the alpha channel?

TIA
Last edited by frose on Sat May 23, 2009 4:39 pm, edited 1 time in total.
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: batch convert gif to bmp

Postby ukoenig » Thu May 21, 2009 8:46 pm

With nConvert it is possible to convert to another format in Batch-mode
from inside Your application.
Have look inside the Forum for nConvert.

If You need it only for one job, maybe this is a better solution
A 30 days trial ( will be enaugh to do the job )

http://www.aha-soft.com/index.htm

AhaView is a handy picture viewer and converter.
It allows you to browse, view, organize and convert your digital images.

With AhaView 4.02 you can:
Browse images in thumbnail mode
View images in full-screen mode
Convert images to BMP, GIF, JPEG, TGA, TIFF, XPM and PNG formats
Create icons from images
Attach descriptions to files
Show a sequence of images as a slide show
Explore image properties
Copy images to the clipboard
Copy, move, duplicate and rename files
Print images
Use command line interface

Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: batch convert gif to bmp

Postby frose » Thu May 21, 2009 11:04 pm

tried
- nconvert -transparent value -out bmp *.gif
and
- nconvert -merge_alpha -out bmp *.gif
but always lost the transparency of the gif's :(
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: batch convert gif to bmp

Postby ukoenig » Fri May 22, 2009 12:32 am

Hello Frank,

maybe have a look / search inside the Forum of nConvert, to solve Your problem :

http://newsgroup.xnview.com/viewforum.php?f=57

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: batch convert gif to bmp

Postby hua » Fri May 22, 2009 2:00 am

frose wrote:Hello,
how to batch convert a lot of gif's to bmp's keeping the alpha channel?
TIA


For batch conversion/resizing of images I frequently use IrfanView. Though I'm not sure about the alpha-channel part though.


1. I invoke its thumbnails viewer using a batch file that contains
Code: Select all  Expand view
"C:\Program Files\IrfanView\i_view32.exe" .\ /thumbs %1


2. I select the images that I want to manipulate then press 'B' to get the conversion dialog box. The rest should be straight forward.
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: batch convert gif to bmp

Postby frose » Fri May 22, 2009 9:47 pm

Uwe, hua,

Many thanks for your comments.

Let me recapitulate and concentrate what I’ve found until now:

- Gimp, XnView , ACDSee and IrfanView are NOT able to store or export a GIF to BMP and keeping the transparent color (alpha channel).

- As you stated here: viewtopic.php?f=17&t=13192,
after long searching and testing in the internet, i found a tool ( freeware ) to convert any PNG, ICO, GIF ... to BMP ( keeping the Alpha-Channel ).
you can use an icon editor to do the job.

- The representatives of this software category converts the GIF, PNG, or other formats at first to ICO and then in a second step to BMP with the possibility to store the transparency.

- Out of topic: If you are reading about this issue in dedicated forums, it becomes quite clear, that the BMP format is outdated, most of the people didn’t even know that BMP’s has the option to set an alpha channel

- Then tested IcoFX for single GIF’s and it works. Doesn’t know if batch converting is possible, the program hang up when browsing a folder.

- Also ‘nConvert’ can convert to ICO! So trying with ‘nconvert -transparent value -out ico *.gif’, but the transparent areas are only converted partly, it’s buggy at this point, so I’ve done no further tests.

- Then found ‘Axialis IconWorkshop’ and downloaded the 30 days trial. This program makes a very good impression. It has functions like ‘How to Batch Create Icons From Images, icons, Cursors...’ and ‘How to Batch Create PNG (BMP) images with Transparency from Icons...’

So, IconWorkshop exactly promises what I want and the first tests are successful :)
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 95 guests