Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerPort = "7000"
ServerPort is the default port
Functions ¶
This section is empty.
Types ¶
type JPEGFile ¶
JPEGFile ...
type MetaImage ¶
MetaImage represents a single image with the name of the format and the original byte buffer that was used to create it.
func (*MetaImage) ConvertToFile ¶
func (meta *MetaImage) ConvertToFile(format string, width int, height int, quality int, fileName string) error
ConvertToFile sends a request to the server and saves the resulting image in the given format. Format can be one of the following: png, jpeg, gif, webp
type OriginalFile ¶
OriginalFile ...
func (*OriginalFile) Delete ¶
func (output *OriginalFile) Delete(baseName string) error
Delete deletes the file from the file system.
type Output ¶
Output represents a system that saves an image locally (in database or as a file, e.g.)
Click to show internal directories.
Click to hide internal directories.