resize or cache?

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
mothore
Forum Newbie
Posts: 2
Joined: Sun Dec 21, 2008 5:43 pm

resize or cache?

Post by mothore »

Would it be better to resize and store a thumbnail of individual images as being uploaded (size)? Or resize live direct to browser (speed)?

This is for an application based on 100-1000 users with unlimited capacity for photo uploading.

Search request didn't find any discussions based on my query.
carolin
Forum Newbie
Posts: 7
Joined: Thu Jan 21, 2010 3:32 am

Re: resize or cache?

Post by carolin »

u cann use cache.. its the best way.. it has high speed..
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: resize or cache?

Post by pickle »

Resize on upload. It would be a tremendous draw on the server if you have 1000 users looking at 24 photos at a time - that's 24,000 PHP scripts that have to be run to resize on the fly.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply