Skip to content

How do I handle images and thumbnails jedd

Derek Jones edited this page Jul 5, 2012 · 3 revisions

Category:Approaches::How do I handle images and thumbnails

Overview:

I process all images as they are introduced to the system - that is, generating thumbnails, medium-sized, and perhaps retaining the original (full-size) image.

I store files within the file system. I allow for performance optimisation by using sub-directories. Files are renamed to UUID to ensure compliance with every file system out there, consistent-length names, guaranteed(*) uniqueness, removal of potential FS or OS name exploits, reduces potential for users to guess an image's URL.

[quote] Notes to self: improving performance (substr(filename,0,2)) / filename exif data retention (ideally relocated / replicated to thumb) thumb, original, main - directories higher, to allow some splitting (show reference code) describe & discuss each of the points in overview, especially performance & security issues [/quote]

Approach (brief):

Approach (in detail):

Discussion points

Clone this wiki locally