Yes, but since it is only able to handle one file at a time, I'll probably have to create a plugin in order to run it for each image.
Laurent 2010/7/24 Kalle Korhonen <[email protected]> > Unless there's a Java version of pngcrush, I wouldn't worry about > running it as a plugin. You could just configure exec plugin > (http://mojo.codehaus.org/exec-maven-plugin/) to run pngcrush. > > Kalle > > > On Sat, Jul 24, 2010 at 7:12 AM, Laurent Martelli > <[email protected]> wrote: > > Hi there ! > > > > I'm working on a webapp project where PNG images are huge because they > > contain many layers. The layers are useless when running the webapp, but > we > > would like to keep them in our repository because that's the native > format > > for the guy editing them. > > > > We all know that Maven can substitute properties in text resources, but > how > > can we filter those binary PNG images through pngcrush or a similar > program > > in order to create a war that is as small as possible ? > > > > It looks like plugin configurations are not enough to do this, so I'm > > getting ready to create a custom plugin. But I don't know what would be > the > > best way to achieve our goal. > > > > Thanks in advance for you asnwers ! > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
