Jump to content

Resizing with GD


jasper182

Recommended Posts

Currently I have a form where people can upload images that are viewable from another page acting as a central image library.  The images are all stored in a MySQL database.  However, some of the images that are uploaded are very large, much larger then will ever be needed for my site.  I was told by a friend to look into using the GD library to resize the images after they are uploaded but before they are stored to the database.  Ideally it would be something like "The image is never more then 600 pixels wide and 800 pixels tall" or something like that. However, after doing some research, I'm still fairly confused.  Does anyone have a good example of how this should be done or at least the main function(s) I will most likely be using?  Thanks.

Link to comment
Share on other sites

Thanks for the link, it looks like it will help a lot.  One question though.  Why would I not want to store images in a database?  It seems to be fairly simple and its worked so far with no problems.  Is there a potential problem with this that I'm unaware of?  Thanks again for the help.

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.