Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2019-11-15
TENCENT TECH (SHENZHEN) CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] When users use instant messaging applications to upload some images, there are often situations where the images to be uploaded by the user are downloaded during the communication process or in the shared information of friends. Based on the above method of uploading images, in this case, the user downloaded The image may have been compressed, but based on the above method of uploading an image, when the user uploads the downloaded image, the terminal needs to compress the image again (that is, it is equivalent to repeatedly compressing the same image). By analogy, the image will be repeatedly compressed during the network transmission, and each compression will cause the quality of the image to degrade, thus resulting in poor quality of the uploaded image

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for uploading images
  • A method and device for uploading images
  • A method and device for uploading images

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an image uploading method and apparatus, and belongs to the technical field of mobile terminals. The method comprises: receiving an upload instruction of a target image; performing compression processing on the target image according to a preset pixel compression ratio to obtain a compressed image; and if the data volume reduction ratio of the compressed image for the target image is less than a preset ratio threshold, uploading the target image, and if the data volume reduction ratio of the compressed image for the target image is greater than the preset ratio threshold, uploading the compressed image. With the adoption of the method and the apparatus, the influence on image quality can be reduced in a process that an image is repeatedly uploaded and downloaded.

Description

technical field [0001] The invention relates to the technical field of mobile terminals, in particular to a method and device for uploading images. Background technique [0002] With the development of mobile terminal technology, terminals such as mobile phones and tablet computers have been widely used, and there are more and more types of application programs on the corresponding terminals, and more and more functions. An instant messaging application is a very commonly used application, such as WeChat and the like. [0003] At present, users often upload some images when using instant messaging applications to communicate and share information. When users upload images, the terminal will often compress the images to be uploaded by users according to the preset pixel compression ratio. Among them , during the compression process, part of the pixel data in the image is removed according to the preset pixel compression ratio, and the remaining pixel data in the image is ret...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T3/40H04L12/58
CPCG06T3/4092H04L51/043H04L51/066H04L51/10
Inventor 吴静关镇安杨干荣林永裕周博
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products