jyotiverma0310 / burningimage

Automatically exported from code.google.com/p/burningimage
0 stars 0 forks source link

Allow conversion support #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Worker.groovy:113 
you have :
ImageIO.write(ImageIO.read(new ByteArrayInputStream(image.getAsByteArray())), 
image.extension, new File(outputFilePath));

It would be nice to allow one to change the extension.

For example i am using ImageMagik on my site and the user uploads a bmp or png 
.... i'd rather save it as a jpeg for size issues. Would be nice to be able to 
over write it without having to metaclass your code :)

Original issue reported on code.google.com by nusai...@gmail.com on 18 Sep 2012 at 9:45