Skip to content

How do I handle images and thumbnails

World Wide Web Server edited this page Jul 4, 2012 · 11 revisions

Category:Approaches

[h2]The Goal[/h2]

You need to deal with images - perhaps uploaded by users, or pulled in from another system. You are likely going to have to cater for multiple versions - thumbs, large, perhaps even raw or 'original' size. You are almost definitely working with a database.

[h2]Discussion[/h2]

There are two places you can store your images:

  1. within the database (the 'blob'), or
  2. within the file system.

And there are two ways your app can respond to different image size requests:

  1. prepare all images up front and store them in the file system, or
  2. create them on the fly (on demand).

[h2]The approaches[/h2]

[b]o[/b] How do I handle images and thumbnails - jedd - (summary - store images in file system, using UUID's), [b]o[/b] {Your CI login-name goes here}'s take? - summary of your approach goes here - [color=grey]COPY-THIS-LINE-WHEN-ADDING-YOURS[/color]

[i][color=purple][b]Note to would-be contributors[/b] - it'd be just fantastic if you'd spend the time sharing your approaches with the world, but please resist the temptation to provide a link to another site. First, sites come and go, and dead links are a real pain in the proverbial. Second, off-site material doesn't get discovered by searches within the wiki. Third, the world has enough web pages that are 'lists of links' - we don't need to add to the collection. And finally - the whole idea of this collection of Approaches is so that users can see what [b]you[/b] do - so can you please put your name on anything you contribute, so people can PM you if they want to clarify something?[/color][/i]

[b][i][color=grey]Need to automatically insert category/subcategory listing here somehow, later - for the moment I'll handcode in the first couple of links[/color][/i][/b]

Clone this wiki locally