I know this is not a PHP question,
but does anyone know how to calculate the filesize of an JPEG image.
I have this Javascript, where I get the values from two textfields (width and height)
and resize the image on the fly (onKeyPress)
It would be nice to get the filesize before submitting.
acording to JPEG I guess I need to know at least this:
width
height
JPEG quality
but I dont know how to do the math,
please anyone help
thanks in advance,
regards Thomas A.