Optimized JPEG
213,171 bytes
Meta is removed
Lossy Compressed JPEG
71,874 bytes (66% cut)
Slide 15
Slide 15 text
I want to optimize them in CLI…
Slide 16
Slide 16 text
No content
Slide 17
Slide 17 text
So I made grunt-image
and gulp-image.
Slide 18
Slide 18 text
grunt-image
Slide 19
Slide 19 text
gulp-image
Slide 20
Slide 20 text
$
npm
install
grunt-‐image
$
npm
install
gulp-‐image
or
Slide 21
Slide 21 text
grunt-image Features
Reduce the number of color
Remove image meta data
Support JPEG, PNG, GIF, SVG.
Work on CLI !
%
&
|
(
Slide 22
Slide 22 text
No content
Slide 23
Slide 23 text
Conclusion
Slide 24
Slide 24 text
24bit PNG
Slide 25
Slide 25 text
In development. If in
production, down
converting them is worth
considering.
Which contain many colors
and transparency.
When?
What kind of images?
Slide 26
Slide 26 text
JPEG
Slide 27
Slide 27 text
When we upload images to
production server. They are
lossy compressed.
Which contain many colors
but transparency, and will
be lossy compressed.
When?
What kind of images?
Slide 28
Slide 28 text
8bit PNG
Slide 29
Slide 29 text
When we upload images to
production server. They are
lossless compressed but
already lossy.
Which contain ~256 colors
and transparency.
When?
What kind of images?
Slide 30
Slide 30 text
Images should be optimised
with your
grunt-image or gulp-image ;)