[
https://issues.apache.org/jira/browse/IMAGING-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14079125#comment-14079125
]
Julien Gouesse commented on IMAGING-138:
----------------------------------------
There is no mean of knowing whether there is some write support for a format
before using it (and catching an ImageWriteException when calling
writeImage()). There will be the same problem with formats whose data source
can contain several images (typically ICNS, ICO, DCX, TIFF and maybe GIF).
> Provide some Ant tasks to perform image conversions
> ---------------------------------------------------
>
> Key: IMAGING-138
> URL: https://issues.apache.org/jira/browse/IMAGING-138
> Project: Commons Imaging
> Issue Type: Improvement
> Components: Format: ICNS, Format: ICO
> Reporter: Julien Gouesse
> Priority: Minor
>
> I suggest to add some Ant tasks to perform image conversions into Commons
> Imaging, especially from/to formats that aren't supported by any known Java
> library. I could have written a custom Ant task for my own project but I
> think it would be better for this project.
> In my case, I need to convert a PNG image into ICNS in order to use it as a
> logo for a Mac application bundle and I use Ant as a build tool. As I don't
> generate this bundle under Mac (I'm under Mageia Linux), I can't use Mac
> build-in tools to create the .icns file and using external softwares to make
> the conversion each time I modify the original logo is annoying. I'll
> probably have the same problem with .ico files.
> Please indicate how I should modify the Maven pom file in order to compile
> the custom tasks and I'll be ready to contribute.
--
This message was sent by Atlassian JIRA
(v6.2#6252)