19
Sane Image Size - Auto Reduction
Source: directus/directus#22622 · opened by @NilsBaumgartner1994
Summary
Automatically scale down large images or files to a sane size.
Idea based on hook:
Basic Example
_No response_
Motivation
Sometimes users dont look what large files or images they upload. would be nice not only to transform the image, but to reduce the disk space in first place.
Detailed Design
Use sharp to reduce the image size to a specific width and height or megabyte size.
Requirements List
Must Have:
• Variable to enable auto resize
Should Have:
• Optinal parameters to set them up
• Enabled by default
Could Have:
• Linking to existing transformator
Won't Have:
• Drawbacks
• Alternatives
Keeping the hook solution, which might break in the future
Adoption Strategy
No breaking changes.
Unresolved Questions
_No response_
Automatically scale down large images or files to a sane size.
Idea based on hook:
Basic Example
_No response_
Motivation
Sometimes users dont look what large files or images they upload. would be nice not only to transform the image, but to reduce the disk space in first place.
Detailed Design
Use sharp to reduce the image size to a specific width and height or megabyte size.
Requirements List
Must Have:
• Variable to enable auto resize
Should Have:
• Optinal parameters to set them up
• Enabled by default
Could Have:
• Linking to existing transformator
Won't Have:
• Drawbacks
• Alternatives
Keeping the hook solution, which might break in the future
Adoption Strategy
No breaking changes.
Unresolved Questions
_No response_
No pledges yet. Be the first to back this.
Comments
Similar requests
Better handling of thumbnails
5 votes · 0 comments
Image Focal Point per relation and not per image
6 votes · 0 comments
Add low resolution base64 preview image in image object
37 votes · 0 comments
Insight - Line Diagram - Step Size
4 votes · 0 comments
Automatically wrap the `<img>` tag with `<figure>` and `<figcaption>` tags when using the "add/edit image" tool in the WYSIWYG editor.
1 vote · 0 comments
No comments yet.