-
Notifications
You must be signed in to change notification settings - Fork 7.6k
How do I handle images and thumbnails
[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:
- within the database (the 'blob'), or
- within the file system.
And there are two ways your app can respond to different image size requests:
- prepare all images up front and store them in the file system, or
- 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]