mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 07:42:24 -06: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
|
|
@ -154,7 +154,7 @@ func (p *ProcessingEmoji) store(ctx context.Context) error {
|
|||
|
||||
// Pass input file through ffprobe to
|
||||
// parse further metadata information.
|
||||
result, err := ffprobe(ctx, temppath)
|
||||
result, err := probe(ctx, temppath)
|
||||
if err != nil && !isUnsupportedTypeErr(err) {
|
||||
return gtserror.Newf("ffprobe error: %w", err)
|
||||
} else if result == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue