I'm just seeking clarification of your problem.
Are the images your after counting the pixels in, non-rectangular in shape?
Will compression have been applied to them?
GIFs and PNGs are usually rectangular in shape, and the size is embedded in the header and easily recoverable. The only way (that I am aware, though I'm open to correction?) that a non rectangular piece of an image could be represented in either format is by designating one of the colour table entries to be the "transparent background colour". So, to determine the number of pixels that constitute the visible part of the image means counting those not index by that colour table entry. However, that get further complicated if compression has been applied to the image.
In reply to Re: pixel counting
by BrowserUk
in thread pixel counting
by redbeard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |