32 Bit PNG's with IrfanView
Community Forums/Developer Stations/32 Bit PNG's with IrfanView
| ||
I'm trying to convert a folder full of 32 bit BMP's to 32 bit PNG's, and I figured Irfanview would do. But it doesn't seem to notice the alpha channel. I'm guessing there's an option somewhere ( other than forcing it to ask me for a single color to make transparent ( 1 bit alpha ) because I've found a few pages saying that Irfanview is 32bit PNG compliant, but it's not doing it for me. |
| ||
Couldn't you make a five liner BlitzMax app to do it?Local dir:String = String(StripSlash(RequestDir("Select folder with images to convert to .png!"))+"/").Replace("\","/") Local files:String[] = LoadDir(dir,True) For Local f:String = EachIn files If ExtractExt(f.tolower()) <> "png" Print "Converting: "+dir+f Local i:TPixmap = LoadPixmap(dir+f) If i Then SavePixmapPNG(i,StripExt(dir+f)+".png",9) EndIf Next Print "Done!"Ok, a ten liner then. [edit]Improved! Now with directory requester! |
| ||
BMP doens't have an alpha channel anyway? |
| ||
Doh! I didn't think BMax loaded the alpha channel in BMP's. Thanks for that! BMP doens't have an alpha channel anyway? It certainly does. |