Support pre-processing uploaded media #3

Closed
opened 2022-09-18 15:06:33 +00:00 by asonix · 1 comment
Owner

In order to be space efficient, sam365724 on GitHub suggested being able to set a maximum size on image uploads, and have larger images scaled down to fit.

There's a couple ways I can see this working:

  • new resizable_max_width and resizable_max_height configuration options, scaling down any media smaller than max_width x max_height but larger than resizable_max_width x resizable_max_height
  • A new upload_process config that takes arguments in the same format as a process.{ext} fetch, e.g. size=1080&blur=0.4&crop=512x512 that will apply these transformations to all uploaded media
In order to be space efficient, [sam365724 on GitHub](https://github.com/sam365724) suggested being able to set a maximum size on image uploads, and have larger images scaled down to fit. There's a couple ways I can see this working: - new `resizable_max_width` and `resizable_max_height` configuration options, scaling down any media smaller than `max_width x max_height` but larger than `resizable_max_width x resizable_max_height` - A new `upload_process` config that takes arguments in the same format as a process.{ext} fetch, e.g. `size=1080&blur=0.4&crop=512x512` that will apply these transformations to all uploaded media
asonix added this to the 0.4.0 milestone 2022-09-18 15:06:37 +00:00
Author
Owner

closed in 50d118a2a7

closed in https://git.asonix.dog/asonix/pict-rs/commit/50d118a2a724d02daf471b4e3d29731fddaa1ead
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: asonix/pict-rs#3
No description provided.