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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.