PDA

Click to See Complete Forum and Search --> : image resize


MasterGoon
Dec 24th, 2000, 12:47 PM
anybody know how to resize and save and image, to make thumbnails?

Dec 24th, 2000, 01:35 PM
Just use the height and width properties with the <img> tag.

<img src="/images/mygif.gif" height="15" width="25">

Dec 24th, 2000, 02:21 PM
I think he means to actually resize the image.. not just in the HTML document.

but I can't really tell.. :confused:

MasterGoon
Dec 24th, 2000, 03:50 PM
i need to resize the image, if i just change the HTML the file size stays huge, and displaying many thumbnails on 1 page will time out for 56k guys

MasterGoon
Dec 24th, 2000, 03:52 PM
i think this would be easiest to do in php, but not sure how, asp would require a component

Dec 24th, 2000, 03:55 PM
well, you need the graphics lib to do this with PHP..

can't you just have 2 images?

one that is small, and one that is large?


Thats the way I would do it..

MasterGoon
Dec 24th, 2000, 04:17 PM
the images are being uploaded by a user, I don't want to have them upload their own thumbnails too, i want the script to make the second file when the big one is uploaded

Dec 24th, 2000, 08:14 PM
http://www.php.net/manual/ref.image.php

MasterGoon
Dec 24th, 2000, 08:41 PM
im still not sure how to do this, could i see some sample code? also, how do i load the additional graphics lib in windows?

Dec 24th, 2000, 08:55 PM
I have no clue, thats the only thing I could find on it. :(

MasterGoon
Dec 24th, 2000, 10:41 PM
yeah, i had already seen that :(