View Single Post
07-12-2010, 10:59 PM
#4
free-designer is offline free-designer
Status: Junior Member
Join date: Jun 2009
Location:
Expertise:
Software:
 
Posts: 98
iTrader: 0 / 0%
 

free-designer is on a distinguished road

  Old

Originally Posted by santa View Post
getimagesize() is probably the best way to go around finding an image's size.

You ever going to use this forum for anything OTHER than asking questions?
Thanks for you comment, but is there any law of talkfreelance sayting that i shouldn't always ask????

Originally Posted by Salathe View Post
To confirm santa's suggestion, getimagesize() does exactly what you're looking for and will likely be as fast as you can get for doing this task.

The underlying C code for the function (for the common image types) literally reads the first few bytes of the file for the required width/height information; you can't get much more streamlined than that.
well i guess it's true, thanks salathe.


MOD note: merged

Reply With Quote