Thanks Ismael, Peter and I have been using imageoptim for the last few months, 
but I know not all the graphics been compressed since many are older. It would 
be great to have scripts like this run when the build is being compiled.  

I can also see the value of one that would dither files with gradients for 
lower colour bit depth screens…

ie. if we added _dither to the graphic file name, the script would dither that 
file to a specific variable, so in devices with 16bit colour we can dither 
gradients while on devices with 24bit colour we would not run that script. That 
would allow us to have 1 version of the graphic files and optimize the quality 
for 2 devices.   

--  
Patryk Adamczyk, R.G.D.
Senior User Experience Designer, Visual Design
Firefox OS & Firefox Mobile
Mozilla Corporation



On Thursday, 4 October, 2012 at 4:59 AM, Josh Carpenter wrote:

> Whoa, nice find. Thanks Ismael!
>  
> —
> Josh Carpenter
> UX Designer, FxOS
> Mozilla  
> On Oct 4, 2012, at 1:03 AM, Ismael González wrote:
> > There is a great MacOSX application, http://imageoptim.com/ that compress 
> > images without loss.  
> >  
> > --Ismael González / @basiclines
> >  
> >  
> > El jueves, 4 de octubre de 2012 a las 08:46, Josh Carpenter escribió:
> >  
> > > Is there anything UX can be doing to assist at time of graphics creation?
> > >  
> > > —
> > > Josh Carpenter
> > > UX Designer, FxOS
> > > Mozilla
> > >  
> > > On Oct 3, 2012, at 12:48 PM, Gabriele Svelto wrote:
> > >  
> > > > Hello all,
> > > > yesterday while browsing bugs I stumbled upon this one suggesting to 
> > > > re-compress (without quality loss) the images in Firefox to reduce the 
> > > > installer size:
> > > >  
> > > > https://bugzilla.mozilla.org/show_bug.cgi?id=631392
> > > >  
> > > > I've followed a simpler procedure by recompressing all PNG files in the 
> > > > gaia directory with a 'optipng -o9 --strip all' command followed by 
> > > > 'advpng -4 -z' then rebuilt the project. The resulting userdata.img 
> > > > file had shrunk by ~1.7MiB or roughly ~4%.
> > > >  
> > > > Since the improvement is small but non-trivial I wanted to hear if 
> > > > there was interest into applying this kind of re-compression to our 
> > > > assets. I haven't opened a ticket on this topic but if there's interest 
> > > > I'll do it; I guess this should include adding a properly written 
> > > > script for re-compressing files and documentation in Gaia's MDN pages 
> > > > on how to use it and what workflow to follow when adding new images or 
> > > > modifying existing ones. Alternatively one could image adding a 
> > > > compression step at build-time but this could significantly slow down 
> > > > the build process as well as add more tools to the build dependencies.
> > > >  
> > > > Gabriele
> > > > _______________________________________________
> > > > dev-gaia mailing list
> > > > [email protected] (mailto:[email protected])
> > > > https://lists.mozilla.org/listinfo/dev-gaia
> > > >  
> > >  
> > >  
> > > _______________________________________________
> > > dev-gaia mailing list
> > > [email protected] (mailto:[email protected])
> > > https://lists.mozilla.org/listinfo/dev-gaia
> > >  
> > >  
> > >  
> >  
> >  
>  

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to