I am storing my images in a mysql database using PHP 5.
My script is working beautifully, BUT now I want to store the thumbnails in a database as well. I was doing thumbnails on the fly on the display page, but it seems to be slow as molasses.
SO.....
I was thinking HOW would I do that?
I have a thumbnail function that I got off of this site, but it is for writing thumbnails to a file. I was thinking I could modify it, but I am not sure how to do it efficiently.
This is what my site does so far....
- User uploads a file.
- Script then puts that file into a MySQL (5.0) database.
- I have a page that displays the image using the header function.
Has anyone done this before, or have any ideas hows to write the resized file to the database in an efficient manner?
Thanks, Tony