Unless it's important to verify that the JPEG is valid before doing any other checks, checking the image size before turning the JPEG into a GD::Image saves a few cycles in the "too big" case.
In reply to Re: Delete or warn about oversize photos in an LDAP directory (uses GD and Net::LDAP)
by dws
in thread Delete or warn about oversize photos in an LDAP directory (uses GD and Net::LDAP)
by araqnid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |