mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-24 15:52:38 +02:00
webp as supported image
This commit is contained in:
parent
c1b67a250e
commit
d9c817f27e
@ -16,6 +16,8 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
_ "golang.org/x/image/webp"
|
||||
|
||||
"github.com/disintegration/gift"
|
||||
"github.com/nwaples/rardecode"
|
||||
pdfimage "github.com/raff/pdfreader/image"
|
||||
@ -245,7 +247,7 @@ func LoadImages(path string, options *ImageOptions, dry bool) ([]*Image, error)
|
||||
|
||||
func isSupportedImage(path string) bool {
|
||||
switch strings.ToLower(filepath.Ext(path)) {
|
||||
case ".jpg", ".jpeg", ".png":
|
||||
case ".jpg", ".jpeg", ".png", ".webp":
|
||||
{
|
||||
return true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user