| Issue 41: | ImageMe | |
| 4 people starred this issue and may be notified of changes. | Back to list |
We could do something similar to SpriteMe for image optimization. - ImageMe finds all the images in the page (both IMG images as well as CSS background images). - ImageMe sends the list of image URLs to coolRunnings. - CoolRunnings fetches each image and optimizes it. This has to be lossless - so it's okay to change image format, but not at loss of quality. - CoolRunnings returns a JSON structure that has the list of original image URLs. For each image URL there is the original size, the coolRunnings optimized image URL, and the optimized size. (Even if the optmized size is greater than the original size - leave it to the client to deal with this.) What about removing JPG comments? - For each improved image, ImageMe swaps it out for the optimized image URL. Need some logic to determine "improved" - saving 5 bytes on a 50K file isn't worth it. Thoughts?
Sep 14, 2009
Project Member
#1
jaredhir...@yahoo.com
Oct 29, 2009
http://www.gracepointafterfive.com/punypng does a really good job on coolrunnings results - I tested it on resulting sprites and some increase in size is of spriting almost completely illuminated by punipng.
Feb 7, 2010
Would it be possible to use this proposed ImageMe service to not just optimize images, but also to add and convert <img> to sprites? I can see a lot of issues with it but when I optimized my websites beyond what spriteme could help with, I found a lot of leftover <img> tags that should be handled by an advanced service like this. Convert them to a similar tag (although leaving <img> and just emptying the src attribute could work too) and add the sprite as the background image with correct position. The icons I found were generally things like website logo in the header, search icon next to the search bar, rss/twitter icon in the footer. I think these are general enough issues to make it possibly worth it for a wide range of users. |