-
Notifications
You must be signed in to change notification settings - Fork 90
Optimize hero unit images #946
Comments
I was just watching a CSSConf presentation on CSS Performance Tooling and the speaker mentioned a tool called gulp-imagemin, which would allow us to do the image optimization during the build/deploy phase rather than during development. I like this approach a lot because it means we can optimize for quality during development and then easily scale to whatever target quality we want for production, without having to do any manual fiddling. The speaker also mentioned gulp-svgmin which could be useful for optimizing our SVGs. |
Hmm, so I attempted to play around with gulp-imagemin a bit today and ran into a few things:
|
thanks for taking this over @toolness 😺 |
No probs mavis! So it seems like the imagemin thing is specifically intended for lossless minification, whereas I think that we'll actually need to loss-fully (is that the right word?) compress some of our images to really save on space. I'll look at a module called |
From my above comment:
I was actually having a similar problem when using an entirely different library to process our images in #1026, and found that upgrading node from v0.12.0 to v0.12.4 fixed things on my Windows machine. I haven't tried |
Hmm, so I tried using Update: An optimization level of 1 takes only 5.2 seconds, while level 2 takes 34 seconds. |
As mentioned in #943 (comment)
The text was updated successfully, but these errors were encountered: