Different images or one images and resize on the fly

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
50cc
Forum Newbie
Posts: 2
Joined: Mon Feb 05, 2007 2:39 pm

Different images or one images and resize on the fly

Post by 50cc »

I'm building a site where users can upload images, other users can view these images in different size (preview, normal and full screen (more size in future version of the site...)). What would be better, storing one full-size version of the image and resize on the fly, or have multiple version of the same image in different sizes?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Store the different versions, but be able to recreate them if the stored version is missing. This way you can also have a script clean the cache of files every so often to remove old, unused files.
Post Reply