Jump to content

Making Thumbnails


Adamwts

Recommended Posts

Hey, I've made a simple image hosting script in PHP. What I would like it to do, say like someone uploads a 1024x768 image to the site, when uploading that image, it will automatically resize it to something like 200x200px if it is over 200x200px.

 

For example, I have 2 images that i want to upload, one 150x150px which will stay the same size as the thumbnail, and one that is 700x473px which will be resized down to 200x200px because it is over the limit. (limit is 200x200px).

 

I would be greatful If someone could code this script for me please.

 

p.s. there are 4 different extensions that can be uploaded: GIF, JPG, JPEG and BMP, and will need to work for all thoes file extensions.

 

Thanks, Adam!

Link to comment
https://forums.phpfreaks.com/topic/45178-making-thumbnails/
Share on other sites

i can't really seem to get it so it uploads the image file as it is and also get it to upload a smaller version of that image file (example: origional image file='1024x768px' origional image file thumb='200x200px'. I really do need help, as I have been trying for like 6 hours to get it to work now.

Link to comment
https://forums.phpfreaks.com/topic/45178-making-thumbnails/#findComment-219331
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.