Jump to content

Thumbnails on the fly?


wrathican

Recommended Posts

Hey people.

Im facing a bit of a dilema. Im making an image gallery and i currently create thumbnails when an image is uploaded to the server. i am hitting some tiny PITA's at the moment though, as when a user decides to delete and image, i have to check that each thumbnail and main image i want to delete exists, then delete them from the server and then from the database when i know they have been deleted.

 

creating a thumbnail on the fly seems to be the easiest solution. as i would have just one entry in the database and one file stored locally. I have seen a set of files called phpThumb, which seem like they would suit my needs. but i'm a bit unsure on the best way to approach this.

 

your advice would be most welcomed.

 

Thanks

 

Wrath

Link to comment
https://forums.phpfreaks.com/topic/155497-thumbnails-on-the-fly/
Share on other sites

ive attempted to run a website that had a gallery with thumbnails that were generated on the fly...to say the least my account got suspended on my shared host, and I needed to find another solution...so if your on shared hosting It would probably upset your host some if you were using such resources wastefully....also your website would load slower with on the fly thumbnails... especially if your displaying many many images...

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.