Skip to content

Commit

Permalink
Update verifycode.go
Browse files Browse the repository at this point in the history
  • Loading branch information
456vv committed May 3, 2019
1 parent bccae10 commit 758228f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions verifycode.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,6 @@ func (T *VerifyCode) GIF(text string, w io.Writer, opt *gif.Options) error {
if err != nil {
return err
}
if opt == nil {
opt = &gif.Options{NumColors: 256}
}
return gif.Encode(w, imageImage, opt)
}

Expand All @@ -397,9 +394,6 @@ func (T *VerifyCode) JPEG(text string, w io.Writer, opt *jpeg.Options) error {
if err != nil {
return err
}
if opt == nil {
opt = &jpeg.Options{Quality: 100}
}
return jpeg.Encode(w, imageImage, opt)
}

Expand Down

0 comments on commit 758228f

Please sign in to comment.