mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-28 11:33:33 -06:00
[bugfix] Allow processing of .png files where checksum is not correct (#487)
* add png stripping code from google/wuffs * experiment with stripping data from pngs * add test images * use StrippedPngDecode for pngs * add StrippedPngDecode func * update tests for (no)alphachannel pngs * nolint on copied function
This commit is contained in:
parent
d5fe729cf4
commit
eeb78bd141
8 changed files with 352 additions and 3 deletions
BIN
internal/media/test/test-png-alphachannel-processed.png
Normal file
BIN
internal/media/test/test-png-alphachannel-processed.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
BIN
internal/media/test/test-png-alphachannel-thumbnail.jpg
Normal file
BIN
internal/media/test/test-png-alphachannel-thumbnail.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
BIN
internal/media/test/test-png-noalphachannel-processed.png
Normal file
BIN
internal/media/test/test-png-noalphachannel-processed.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
BIN
internal/media/test/test-png-noalphachannel-thumbnail.jpg
Normal file
BIN
internal/media/test/test-png-noalphachannel-thumbnail.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
Loading…
Add table
Add a link
Reference in a new issue