mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 13:42:24 -05:00
[performance] use native Go code to probe JPEGs (#3206)
* use native Go code to probe JPEGs * add note about copying from github.com/disintegration/imaging * add more code comments
This commit is contained in:
parent
e1154453bb
commit
889d4756ea
4 changed files with 286 additions and 3 deletions
|
|
@ -73,7 +73,7 @@ func clearMetadata(ctx context.Context, filepath string) error {
|
|||
}
|
||||
|
||||
// terminateExif cleans exif data from file at input path, into file
|
||||
// at output path, exusing given file extension to determine cleaning.
|
||||
// at output path, using given file extension to determine cleaning type.
|
||||
func terminateExif(outpath, inpath string, ext string) error {
|
||||
// Open input file at given path.
|
||||
inFile, err := os.Open(inpath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue