[
https://issues.apache.org/jira/browse/IMAGING-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14077514#comment-14077514
]
Julien Gouesse commented on IMAGING-138:
----------------------------------------
I'm going to make some improvements:
- move the Ant specific code into a separate class so that the Ant agnostic
code can be used without depending on Ant
- when the destination image file is a .icns file, create several images with
proper sizes from the source image file by rescaling it by default
- when the destination image file is a .icns file, accept (optionally) a file
set of source images
- when the source image file is a .icns file, use its biggest image by default
instead of the first one
- add a flag to enable the rescale of source images (true by default) into the
Ant agnostic class and add a setter into the Ant specific class
- add a field indicating the index of the image to pick inside a source .icns
file (0 by default, -1 means it picks the biggest image, -2 means it picks the
smallest image) into the Ant agnostic class and add a setter into the Ant
specific class
- add some documentation into these two classes
> 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)