package
Version:
v0.0.0-...-88c3b2e
Opens a new window with list of versions in this module.
Published: Aug 24, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func BytesFromString(s string) (int64, error)
-
func HumanBytes(size int64) (result string)
-
type Image
-
func (i *Image) Crop(dst, format string, w, h, q int, optimize bool) error
-
func (i *Image) Resize(dst, format string, w, h, q int, optimize bool) error
Convert human readable string to bytes. 1k string -> 1024 int
Convert bytes to human readable string. Like a 2 MiB, 64.2 KiB, 52 B
Source Files
¶
Click to show internal directories.
Click to hide internal directories.