Canvasmethod to create a canvas with a specified width, height and color.
Canvasmethod to obtain an image instance, now you can call the method to edit the image.
*imgo.Image, so they can be called in a chain.
Savemethod receives a string parameter as file path, which can be either an absolute path or a relative path. The file path parameter needs to have an image format suffix, such as
out.png。ImGo will output the image in the corresponding format according to the image format suffix, and no other operation is required.
golang.org/x/image/webppackage only provides the
Decodemethod, not the
http://localhost/gopherin browser, you will see