Saved Bookmarks
| 1. |
Solve : how to: auto get image size/resolution/etc and print? |
|
Answer» You know 4chan.org (http://orz.4chan.org/hr/imgboard.html). It thumbnails picturs and shows the details of the original. Below the small thumbail it will SAY something like: File :1237263364.jpg-(415 KB, 2000x1600, test.jpg) Use getimagesize() function? (http://us2.php.net/manual/en/function.getimagesize.php) Exactly. HTML cannot do it. Quote from: And 1 on March 16, 2009, 10:53:52 PM Can someone show me an example of how do it with a 1 picture gallery? The link above shows plenty of examples to get you going.i FIGURED it out. Here is an exmple of a working one on a blank page. Just one image and to the right of it it says "800x500" LIST($width, $height, $type, $attr) = getimagesize("test.jpg"); echo ""; echo $width; echo 'x'; echo $height; ?> Good job. |
|