Commit Graph
5 Commits
Author SHA1 Message Date
kolaente d4e98a3b5b fix(images): stop accepting TIFF uploads 2026-11-03 18:46:00 +01:00
kolaente c8b816bdfa refactor(imageutils)!: answer every busy decode with code 4037
Address review decision: previews (4037) and other decodes (4040) had two
busy errors for one condition. ErrDecodeBusy now carries 4037 and the
preview-only error is gone.
2026-10-20 23:05:30 +02:00
kolaente 1edabda41c refactor(imageutils): drop ValidateReader
Every decode site validates through imageutils.Decode now.
2026-10-20 23:05:30 +02:00
kolaente f930d895c9 refactor(imageutils): move pixel-weighted decode semaphore
Attachment previews now decode through imageutils.Decode, which holds an
image's pixels against one process-wide budget until the caller is done
with the decoded image. Other decode sites move onto it next.
2026-10-20 23:05:30 +02:00
kolaente 40d95182fc fix(images): bound decode and resize dimensions
Decoding now validates image dimensions before allocating pixels
(imaging.Fit replaces unbounded Resize so neither side can blow up),
backgrounds decode once and reuse the image for the blur hash, and
DownloadImage is bounded at the configured max file size. Small sources
now keep their native size (Fit does not upscale); the frontend scales
via CSS.
2026-08-31 18:37:03 +02:00