about 1 year
Basically the app requests an image with thumbnail parameters (width, height, crop) from Directus – if the thumbnail exists it's returned, otherwise it's generated and returned.
Directus could also manage which sizes/params are allowed to avoid DDOS attacks where users generate millions of thumbs with malicious scripts. Directus would store the allowed thumbnail params and only allow those to be created.
Width – INT
Height – INT
Crop – BOOL: If OFF, the thumb will fit within the bounds, if ON the thumb will crop to the center of those dimensions. The image will NEVER stretch.
Join the discussion!