Hello Guest

Premultiplied Alpha Image Converter

  • 1 Replies
  • 4001 Views
Premultiplied Alpha Image Converter
« on: May 08, 2011, 13:16:48 »
Does anyone know where I can get a free premultiplied alpha image converter?

Re: Premultiplied Alpha Image Converter
« Reply #1 on: May 08, 2011, 20:34:42 »
Hi,
I've got an Image Multi-Converter Ant that does batch conversion. But it is by default not enabled for premultiplied alpha (BufferedImage.TYPE_4BYTE_BGR_PRE is it?). You can download it from sf.net project sf3jswing . This is the source code. either open it with Netbeans or build it by command line.
 
You must have downloaded JIGAXtended and JXAKernel, both are the api, you build jxakernel first (from jxakernel directory or netbeans) :
shell : ant DO-lib


do edit jigaxtended/resources/properties/all/net/sf/jiga/xtended/impl/ImcBrowser.properties and change the lines to add _PREmultiplied alpha :

ImageReader6 = image/x-png
ImageReader6_class_r = com.sun.imageio.plugins.png.PNGImageReader
ImageReader6_class_w = com.sun.imageio.plugins.png.PNGImageWriter
ImageReader6_rw = rw
ImageReader6_ext = png
ImageReader6_desc = Portable Network Graphics
ImageReader6_type = TYPE_4BYTE_ABGR_PRE


then copy JXAkernel/dist/Windows/unsigned/lib/lib-.....jar to JIGAXtended/lib/Windows/x86 and build :
shell : ant DO-jar-extension
copy JIGAXtended/dist/Windows/extension/....jar to imagemulticonverter-ant/resources/Windows/x86 and build :
shell : ant install

then you can run imagemulticonverter from the dist/applet directory and convert to image/x-png files using 4byte premultiplied alpha output format. 8)


(you can build for other arch like 64 bits (amd64) or Mac or Linux, too)
« Last Edit: May 08, 2011, 20:37:02 by broumbroum »