Skip to content

Commit

Permalink
using ErrInvalidImageSrc
Browse files Browse the repository at this point in the history
  • Loading branch information
logica0419 committed Dec 8, 2023
1 parent 841930d commit 8ab4114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/imaging/processor_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (p *defaultProcessor) Fit(src io.ReadSeeker, width, height int) (image.Imag
func (p *defaultProcessor) FitAnimationGIF(srcFile io.Reader, width, height int) (*bytes.Reader, error) {
src, err := gif.DecodeAll(srcFile)
if err != nil {
return nil, err
return nil, ErrInvalidImageSrc
}

srcWidth, srcHeight := src.Config.Width, src.Config.Height
Expand Down

0 comments on commit 8ab4114

Please sign in to comment.