mirror of https://github.com/cloudreve/Cloudreve
Update obs.go
parent
721172bedc
commit
875458d83d
|
@ -341,7 +341,6 @@ func (d *Driver) Thumb(ctx context.Context, expire *time.Time, ext string, e fs.
|
||||||
switch enco.Format {
|
switch enco.Format {
|
||||||
case "jpg", "webp":
|
case "jpg", "webp":
|
||||||
thumbParam += fmt.Sprintf("/format,%s/quality,q_%d", enco.Format, enco.Quality)
|
thumbParam += fmt.Sprintf("/format,%s/quality,q_%d", enco.Format, enco.Quality)
|
||||||
thumbParam += fmt.Sprintf("/format,%s/quality,q_%d", enco.Format, enco.Quality)
|
|
||||||
case "png":
|
case "png":
|
||||||
thumbParam += fmt.Sprintf("/format,%s", enco.Format)
|
thumbParam += fmt.Sprintf("/format,%s", enco.Format)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue