Thanks to Joseph Jiang who translated in Chinese parts of my image optimization articles from the YUI blog
If you read Chinese, visit http://josephj.com/entry.php?id=209.
Thanks to Joseph Jiang who translated in Chinese parts of my image optimization articles from the YUI blog
If you read Chinese, visit http://josephj.com/entry.php?id=209.
ExifTool looks like a very promising tool to fiddle with all sorts of JPEG metadata (needed for smush.it) but first I had to make sure I can install it on Dreamhost. Although installation didn't go as described on the exiftool site (since I don't have sudo access on Dreamhost), it's still installable and it's actually pretty easy.
wget http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-7.59.tar.gz
tar -xf Image-ExifTool-7.59.tar.gz
rm Image-ExifTool-7.59.tar.gz
Image-ExifTool-7.59 to something shorter to type, e.g. "et"mv Image-ExifTool-7.59 et~/et/exiftool - hYou can also test the new installation with some of the images found in the exiftool test directory, like so:
$ ~/et/exiftool ~/et/t/images/IPTC-XMP.jpg ExifTool Version Number : 7.59 File Name : IPTC-XMP.jpg File Size : 20 kB File Modification Date/Time : 2005:12:31 13:05:50-08:00 File Type : JPEG MIME Type : image/jpeg JFIF Version : 1.02 Exif Byte Order : Little-endian (Intel, II) Image Description : A witty caption Make : FUJIFILM Camera Model Name : FinePix2400Zoom Orientation : Horizontal (normal) X Resolution : 72 Y Resolution : 72 Resolution Unit : inches Software : Adobe Photoshop 7.0 Modify Date : 2004:02:26 09:36:46 Artist : Phil Harvey Y Cb Cr Positioning : Co-sited Copyright : Copyright 2004 Phil Harvey F Number : 3.5 Exposure Program : Program AE ISO : 100 Exif Version : 0210 Date/Time Original : 2001:05:19 18:36:41 Create Date : 2001:05:19 18:36:41 Components Configuration : YCbCr Compressed Bits Per Pixel : 1.6 ... ... [snip] ... Encoding Process : Baseline DCT, Huffman coding Bits Per Sample : 8 Color Components : 3 Y Cb Cr Sub Sampling : YCbCr4:4:4 (1 1) Aperture : 3.5 Image Size : 100x80 Shutter Speed : 1/64 Focal Length : 6.0 mm Light Value : 9.6
Thanks to everyone who attended my image optimization talk at the php|works + PyWorks conference in Atlanta. And thanks for all the questions! I love questions, feels more natural - just geeks talking to geeks - as opposed to one guy sitting on a podium and talking.
And the slides:
What's new in smush.it?
Smush.it is getting more and more buzz all over the internets. Now there's even a song about it! Me and Nicole are pretty busy answering email, but a little slow to document the thing, I though I should at least shed some light on how the tool works by using some of the presentations.
What the tool does can be summarized in these steps:
source.gif.png. Smush.it uses imagemagick to do the conversion and then pngcrush to crush the pngsThis has been documented here on developer.yahoo.com together with the command line tools and options.
So all the tool does is run the appropriate command for each file type. Easy as that
All the tools mentioned are free open-source and available on all operating systems, including Windows.
Here are some presentations on slideshare that might explain things a little more:
Happy smushing!
"Smush it! Smush it real good..." - hothardware.com ![]()
Since me and Nicole announced smush.it yesterday at Ajax Experience and thanks to Christian Heilmann posting it on Ajaxian and Yahoo Developer Network, this thing seems to have exploded! It's all over the blogosphere, twitter-sphere and every other sphere.
BTW, Chris never seizes to amaze - he posted the video on Ajaxian at 11:01 am and our talk was from 10:30 to 10:35 am
Last night, about 12 hours after the announcement, I checked the directory that stores the results and it had over 10 000 entries. There's one entry for every smush.it run, which means for example every page you smush using the FF extension. If you have 5 images on a page on average, this means over 50 000K smushed images in a day, nice!
We've received great feadback and great suggestions, keep'em coming. People are already making smush.it part of their dev/build process. People are already seeing response time performance improvement.
I'm really looking forward to releasing the official API, open source the code, the command-line version and all the fun stuff. We were just too busy trying to come up with something presentable for the Ajax conference.
The URL again: http://smushit.com
So, what's a smu? ![]()