Part of the EllisLab Network
x
 
Create New Page
 View Previous Changes    ( Last updated by jedd )

How do I handle images and thumbnails - jedd

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.

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


Approach (brief):


Approach (in detail):

 

Discussion points