[wplug] OT: creating uniform size icons?

James O'Kane jo2y at midnightlinux.com
Thu Jun 22 01:12:33 EDT 2006


On Thu, 22 Jun 2006, Zach wrote:

> http://www.videolan.org/vlc/
> (the "Download VLC" section)
>
> Just curious how people do this.

They use the super-secretive method of width='32' height='32' in the img 
tag. The browser does the resizing.
If you look at the windows, fedora, suse, and altlinux images, you'll see 
they're actually larger than 32x32.
Ie. http://download.videolan.org/images/icons/windows.jpg

It should be noted that this is probably wasteful from a bandwidth point 
of view. The file on the website is 3.3K while a proper resize is .6K. If 
my math is right, that's about 17Gbytes (not bits) of unneeded transfers 
since May 11th when 0.8.5 was released.


[jo2y at jadzia ~]$ convert -resize 32x32 windows.jpg windows32x32.jpg
[jo2y at jadzia ~]$ du -b windows*
3317    windows.jpg
647     windows32x32.jpg


-james


More information about the wplug mailing list