mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-06 20:59:31 -06:00
[feature] media: add webp support (#1155)
* media: add webp support Signed-off-by: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se> * bump exif-terminator to v0.5.0 Signed-off-by: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se> Signed-off-by: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
This commit is contained in:
parent
f9e5ec99bd
commit
1a3f26fb5c
26 changed files with 4348 additions and 19 deletions
2
vendor/github.com/superseriousbusiness/exif-terminator/jpeg.go
generated
vendored
2
vendor/github.com/superseriousbusiness/exif-terminator/jpeg.go
generated
vendored
|
|
@ -91,7 +91,7 @@ func (v *jpegVisitor) HandleSegment(segmentMarker byte, _ string, _ int, _ bool)
|
|||
if segmentMarker == jpegstructure.MARKER_EOI {
|
||||
// take account of the last 2 bytes taken up by the EOI
|
||||
eoiLength := 2
|
||||
|
||||
|
||||
// this is the total file size we will
|
||||
// have written including the EOI
|
||||
willHaveWritten := v.writtenTotalBytes + eoiLength
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue