-
Notifications
You must be signed in to change notification settings - Fork 7.6k
How do I handle images and thumbnails jedd
Category:Approaches::How do I handle images and thumbnails
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]