Picture compression method and apparatus, device and storage medium
A compression method and picture technology, which can be used in image communication, digital video signal modification, electrical components, etc., to solve problems such as photo clarity and quality degradation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] figure 1 It is a flow chart of a picture compression method provided by Embodiment 1 of the present invention. The method of this embodiment can be executed by a picture compression device, which can be realized by hardware and / or software, and can generally be integrated in a computer. The method of this embodiment specifically includes:
[0048] S110. Obtain size information of the image to be processed.
[0049] In this embodiment, the picture to be processed may specifically be a picture in any format, such as a picture in jpg format, a picture in bmp format, and a picture in png format. The size information specifically refers to information used to represent the height and width of the image to be processed, and typically may be the total number of rows and columns of pixels in the image to be processed.
[0050] S120. Determine a compression ratio according to the size information and the target compression size.
[0051] In this embodiment, the target compres...
Embodiment 2
[0064] figure 2 It is a flow chart of a picture compression method provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the foregoing embodiments. In this embodiment, a method for determining a specific compression ratio and a specific implementation of a method for obtaining compressed pixel information are given.
[0065] Correspondingly, the method in this embodiment specifically includes:
[0066] S210. Acquire size information of the image to be processed.
[0067] S220. Divide the height dimension in the target compression size by the height dimension in the size information to obtain a height compression ratio.
[0068] In this embodiment, the compression ratio is determined through steps 220 to 240 . First, the height compression ratio is determined through this step 220, wherein the height compression ratio may specifically be equal to dividing the height dimension in the target compression size by the height dimension in...
Embodiment 3
[0086] image 3 It is a flow chart of a picture compression method provided by Embodiment 3 of the present invention. This embodiment is optimized on the basis of the foregoing embodiments. In this embodiment, a method for determining a specific compression ratio and a specific implementation of a method for obtaining compressed pixel information are given.
[0087] Correspondingly, the method in this embodiment specifically includes:
[0088] S310. Obtain size information of the image to be processed.
[0089] S320. Divide the height dimension in the target compression size by the height dimension in the size information to obtain a height compression ratio in the compression ratio.
[0090] In this embodiment, when the picture to be processed is compressed, the compression ratios in the height direction and the width direction are different, so the compression ratio includes two values, one is the width compression ratio. One is the high compression ratio. First, the hei...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


