http://qs321.pair.com?node_id=70308


in reply to Delete or warn about oversize photos in an LDAP directory (uses GD and Net::LDAP)

Useful!

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.

  • Comment on Re: Delete or warn about oversize photos in an LDAP directory (uses GD and Net::LDAP)
  • Download Code