wrathican Posted April 24, 2009 Share Posted April 24, 2009 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 More sharing options...
rhodesa Posted April 24, 2009 Share Posted April 24, 2009 while you can definitely create thumbnails on the fly, it's a BIG resource waste. why recreate the same thumbnail over and over when you can just create it once? Link to comment https://forums.phpfreaks.com/topic/155497-thumbnails-on-the-fly/#findComment-818227 Share on other sites More sharing options...
DarkSuperHero Posted April 24, 2009 Share Posted April 24, 2009 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... Link to comment https://forums.phpfreaks.com/topic/155497-thumbnails-on-the-fly/#findComment-818334 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.