Thursday, September 6, 2007


From time to time, the marketing team at Sun change their graphics on the Homepage. When the image with the sunflowers appeared (, I noticed that the time to load was long. And every time. But I had other things to take care of.

Finally, this morning I sent a message to the Webmaster, mentioning that the size of the image is too large.

The same image by regional sites:

USA (nla) ~50KB-60KB
Canada (English) 49KB
Canada (French) 51KB
Spain 40KB
Latin America 49KB
France 250KB !

I did not expect anything, so imagine my surprise when a short time later, I receive an email which tells me that the issue is transmitted to the technical team. Furthermore, less than 10 minutes later it was corrected (60KB now)!

Now, why so much difference between the different sites? More than likely, each one uses a different software, a different ratio etc.

How can you prepare an image for the Web with Solaris?

With Imagemagick, included with Solaris (/usr/sfw/bin):
convert b1_geo_eco_master.png -quality 50% b1_crushed.jpg

50% is usually very good for the Web, but if not, you can use -quality 60% or more (the size goes up with the quality).

Another option, with Imagemagick found at Sunfreeware (pkgadd -d imagemagick-6.3.0-sol10-x86-local) or Blastwave (pkg-get -i imagemagick):
convert b1_geo_eco_master.png -strip -quality 50% b1_crushed.jpg

The -strip option is new (not found in Imagemagick 5.x) and remove all profiles and meta-data that the image may have due to programs like Gimp or Photoshop and color profiles that digital cameras tag to images.

No comments: