Android-based picture compression method and device and storage medium
Embodiments of the invention disclose an Android-based picture compression method and device, and a storage medium. The method comprises the steps of obtaining a to-be-processed folder; traversing theto-be-processed folder to take out each to-be-compressed picture in sequence; if the size of the to-...
Saved in:
Main Authors | , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
30.06.2020
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | Embodiments of the invention disclose an Android-based picture compression method and device, and a storage medium. The method comprises the steps of obtaining a to-be-processed folder; traversing theto-be-processed folder to take out each to-be-compressed picture in sequence; if the size of the to-be-compressed picture is smaller than or equal to a preset threshold value, storing the to-be-compressed picture into a preset target folder; and if the size of the to-be-compressed picture is greater than the preset threshold, compressing the to-be-compressed picture by adopting a Huffman compression algorithm until the size of the to-be-compressed picture is less than or equal to the preset threshold, and storing the compressed to-be-compressed picture into the target folder. By implementingthe embodiment of the invention, the method can be used on all Android software, a user can define a compression value required by the user, the compressed picture effect can be ensured by adopting aHuffman compression algorit |
---|---|
Bibliography: | Application Number: CN202010117301 |