Post Archive
› December 7, 2001
image parse favelet
I've been hunting down developer bookmarklets and favelets for the next webgraphics feature article, but today I went ahead and made my first bookmarklet. It grabs all images from a page, and displays them along with their height and width and (in IE) filesize. Just drag the link below into your linkbar, or bookmark it and use anywhere:
imgParse
I'm posting this here, but it's not tested much at all - as of this post, only IE 6 and Moz 0.9.5 on Win2k. Comments on compatibility, suggestions for improvements, etc will be greatly appreciated.
Comments
1. December 7, 2001 10:57 AM
2. December 7, 2001 12:17 PM
Quote this comment
Nate Posted…
Mac Classic IE seems to be another story (osX hasn't been tested yet). The page is displaying, but the image file size is rendering as zero. On non-IE browsers (I would expect) that the file size would render as "undefined", at least this is how mozilla handles it... I think the reason for all this is that the "fileSize" attribute is win IE only. The good news is that as of yet, the image display and width/height seems to show up everywhere.3. December 7, 2001 05:35 PM
Quote this comment
Andy Posted…
How about a file size tally at the bottom? Save some glucose on the addition!4. December 10, 2001 01:15 PM
Quote this comment
Andy Posted…
Ok, here's an update that supports total filesize: doit This wont work for Mozilla as .fileSize is not implemented. I've filed a bug, but an optimistic eta is March '02.5. December 10, 2001 01:18 PM
Quote this comment
Andy Posted…
Let's try that one more time. Properly named with cleaner output. ImgParse6. December 10, 2001 03:22 PM
Quote this comment
Nate Posted…
Cool, except it looks like the total number is a coccatonation (sp?) of the byte numbers, rather than the sum. And for some reason, it seems to be happy in IE 5x but not 6. We will get a final version out soon enough!7. December 10, 2001 03:24 PM
Quote this comment
pup Posted…
ie6/nt4 - works great. nice job.