gotosocial/internal/media/test
tobi a4b54aa935 [feature] Add avif file support (#4331)
# Description

> If this is a code change, please include a summary of what you've coded, and link to the issue(s) it closes/implements.
>
> If this is a documentation change, please briefly describe what you've changed and why.

This pull request implements support for reading avif images properly.

closes https://codeberg.org/superseriousbusiness/gotosocial/issues/4330

## Checklist

Please put an x inside each checkbox to indicate that you've read and followed it: `[ ]` -> `[x]`

If this is a documentation change, only the first checkbox must be filled (you can delete the others if you want).

- [x] I/we have read the [GoToSocial contribution guidelines](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md).
- [x] I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat.
- [x] I/we have not leveraged AI to create the proposed changes.
- [x] I/we have performed a self-review of added code.
- [x] I/we have written code that is legible and maintainable by others.
- [x] I/we have commented the added code, particularly in hard-to-understand areas.
- [x] I/we have made any necessary changes to documentation.
- [x] I/we have added tests that cover new code.
- [x] I/we have run tests and they pass locally with the changes.
- [x] I/we have run `go fmt ./...` and `golangci-lint run`.

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4331
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
2025-07-17 13:20:01 +02:00
..
big-panda.gif [bugfix] Wrap media reader in length reader to determine length if no content-length given (#848) 2022-09-24 11:11:47 +02:00
birdnest-original.mp4 [bugfix] Parse video metadata more accurately; allow Range in fileserver (#1342) 2023-01-16 16:19:17 +01:00
birdnest-processed.mp4 [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
birdnest-thumbnail.webp [chore] Thumbnail only first frame of animated media (#3448) 2024-10-18 15:44:08 +02:00
clock-original.gif [chore] Thumbnail only first frame of animated media (#3448) 2024-10-18 15:44:08 +02:00
clock-processed.gif [chore] Thumbnail only first frame of animated media (#3448) 2024-10-18 15:44:08 +02:00
clock-thumbnail.webp [chore] Thumbnail only first frame of animated media (#3448) 2024-10-18 15:44:08 +02:00
Frantz-Fanon-The-Wretched-of-the-Earth-1965.pdf [feature] Media attachment placeholders (#2331) 2023-11-10 19:29:26 +01:00
gotosocial-processed.avif [feature] Add avif file support (#4331) 2025-07-17 13:20:01 +02:00
gotosocial-thumbnail.webp [feature] Add avif file support (#4331) 2025-07-17 13:20:01 +02:00
gotosocial.avif [feature] Add avif file support (#4331) 2025-07-17 13:20:01 +02:00
gts_pixellated-original.png [feature] Refetch emojis when they change on remote instances (#905) 2022-10-13 15:16:24 +02:00
gts_pixellated-static.png [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
longer-mp4-original.mp4 [feature] For video attachments, store + return fps, bitrate, duration (#1282) 2022-12-22 11:48:28 +01:00
longer-mp4-processed.mp4 [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
longer-mp4-thumbnail.webp [chore] Thumbnail only first frame of animated media (#3448) 2024-10-18 15:44:08 +02:00
nb-flag-original.webp [feature] Allow webp emoji uploads / derefs (#2484) 2024-01-05 13:39:53 +01:00
nb-flag-static.png [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
not-an-processed.mp4 [feature] use webp for thumbnails (#3116) 2024-07-19 17:28:43 +02:00
not-an-thumbnail.webp [feature] use webp for thumbnails (#3116) 2024-07-19 17:28:43 +02:00
not-an.mp4 [feature] For video attachments, store + return fps, bitrate, duration (#1282) 2022-12-22 11:48:28 +01:00
rainbow-original.png Api/v1/statuses (#11) 2021-04-19 19:42:19 +02:00
rainbow-static.png [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
test-jpeg-1x1px-white-thumbnail.webp [feature] use webp for thumbnails (#3116) 2024-07-19 17:28:43 +02:00
test-jpeg-1x1px-white.jpg [bugfix] allow store smaller PNG image than 261 bytes (#2263) (#2298) 2023-10-25 14:58:45 +02:00
test-jpeg-processed.jpg update media processing (#244) 2021-09-23 11:13:11 +02:00
test-jpeg-thumbnail.jpeg [performance] move thumbnail generation to go code where possible (#3183) 2024-08-08 17:12:13 +00:00
test-jpeg.jpg Api/v1/accounts (#8) 2021-04-01 20:46:45 +02:00
test-mp4-original.mp4 [feature] Enable basic video support (mp4 only) (#1274) 2022-12-17 04:38:56 +00:00
test-mp4-processed.mp4 [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
test-mp4-thumbnail.webp [chore] Thumbnail only first frame of animated media (#3448) 2024-10-18 15:44:08 +02:00
test-opus-original.opus [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
test-opus-processed.opus [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
test-png-alphachannel-1x1px.png [bugfix] allow store smaller PNG image than 261 bytes (#2263) (#2298) 2023-10-25 14:58:45 +02:00
test-png-alphachannel-processed.png [chore] add back exif-terminator and use only for jpeg,png,webp (#3161) 2024-08-02 12:46:41 +01:00
test-png-alphachannel-thumbnail.jpeg [performance] move thumbnail generation to go code where possible (#3183) 2024-08-08 17:12:13 +00:00
test-png-alphachannel.png [chore] Add two new test images for media processing (#424) 2022-04-24 14:49:37 +02:00
test-png-noalphachannel-processed.png [bugfix] Allow processing of .png files where checksum is not correct (#487) 2022-04-25 14:45:44 +02:00
test-png-noalphachannel-thumbnail.jpeg [performance] move thumbnail generation to go code where possible (#3183) 2024-08-08 17:12:13 +00:00
test-png-noalphachannel.png [chore] Add two new test images for media processing (#424) 2022-04-24 14:49:37 +02:00