Supported Formats
Image & color supported formats
Last updated
Image & color supported formats
Last updated
The format of an image is judged by the first few bytes of the image, which are called .
Following image formats are supported in ImGo.
jpg
image/jpeg
png
image/png
bmp
image/x-ms-bmp
tiff
image/tiff
webp
image/webp
ImGo only supports color types that implement the color.Color
interface.
It is recommended to use the color of golang.org/x/image/colornames
package, which contains a large number of commonly defined colors.
You can also use the colors of the buildin package image/color
, which has only a few defined colors.
Colors can also be customized: