mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-14 18:05:55 -07:00
Adding GIF, PDF and SVG support (libvips 8.3)
This commit is contained in:
parent
308a36afc6
commit
6b76a33673
15 changed files with 843 additions and 11 deletions
9
type.go
9
type.go
|
|
@ -14,6 +14,12 @@ const (
|
|||
PNG
|
||||
// TIFF represents the TIFF image type.
|
||||
TIFF
|
||||
// GIF represents the GIF image type.
|
||||
GIF
|
||||
// PDF represents the PDF type.
|
||||
PDF
|
||||
// SVG represents the SVG image type.
|
||||
SVG
|
||||
// MAGICK represents the libmagick compatible genetic image type.
|
||||
MAGICK
|
||||
)
|
||||
|
|
@ -24,6 +30,9 @@ var ImageTypes = map[ImageType]string{
|
|||
PNG: "png",
|
||||
WEBP: "webp",
|
||||
TIFF: "tiff",
|
||||
GIF: "gif",
|
||||
PDF: "pdf",
|
||||
SVG: "svg",
|
||||
MAGICK: "magick",
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue