directus/directus

Integrated Thumbnail Generator/Management

benhaynes asked for this feature 9 months ago — 1 comment

benhaynes commented 9 months ago Admin

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.

Params: 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!

Sign-in with GitHub to comment