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
https://forums.phpfreaks.com/topic/61649-resizing-with-gd/
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
https://forums.phpfreaks.com/topic/61649-resizing-with-gd/#findComment-306930
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.