Documentation ¶
Index ¶
- func Convert(data io.Reader, w int, h int, format string) (io.Reader, error)
- func ConvertFile(src string, dest string, w int, h int, format string) error
- func ConvertFileWithAspect(src string, dest string, maxRes int, format string) error
- func ConvertWithAspect(data io.Reader, maxRes int, format string) (io.Reader, error)
- func GetType(data io.Reader) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
Convert takes a reader (image) as input, returning a reader of the converted data in the format requested. If not successful, it will return the original image and an error.
func ConvertFile ¶
ConvertFile does the same thing as Convert, just directly to a file
func ConvertFileWithAspect ¶
Combination of ConvertFile and ConvertWithAspect
func ConvertWithAspect ¶
Does the same thing as Convert, but only uses one dimension as input, it keeps the aspect ratio, using the input value as the maximum width or height of the final image
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.