Add-ons › Widgets › Web Developer
image size
Description
Calculate the size of an image, depending on its dimensions, compression and color depth.
Screenshots

Comments (3 on the original page, latest shown)
Download
Works with Opera 9 to Opera 12.
About this widget
| Downloads | 5,877 |
|---|---|
| Category | Web Developer |
| Version | 1.0 |
| Size | 20KB |
| Last update | March 1, 2007 |
| Devices | desktop |
| Original page | Internet Archive |
All versions
- image_size-1_0.zip 20 KB (recovered copy)
Do you show it the picture in question by a virtual upload and it tells you? The description isn't long enough to fully explain all this widget is for.
seremina, there's no particular picture in question, because the widget is just be for giving you a ballpark figure of what a hypothetical image's file size would likely be, based on the parameters you enter. The calculation is Width x Height x compressionRate x (BitDepth/8) x (1/1024) = #KB ("1/1024" because there are 1024 bytes in a kilobyte, "Bitdepth/8" because there are 8 bits to a byte) For JPEG it assumes a rate of 1/10, for PNG a ratio of1/2, for GIF a ratio of1/3, and plain bitmaps are uncompressed (1/1). You can readjust the compression rate though. A problem however, is that in reality the filesize of compressed images can vary enormously depending on the complexity of the contents. For example, If you make a PNG image with nothing but some horizontal stripes of various solid colors, you can easily get an extreme compressed:uncompressed ratio, like 1:876 for this picture: http://img101.imageshack.us/img101/6941/test2yf8.png. Also, compression rates can often be adjusted. That said, I think this widget still can be useful for certain kinds of pictures. Hm, now that I look, I see your comment was posted nearly a year ago; even if you don't see this reply, perhaps it will clarify things for someone else. Note: I have no connection to the author, so no one should message me about the widget.
Oops, my previous comment seems to have gotten cut off, probably because of a limit on the post length. It was supposed to end with the words: "even if you don't see this reply, perhaps it will be helpful to someone. Just to be clear though, I have no connection to the author."