[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:
kim 2024-08-19 13:38:10 +00:00 committed by GitHub
commit 889d4756ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 286 additions and 3 deletions

View file

@ -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)