2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-10 06:25:00 +00:00
Commit graph

37 commits

Author SHA1 Message Date
3487cb0e30 Add ability to set 404 image
Fix imagemagick blur arguments
2023-07-05 19:07:03 -05:00
0aa3f574a5 Clippy 2023-01-29 11:57:59 -06:00
718f09c43a Clean tracing, simplify validation, rename InputFormat -> VideoFormat 2022-10-01 21:17:18 -05:00
85f20bbe0e Add new resize options, update README with current APIs 2022-09-26 18:14:25 -05:00
eb5e39c634 Use color-eyre 2022-03-28 20:47:46 -05:00
1662f153ce Numerous changes:
- Improve error printing (display chain in addition to spantrace)
- Fix migration (read main identifier from identifier tree, not filename tree)
- Ensure uniqueness for processed images in ConcurrentProcessor (use source identifier in addition to thumbnail path, include extension in thumbnail path)
- Update default log levels (make pict-rs quieter)
- Add timeout for serving images from object storage (5 seconds)
2022-03-28 15:34:36 -05:00
15b52ba6ec Get it compiling again 2022-03-26 16:49:23 -05:00
f9f4fc63d6 Optionally support s3-compatible storage (untested) 2021-10-27 23:06:03 -05:00
48557bc2ea Make pict-rs generic over file storage 2021-10-22 23:48:56 -05:00
f67aeb92fa Keep better track of gif/mp4 thumbnail 2021-10-20 21:36:18 -05:00
1767942e31 Remove recursion 2021-10-20 20:36:10 -05:00
d69d261999 Make it actually compilable 2021-10-20 20:30:21 -05:00
4aefc0403a Remove more boxes 2021-10-20 20:13:39 -05:00
34038a0f16 Fix restructure, upload 2021-10-18 23:37:11 -05:00
5d3e6f50b3 Instrument better with Tracing 2021-09-13 20:22:42 -05:00
79bd562d8e Clippy lints 2021-09-12 10:42:44 -05:00
e21fd29c09 Drop unneeded dependencies 2021-09-04 14:20:31 -05:00
7c371c182a Version v0.3.0-alpha.14 2021-08-28 23:15:29 -05:00
edd6bb4a60 Replace all bindings with calls to external binaries 2021-08-28 17:15:14 -05:00
79b26a1dda Update to actix-web 4.0.0-beta.3 2021-02-10 16:57:42 -06:00
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