A method and device for uploading images
An image and target image technology, applied in the field of uploading images, can solve the problems of image quality degradation, poor upload image quality, etc., and achieve the effect of reducing the impact
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] The embodiment of the present invention provides a method for uploading images, such as figure 1 As shown, the processing flow of the method may include the following steps:
[0029] Step 101, receiving an upload instruction of a target image.
[0030] Step 102, compressing the target image according to a preset pixel compression ratio to obtain a compressed image.
[0031] Step 103, if the data volume reduction ratio of the compressed image relative to the target image is less than the preset ratio threshold, upload the target image; if the data reduction ratio of the compressed image relative to the target image is greater than the preset ratio threshold, Then upload the compressed image.
[0032] In the embodiment of the present invention, the upload instruction of the target image is received, and the target image is compressed according to the preset pixel compression ratio to obtain the compressed image. If the data reduction ratio of the compressed image relati...
Embodiment 2
[0034] An embodiment of the present invention provides a method for uploading an image, and the execution body of the method is a terminal. Wherein, the terminal may be a mobile terminal such as a mobile phone or a tablet computer, and an instant messaging application program, such as WeChat, may be installed in the terminal. The terminal can be provided with a processor, a memory, and a transceiver. The processor can be used to compress the target image and determine the image to be uploaded. The memory can be used to store the data required and generated during the following processing, Transceivers can be used to receive and transmit data. An encoder may also be set in the terminal, and the encoder may be used to encode the target image and the compressed image.
[0035] The following will combine specific implementation methods, figure 1 The processing flow shown is described in detail, and the content can be as follows:
[0036] Step 101, receiving an upload instructio...
Embodiment 3
[0061] Based on the same technical idea, the embodiment of the present invention also provides a device for uploading images, such as Figure 4 As shown, the device includes:
[0062] A receiving module 410, configured to receive an upload instruction of a target image;
[0063] A compression module 420, configured to perform compression processing on the target image according to a preset pixel compression ratio to obtain a compressed image;
[0064] upload module 430, configured to upload the target image if the data volume reduction ratio of the compressed image relative to the target image is less than a preset ratio threshold; if the compressed image is smaller than the target image If the data volume reduction ratio of the image is greater than the preset ratio threshold, the compressed image is uploaded.
[0065] Optionally, the compression module 420 is configured to:
[0066] If the data volume of the target image is greater than a preset data volume threshold, com...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com