Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressImage ¶
CompressImage With the minimum width minWidth as the primary constraint, the file size may exceed maxKB. Secondly, within n iterations, perform a binary search for files sized between minKB and maxKB. If not found, return an error; If found, return the file content; if found but the current image width is less than minWidth, use minWidth as the standard.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.