Marcus: could you specify the speed loss? If it's noticeable I would rather suggest to either introduce a new function or another parameter to getimagesize(), no matter what the default is (e.g. let getimagesize() get the "real" size and introduce something like getimagesize_fast()) or the other way around.
Not before seeing the solution...
I once thought about it, too. But i skipped the idea because i guessed i had to decompress the first block. At the time i was thinking about it we had the philosophy to exclude all patend related code... marcus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php