Commit graph

17 commits

Author SHA1 Message Date
9797e2e3fc Go back to actix-fs 2021-01-18 19:54:39 -06:00
8c1f60101b Add module for Range Header operations
Switch from actix-fs to async-fs
2021-01-18 17:11:32 -06:00
0acdfffe08 Return details in upload method, clippy nits 2020-12-25 20:39:19 -06:00
a750364e27 Expose cropping 2020-12-16 18:20:06 -06:00
0bf7e0f688 Add initial details implementation
Details is an object generated for each image, containing
it's created_at date to properly set response headers. It
also can be expanding in the future to include an image's
dimensions, which we can expose via an API endpoint.

In addition to this, Details allows us the ability to
re-generate processed images. For now, all images which
do not yet have an associated Details will be
re-generated upon access. Details is set for each
thumbnail on generation, so this will only happen once
for each image.
2020-12-09 23:05:07 -06:00
4bd99431e2 Generate image bytes based on request format 2020-11-01 14:25:21 -06:00
4ce7b79b86 Safely create parent tmp dir when needed 2020-10-16 17:48:42 -05:00
a746793187 Enable mp4 with ffmpeg 2020-06-24 11:58:46 -05:00
eb685f99e7 Use sample for thumbnail generation 2020-06-16 21:05:06 -05:00
6dab3b30e8 Purge image 2020-06-16 18:13:22 -05:00
84c10edd0e Improve bounds check, don't save variant unless it's been changed 2020-06-14 23:10:30 -05:00
3b4c5b646a Do better logging 2020-06-14 10:07:31 -05:00
68721fb269 Replace log with tracing, only hardcode 'info' if RUST_LOG is empty 2020-06-13 21:28:06 -05:00
4f55251310 Add filter whitelist 2020-06-07 14:12:19 -05:00
35aca6a426 Unneeded mut 2020-06-07 13:03:36 -05:00
ab8a24f25e Identity doesn't alter path 2020-06-07 13:02:49 -05:00
fe0082a23b Add a concept of 'processors' to allow multiple image transformations 2020-06-07 12:51:45 -05:00