Commit graph

70 commits

Author SHA1 Message Date
pancakes
bc7745c9fc
[backend/api] Clone files that exist in different folders owned by the same user instead of creating copies 2025-02-05 18:03:26 +01:00
pancakes
078f344a26
[backend/services] Only check for duplicate files in the same folder if specified 2025-02-05 18:03:24 +01:00
pancakes
98686e334e
[backend/api] Allow optionally storing a drive file in a specified folder 2025-02-05 18:03:23 +01:00
pancakes
59e1cdde81
[backend/api] Add endpoint for creating drive folders 2025-02-05 18:03:22 +01:00
Laura Hausmann
ffbcccb79c
[backend/drive] Ignore deletion failures during fixup-media 2025-01-27 16:09:00 +01:00
Laura Hausmann
113bd98b0e
[backend/drive] Proxy remote media by default 2025-01-09 12:36:34 +01:00
Laura Hausmann
49e9c6d825
[backend] Reformat DriveService.cs 2024-12-16 21:30:35 +01:00
Laura Hausmann
48e688e514
[backend/drive] Normalize empty / whitespace alt text to null 2024-12-16 21:30:26 +01:00
Laura Hausmann
00d3248b8a
[backend] Fix build 2024-11-20 01:22:09 +01:00
Laura Hausmann
51e4846635
[backend/core] Revert Task.ContinueWithResult naming 2024-11-20 01:14:50 +01:00
Laura Hausmann
24b412bd75
[sln] Reformat code 2024-11-20 00:48:29 +01:00
Laura Hausmann
7dec2514da
[sln] Apply code style 2024-11-20 00:48:29 +01:00
Laura Hausmann
4356a47b9d
[backend/asp] Make services runtime-discoverable 2024-11-18 19:02:44 +01:00
Laura Hausmann
3e8ba289c3
[backend/drive] Fix incorrect mime type & file extension when converting original files (ISH-593)
Closes #64

Co-authored-by: Tamara Schmitz <tamara.zoe.schmitz@posteo.de>
2024-11-07 20:04:34 +01:00
Laura Hausmann
f2853d2d40
[backend] Fix typo 2024-11-02 22:56:52 +01:00
Laura Hausmann
75042fc5d5
[backend/drive] Fix drive file cleanup job for locally stored files 2024-10-21 22:10:08 +02:00
Laura Hausmann
ead9d90029
[backend/drive] Fix drive file expiry leaving orphaned file versions in the storage backend 2024-10-19 01:25:39 +02:00
Laura Hausmann
055957f509
[backend/drive] Improve media fixup algorithm performance (ISH-520) 2024-10-18 23:37:19 +02:00
Laura Hausmann
9275e3b21a
[backend/drive] Add fixup-media startup command (ISH-520) 2024-10-18 22:43:25 +02:00
Laura Hausmann
0b31329067
[backend/drive] Fix leading dashes on non-image attachments 2024-09-23 01:35:58 +02:00
Laura Hausmann
1d31553199
[backend/drive] Add option to reject images that exceed the maximum media processing resolution 2024-08-12 03:21:03 +02:00
Laura Hausmann
f903a1d8a4
[backend/drive] Fix missing image processing resolution check 2024-08-12 03:21:03 +02:00
Laura Hausmann
7b3e9bbbca
[backend/drive] Fix duplicated dots in file extensions in some circumstances 2024-08-12 03:21:03 +02:00
Laura Hausmann
1fba1ab119
[backend/drive] Add ImageProcessorConcurrency configuration option, default it to 8 (was: unrestricted) 2024-08-12 03:21:03 +02:00
Laura Hausmann
aaf3be209d
[backend/drive] Add advanced image processing pipeline configuration options (ISH-436, ISH-446)
This commit allows advanced configuration of the image processing pipeline. Exposed options include the format (WebP, AVIF & JXL), as well as encoding parameters. These can be set individually for any combination of image version (original/thumbnail/public) & image origin (local/remote).
2024-08-12 03:21:03 +02:00
Laura Hausmann
c07bb35548
[backend/drive] Refactor ImageProcessor into a modular system
This commit lays the groundwork for a user-configurable image processing pipeline. It has exactly the same behavior as the old ImageProcessor, just modular & compartmentalized. It also adds support for AVIF & JXL encoding, though no code paths call it just yet.
2024-08-12 03:21:03 +02:00
Laura Hausmann
fcc04d5fd2
[backend/drive] Improve logging for exceptions during DriveService.StoreFile 2024-08-06 14:21:32 +02:00
Laura Hausmann
a8a53542ce
[backend] Code cleanup 2024-07-29 00:51:36 +02:00
Laura Hausmann
7e4282b386
[backend/drive] Switch to stream processing for remote media
This makes sure that files larger than the configured maximum remote media cache size are not loaded into memory (if the size is known), or are only loaded into memory until the configured maximum size before getting discarded (if the size is not known)
2024-07-28 23:32:04 +02:00
Laura Hausmann
15d955c478
[backend/core] Limit HttpClient buffer size to 1MiB, except DriveService from this policy (until proper limits are in place there) 2024-07-28 22:06:33 +02:00
Laura Hausmann
828b742a3f
[backend/drive] Don't attempt to clone remote files, improve deduplication handling 2024-07-27 16:04:02 +02:00
Laura Hausmann
12cbc40f99
[backend/drive] Add flag that skips image processing; skip image processing for emojis by default 2024-07-17 17:49:43 +02:00
Laura Hausmann
0668c6b360
[backend/drive] Improve media filename handling
This commit adds support for remote Content-Disposition headers giving information on attachment filenames, as well as providing this information when serving locally stored files. It also passes on any filename metadata to the object storage provider, if configured as the storage backend.
2024-07-09 23:44:34 +02:00
Kopper
ab3f3783e8 [backend/api] Create endpoint to clone remote emoji 2024-07-02 23:00:01 +02:00
Laura Hausmann
24bde5ad29
[backend] Use User.IsLocalUser / .IsRemoteUser instead of null-checks where applicable (ISH-370) 2024-06-17 17:25:29 +02:00
Laura Hausmann
aa8e3f32c5
[backend/drive] Fix thumbnail url for deduplicated files 2024-05-23 15:15:43 +02:00
Laura Hausmann
9d0ee19922
[backend/drive] Don't store attachments if the download isn't successful 2024-05-23 00:23:54 +02:00
Laura Hausmann
2108f91bcf
[backend/drive] Store attachments as links if they can't be fetched for caching / further processing 2024-05-16 18:43:24 +02:00
Laura Hausmann
b76f154f50
[backend/drive] Don't hash files larger than the configured max cache size 2024-05-16 18:25:33 +02:00
Laura Hausmann
d7d7b7d2e3
[backend/drive] Improve error handling during DriveService.StoreFile 2024-05-14 20:09:14 +02:00
Laura Hausmann
16fdc48800
[backend/drive] Set content-type when uploading media to object storage 2024-05-07 02:57:19 +02:00
Laura Hausmann
744a01d138
[backend/drive] Add several media processing configuration options, replacing constants & assumptions 2024-05-02 19:13:58 +02:00
Laura Hausmann
9a662f2bea
[backend/drive] Fix DriveService.StoreFile edge cases and make the code flow more clear/readable 2024-05-02 19:13:20 +02:00
Laura Hausmann
a2077244f8
[backend/drive] Make image processor pluggable 2024-05-01 21:44:49 +02:00
Laura Hausmann
eab5e02b70
[backend/drive] Better error handling & logging 2024-05-01 01:44:52 +02:00
Laura Hausmann
7976854190
[backend/drive] Correctly set thumbnail & webpublicUrl when using the local storage provider 2024-05-01 01:21:08 +02:00
Laura Hausmann
facc7eb337
[backend/drive] Use libvips instead of imagesharp for most of the image processing pipeline 2024-05-01 01:21:08 +02:00
Laura Hausmann
d56eda8464
[backend/drive] Fix ImageSharp memory leak, improve image processing memory footprint, don't generate thumbnails for animated images 2024-04-30 20:40:46 +02:00
Laura Hausmann
dd062c6752
[backend/drive] Fix logExisting oversight causing uris not to be logged in all cases 2024-04-30 17:03:04 +02:00
Laura Hausmann
363b0c930c
[backend/core] Add Guid.ToStringLower() extension method 2024-04-25 18:26:42 +02:00