Image compression method and device, electronic device and storage medium
The invention provides an image compression method and device, an electronic device and a storage medium, and the method comprises the steps: obtaining a to-be-compressed initial image and a target compression parameter of the initial image; compressing the initial image to an intermediate image wit...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides an image compression method and device, an electronic device and a storage medium, and the method comprises the steps: obtaining a to-be-compressed initial image and a target compression parameter of the initial image; compressing the initial image to an intermediate image with a target resolution by using a target compression mode; and if the difference between the actual quality of the intermediate image and the target quality is greater than a first preset threshold, performing quality reduction processing on the intermediate image according to the target quality to obtain a target image. According to the method and the device, the initial image is subjected to size compression according to the target compression mode in the obtained target compression parametersto obtain the intermediate image, whether the difference between the intermediate image and the target quality is greater than the first preset threshold is judged, and if yes, the target compressionparameter is obtained acco |
---|