CN106210401A - A kind of image downloading method and server - Google Patents

A kind of image downloading method and server Download PDF

Info

Publication number
CN106210401A
CN106210401A CN201610632933.1A CN201610632933A CN106210401A CN 106210401 A CN106210401 A CN 106210401A CN 201610632933 A CN201610632933 A CN 201610632933A CN 106210401 A CN106210401 A CN 106210401A
Authority
CN
China
Prior art keywords
image
images
target
terminal
resolution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610632933.1A
Other languages
Chinese (zh)
Inventor
唐元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610632933.1A priority Critical patent/CN106210401A/en
Publication of CN106210401A publication Critical patent/CN106210401A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00095Systems or arrangements for the transmission of the picture signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/40068Modification of image resolution, i.e. determining the values of picture elements at new relative positions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiments providing a kind of image downloading method, described method includes: obtain target image;The N that described target image is converted into the resolution corresponding from described target image different opens image, and wherein, described N is positive integer;Receiving the download request for downloading described target image that terminal sends, described download in request comprises target resolution;Determine that described N opens the image mated with described target resolution in image, and this image is sent to described terminal.The embodiment of the present invention additionally provides a kind of server.Can download to meet the image of user's request from server by the embodiment of the present invention, enhance Consumer's Experience sense.

Description

Image downloading method and server
Technical Field
The invention relates to the technical field of data processing, in particular to an image downloading method and a server.
Background
With the popularization of intelligent terminals (such as mobile phones, tablet computers and the like) and the rapid development of mobile internet, the number of users using the terminals is increasing. The screen locking function, which is one of the standard applications of the terminal, is the first impression that the terminal presents to the user, and thus belongs to an application that is used by the user with a very high frequency.
In the prior art, in the use of the screen locking function, images are generally downloaded from a server, and then the images downloaded from the server are displayed when the terminal is in the screen locking state. However, in general, the server can only provide an image of one size, and thus cannot meet the user's needs, and the user experience is not strong, and for example, if the size of the downloaded image is large, the downloaded image may not be displayed on the terminal, and if the size of the downloaded image is too small, the downloaded image may be displayed on the terminal in a blurred manner.
Disclosure of Invention
The embodiment of the invention provides an image downloading method and a server, which can download images meeting the requirements of users from the server.
A first aspect of an embodiment of the present invention provides an image downloading method, including:
acquiring a target image;
converting the target image into N images with different resolutions corresponding to the target image, wherein N is a positive integer;
receiving a downloading request sent by a terminal and used for downloading the target image, wherein the downloading request comprises a target resolution;
and determining one image matched with the target resolution in the N images, and sending the image to the terminal.
A second aspect of an embodiment of the present invention provides a server, including:
an acquisition unit configured to acquire a target image;
the conversion unit is used for converting the target image acquired by the acquisition unit into N images with different resolutions corresponding to the target image, wherein N is a positive integer;
the receiving unit is used for receiving a downloading request which is sent by a terminal and used for downloading the target image, and the downloading request comprises a target resolution;
and the sending unit is used for determining one image matched with the target resolution in the N images and sending the image to the terminal.
A third aspect of an embodiment of the present invention provides a server, including:
a processor and a memory;
wherein the processor is configured to call the executable program code in the memory, and perform part or all of the steps of the first aspect.
The embodiment of the invention has the following beneficial effects:
it can be seen that, according to the embodiment of the present invention, a target image is obtained, the target image is converted into N images with different resolutions corresponding to the target image, where N is a positive integer, a download request for downloading the target image sent by a terminal is received, the download request includes the target resolution, one image matching the target resolution in the N images is determined, and the image is sent to the terminal. Therefore, images meeting the requirements of the user can be downloaded from the server, and the experience of the user can be enhanced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first embodiment of an image downloading method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an image downloading method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating an image downloading method according to a third embodiment of the present invention;
fig. 4a is a schematic structural diagram of a server according to a first embodiment of the present invention;
FIG. 4b is a schematic structural diagram of a conversion unit of the server depicted in FIG. 4a according to an embodiment of the present invention;
FIG. 4c is a schematic diagram of another structure of the server depicted in FIG. 4a according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to a second embodiment of the present invention.
Detailed Description
The embodiment of the invention provides an image downloading method and a server, which can download images meeting the requirements of users from the server.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The terminal described in the embodiment of the present invention may include a smart Phone (such as an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a notebook computer, a mobile internet device (MID, mobile internet Devices), or a wearable device, and the terminal is merely an example, and is not exhaustive and includes but is not limited to the terminal.
Fig. 1 is a flowchart illustrating an image downloading method according to a first embodiment of the present invention. The image downloading method described in this embodiment includes the following steps:
101. and acquiring a target image.
In which the server may obtain a target image, which is typically an original image, and therefore the target image may have a higher resolution. Of course, the target image is selected by the user from a plurality of images, and thus, the target image may be any one of the images to be uploaded. Of course, the target image may include some attribute information, such as resolution size, image format, subject of the image (e.g., car, beauty, etc.), date of uploading the image, time of downloading the image, rights of the image (which users may download an image), number of times of downloading the image, etc.
102. And converting the target image into N images with different resolutions corresponding to the target image, wherein N is a positive integer.
Optionally, downsampling the target image to different degrees may be performed to convert the target image into images with different resolutions, of course, an original target image needs to be retained, and then downsampling the target image, after downsampling, the resolution of the target image may be reduced, and in the downsampling process, a part of information may be lost from the target image, so that not only the resolution of the target image may be reduced, but also the definition of the target image may be reduced, and of course, the downsampling degree is relatively large, and a target image blurring phenomenon may occur, that is, the quality of the target image may be degraded. Certainly, the resolution displayed by the screens of the terminals of different models is fixed, that is, the screen of each terminal has the maximum resolution, and the image cannot be normally displayed if the maximum resolution is higher than the maximum resolution, or the image needs to be converted, and the resolution of the converted image is lower than or equal to the maximum resolution. The resolution may be "540x960", "720x1280", "1080x1920", "1440x2560", although the resolution may be other, and is not limited in particular. The N images may be stored in a database of the server. Thus, N images correspond to N resolutions, one for each image.
Alternatively, step 102 may comprise the steps of:
21) obtaining N resolutions;
22) performing down-sampling processing on the target image according to each resolution of the N resolutions to obtain N down-sampled images;
23) acquiring image quality evaluation values of the N downsampled images;
24) judging whether the image quality evaluation value of the N downsampled images is larger than a preset threshold value or not;
25) and if the image quality evaluation values of M downsampled images in the image quality evaluation values of the N downsampled images are smaller than or equal to the preset threshold value, performing image enhancement processing on the M downsampled images, wherein M is a natural number smaller than N.
Optionally, the N resolutions may be determined according to a screen resolution of an existing terminal, and thus, the selected N resolutions are all resolutions supported by the existing terminal. In step 22, the target image may be down-sampled according to each of the N resolutions, such that the obtained N down-sampled images correspond to the N resolutions one-to-one. As is known in the art, the size of the resolution determines the image size to some extent, and therefore, after the down-sampling process, the size of the target image after the down-sampling process is smaller than that of the original target image. Of course, the larger the down-sampling degree is, the smaller the down-sampled target image is, and the smaller the down-sampling degree is, the larger the down-sampled target image is. Of course, the resolution also reflects the sharpness of the image to some extent, and the greater the resolution, the sharper the image, and the smaller the resolution, the more blurred the image. In step 23, a certain technical means may be adopted to perform image quality evaluation on the N downsampled images, so that N image quality evaluation values may be obtained, where the image quality evaluation values correspond to the downsampled images one to one. In step 24, the preset threshold may be set by default by the system or by the user, wherein the image quality evaluation values of the N downsampled images are compared with the preset threshold. In step 25, if the image quality evaluation values of M downsampled images among the image quality evaluation values of N downsampled images are less than or equal to the preset threshold, the image enhancement processing may be performed on the M downsampled images, and the remaining N-M downsampled images and the M downsampled images after the image enhancement processing are the obtained N target images with different resolutions.
Alternatively, if the image quality evaluation value of a certain down-sampled image is greater than the preset threshold among the image quality evaluation values of the N down-sampled images, the image enhancement processing is not performed on the down-sampled image.
Optionally, in step 23, image quality evaluation may be performed on the N downsampled images by using at least one image evaluation index, so as to obtain N image quality evaluation values.
Optionally, the terminal may perform image quality evaluation on each of the N down-sampled images according to one or more image quality evaluation indexes. The image quality evaluation index may include, but is not limited to: image sharpness, signal-to-noise ratio, information entropy, contrast, average gray scale, and so forth. In one aspect, the terminal may perform image quality evaluation on each of the N downsampled images according to the same image quality evaluation index to obtain a plurality of image quality evaluation values. On the other hand, the terminal may perform image quality evaluation on each of the N down-sampled images according to at least two image quality evaluation indexes to obtain a plurality of image quality evaluation values. Namely, at least two image quality evaluation indexes are used for carrying out image quality evaluation on the N downsampled images.
Specifically, the image quality evaluation value of each of the N down-sampled images is calculated using the following formula, wherein the formula is as follows:
S = Σ i = 1 K ∂ i P i
wherein S represents an image quality evaluation value, K represents the number of image quality evaluation indexes, and PiAn evaluation value representing the ith image quality evaluation index,a weight indicating an ith image quality evaluation index, wherein,wherein K is an integer greater than 1.
103. And receiving a downloading request sent by a terminal and used for downloading the target image, wherein the downloading request comprises the target resolution.
Optionally, the terminal may send a download request of the target image to the server, where the download request may include a target resolution, and the target resolution is less than or equal to the maximum resolution. Accordingly, the server may receive a download request sent by the terminal, where the download request includes an HTTP Header, and the target resolution may be stored in the HTTP Header, where the target resolution may be a screen resolution of the terminal.
104. And determining one image matched with the target resolution in the N images, and sending the image to the terminal.
Alternatively, the target resolution may be matched with the N resolutions, and if there is a resolution that is the same as the target resolution in the N resolutions, an image corresponding to the resolution that is the same as the target resolution in the N resolutions is sent to the terminal.
Further alternatively, the image transmitted to the terminal may be compressed before transmission, and after compression, the size of the image may be reduced, and thus, the transmission speed may be increased, and of course, after the terminal receives the compressed image, the compressed image may be decompressed.
Further alternatively, the image sent to the terminal may be encrypted before being sent, and after the encryption, the security of the image becomes high, so that the security of the image during sending can be improved, and the risk of tampering can be reduced.
Alternatively, the implementation of step 104 may be as follows: and determining a target image corresponding to the resolution closest to the target resolution from the N images, sending the image with the resolution to the terminal, and playing by the terminal. The target image corresponding to the resolution closest to the target resolution may be determined from the N images by comparing the product of the target resolutions (e.g., "540x960" — 540x960 ═ 518400) with the product of the resolutions of the N images one by one to obtain the resolution closest to the target resolution and the image corresponding to the resolution. Taking 4 images as an example, the images are respectively "540x960", "720x1280", "1080x1920" and "1440x2560", and if the target resolution is "535x900", the closest resolution is "540x960", and the target image corresponding to "540x960" can be sent to the terminal.
Optionally, step 104 further includes the following cases in the specific implementation process: if it is determined that one image matched with the target resolution does not exist in the N images, the server can convert the target image into an image corresponding to the target resolution and send the image corresponding to the target resolution to the terminal. Wherein the sending the image corresponding to the target resolution to the terminal may include: and sending the address of the image corresponding to the target resolution to the terminal, and sending the image corresponding to the target resolution to the terminal when receiving a download determining instruction. Of course, the specific implementation manner of converting the target image into the image corresponding to the target resolution may be: and performing down-sampling processing on the target image according to the target resolution to obtain an image corresponding to the target resolution.
It can be seen that, according to the embodiment of the present invention, a target image is obtained, the target image is converted into N images with different resolutions corresponding to the target image, where N is a positive integer, a download request for downloading the target image sent by a terminal is received, the download request includes the target resolution, one image matching the target resolution in the N images is determined, and the image is sent to the terminal. Therefore, images meeting the requirements of the user can be downloaded from the server, and the experience of the user can be enhanced.
In accordance with the above, please refer to fig. 2, which is a flowchart illustrating an image downloading method according to a second embodiment of the present invention. The image downloading method described in this embodiment includes the following steps:
201. and acquiring a target image.
202. And converting the target image into N images with different resolutions corresponding to the target image, wherein N is a positive integer.
203. And compressing the N images to obtain the N compressed images.
Optionally, the N images may be compressed, and the main principle of image compression is: spatial redundancy caused by correlation between adjacent pixels in the image is utilized; temporal redundancy caused by correlation between different frames in the image sequence; spectral redundancy due to the correlation of different color planes or spectral bands. The goal of data compression is to reduce the number of bits required to represent the data by removing these data redundancies. The image data is very difficult to store, transmit and process due to huge amount of image data, so that the compression of the image data is very important, and the image is compressed to a certain degree under the condition of no distortion of the compressed image, so that the image transmission process is accelerated.
Generally, image compression algorithms can be classified into lossy compression algorithms and lossless compression algorithms, and specifically, which algorithm is selected can be set by default of the system or by the user.
204. And receiving a downloading request sent by a terminal and used for downloading the target image, wherein the downloading request comprises the target resolution.
205. And determining an image matched with the target resolution in the N compressed images, and sending the image to the terminal.
The steps 201, 202 and 204 can refer to the corresponding steps of the image downloading method described in fig. 1.
Alternatively, the target resolution may be matched with the N resolutions, and if there is a resolution that is the same as the target resolution in the N resolutions, the compressed image corresponding to the resolution that is closest to the target resolution in the N resolutions is sent to the terminal.
Further alternatively, the image sent to the terminal may be encrypted before being sent, and after the encryption, the security of the image becomes high, so that the security of the image during sending can be improved, and the risk of tampering can be reduced.
In accordance with the above, please refer to fig. 3, which is a flowchart illustrating a third embodiment of an image downloading method according to an embodiment of the present invention. The image downloading method described in this embodiment includes the following steps:
301. and acquiring a target image.
302. And converting the target image into N images with different resolutions corresponding to the target image, wherein N is a positive integer.
303. And encrypting the N images to obtain the N encrypted images.
Optionally, N images may be encrypted, and the main principle of image encryption is as follows: in order to realize the security of digital images, in actual operation, a two-dimensional image is generally converted into one-dimensional data, and then encrypted by adopting a traditional encryption algorithm. Unlike ordinary text information, images and videos have temporal, spatial, visual perceptibility and lossy compression properties, and these properties make it possible to design more efficient and secure encryption algorithms for images. In summary, image encryption is: a technique for improving the security and the operation efficiency of encryption by using the characteristics of digital images to design an encryption algorithm. Generally, a technique for improving security and operation efficiency of encryption is provided.
304. And receiving a downloading request sent by a terminal and used for downloading the target image, wherein the downloading request comprises the target resolution.
305. And determining one image matched with the target resolution in the N encrypted images, and sending the image to the terminal.
The steps 301, 302, and 304 can refer to the corresponding steps of the image downloading method described in FIG. 1.
Alternatively, the target resolution may be matched with the N resolutions, and if there is a resolution that is the same as the target resolution in the N resolutions, the encrypted image corresponding to the resolution that is the same as the target resolution in the N resolutions may be sent to the terminal.
Further alternatively, the image sent to the terminal may be compressed before being sent, and after the compression, the size of the image becomes smaller and the transmission speed becomes faster, so that the transmission speed of the image during sending can be increased.
The following is a device for implementing the image downloading method provided in fig. 1 to 3, and specifically includes the following steps:
please refer to fig. 4a, which is a schematic structural diagram of a server according to a first embodiment of the present invention. The server described in this embodiment includes: the obtaining unit 401, the converting unit 402, the receiving unit 403, and the sending unit 404 are specifically as follows:
an acquisition unit 401 configured to acquire a target image;
a converting unit 402, configured to convert the target image acquired by the acquiring unit 401 into N images with different resolutions corresponding to the target image, where N is a positive integer;
a receiving unit 403, configured to receive a download request sent by a terminal for downloading the target image, where the download request includes a target resolution;
a sending unit 404, configured to determine one image that matches the target resolution in the N images, and send the image to the terminal.
Alternatively, as in fig. 4b, the conversion unit 402 depicted in fig. 4a may comprise:
an obtaining module 4021, configured to obtain N resolutions;
a processing module 4022, configured to perform downsampling processing on the target image according to each of the N resolutions to obtain the N downsampled images;
the obtaining module 4021 is further configured to:
acquiring image quality evaluation values of the N downsampled images;
a determining module 4023, configured to determine whether an image quality evaluation value of the N downsampled images is greater than a preset threshold;
the processing module 4022 is further configured to:
if the determination result of the determining module 4023 is that the image quality evaluation values of M downsampled images among the image quality evaluation values of the N downsampled images are smaller than the preset threshold, performing image enhancement processing on the M downsampled images, where M is a natural number smaller than N.
Optionally, the obtaining module 4021 is specifically configured to:
and respectively carrying out image quality evaluation on the N downsampled images by adopting at least one image evaluation index to obtain the N image quality evaluation values.
Optionally, as shown in fig. 4c, the server depicted in fig. 4a may further include: the compression unit 405 is specifically as follows:
a compressing unit 405, configured to, after the converting unit 402 converts the target image acquired by the acquiring unit 401 into N images with different resolutions corresponding to the target image, perform compression processing on the N images to obtain N compressed images;
the sending unit 403 is specifically configured to:
and determining an image matched with the target resolution in the N compressed images, and sending the image to the terminal.
Optionally, the sending unit 404 sends the image to the terminal, including:
encrypting the image to obtain an encrypted image; and sending the encrypted image to the terminal.
Optionally, the sending unit 404 is specifically configured to:
determining an image corresponding to the resolution closest to the target resolution in the N images, and sending the image to the terminal;
or,
and if it is determined that one image matched with the target resolution does not exist in the N images, converting the target image into an image corresponding to the target resolution, and sending the image corresponding to the target resolution to a terminal.
It can be seen that the terminal described in the embodiment of the present invention can obtain a target image, convert the target image into N images with different resolutions corresponding to the target image, where N is a positive integer, receive a download request for downloading the target image sent by the terminal, where the download request includes the target resolution, determine one image of the N images that matches the target resolution, and send the image to the terminal. Therefore, images meeting the requirements of the user can be downloaded from the server, and the experience of the user can be enhanced.
Fig. 5 is a schematic structural diagram of a server according to a second embodiment of the present invention. The server described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, e.g., a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 being connected by a bus 5000.
The input device 1000 may be a touch panel, a physical button, or a mouse.
The output device 2000 may be a display screen.
The memory 4000 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 4000 is used for storing a set of program codes, and the input device 1000, the output device 2000 and the processor 3000 are used for calling the program codes stored in the memory 4000 to execute the following operations:
the processor 3000 is configured to:
acquiring a target image;
converting the target image into N images with different resolutions corresponding to the target image, wherein N is a positive integer;
receiving a downloading request sent by a terminal and used for downloading the target image, wherein the downloading request comprises a target resolution;
and determining one image matched with the target resolution in the N images, and sending the image to the terminal.
Optionally, the processor 3000 converts the target image into N images with different resolutions corresponding to the target image, and includes:
obtaining N resolutions;
performing down-sampling processing on the target image according to each resolution of the N resolutions to obtain N down-sampled images;
acquiring image quality evaluation values of the N downsampled images;
judging whether the image quality evaluation value of the N downsampled images is larger than a preset threshold value or not;
and if the image quality evaluation values of M downsampled images in the image quality evaluation values of the N downsampled images are smaller than or equal to the preset threshold value, performing image enhancement processing on the M downsampled images.
Optionally, the processor 3000 obtains the image quality evaluation values of the N downsampled images, and includes:
and respectively carrying out image quality evaluation on the N downsampled images by adopting at least one image evaluation index to obtain the N image quality evaluation values.
Optionally, after the processor 3000 converts the target image into N images with different resolutions corresponding to the target image, the processor is further specifically configured to:
compressing the N images to obtain N compressed images;
the determining an image matched with the target resolution in the N images and sending the image to the terminal includes:
and determining an image matched with the target resolution in the N compressed images, and sending the image to the terminal.
Optionally, the processor 3000 sends the image to the terminal, and includes:
encrypting the image to obtain an encrypted image;
and sending the encrypted image to the terminal.
Optionally, the processor 3000 determines one of the N images that matches the target resolution, and sends the image to the terminal, where the determining includes:
determining an image corresponding to the resolution closest to the target resolution in the N images, and sending the image to the terminal;
or,
and if it is determined that one image matched with the target resolution does not exist in the N images, converting the target image into an image corresponding to the target resolution, and sending the image corresponding to the target resolution to a terminal.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program includes, when executed, some or all of the steps of any one of the image downloading methods described in the above method embodiments.
While the invention has been described in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the word "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. A computer program stored/distributed on a suitable medium supplied together with or as part of other hardware, may also take other distributed forms, such as via the Internet or other wired or wireless telecommunication systems.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the invention has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the invention. Accordingly, the specification and figures are merely exemplary of the invention as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the invention. It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (13)

1. An image downloading method, comprising:
acquiring a target image;
converting the target image into N images with different resolutions corresponding to the target image, wherein N is a positive integer;
receiving a downloading request sent by a terminal and used for downloading the target image, wherein the downloading request comprises a target resolution;
and determining one image matched with the target resolution in the N images, and sending the image to the terminal.
2. The method of claim 1, wherein the converting the target image into N images with different resolutions corresponding to the target image comprises:
obtaining N resolutions;
performing down-sampling processing on the target image according to each resolution of the N resolutions to obtain N down-sampled images;
acquiring image quality evaluation values of the N downsampled images;
judging whether the image quality evaluation value of the N downsampled images is larger than a preset threshold value or not;
and if the image quality evaluation values of M downsampled images in the image quality evaluation values of the N downsampled images are smaller than or equal to the preset threshold value, performing image enhancement processing on the M downsampled images, wherein M is a natural number smaller than N.
3. The method of claim 2, wherein obtaining the image quality evaluation values of the N downsampled images comprises:
and respectively carrying out image quality evaluation on the N downsampled images by adopting at least one image evaluation index to obtain the N image quality evaluation values.
4. The method according to any one of claims 1 to 3, wherein after the converting the target image into N images with different resolutions corresponding to the target image, the method further comprises:
compressing the N images to obtain N compressed images;
the determining an image matched with the target resolution in the N images and sending the image to the terminal includes:
and determining an image matched with the target resolution in the N compressed images, and sending the image to the terminal.
5. The method according to any one of claims 1 to 3, wherein said transmitting the image to the terminal comprises:
encrypting the image to obtain an encrypted image;
and sending the encrypted image to the terminal.
6. The method according to any one of claims 1 to 3, wherein the determining one of the N images that matches the target resolution and sending the image to the terminal comprises:
determining an image corresponding to the resolution closest to the target resolution in the N images, and sending the image to the terminal;
or,
and if it is determined that one image matched with the target resolution does not exist in the N images, converting the target image into an image corresponding to the target resolution, and sending the image corresponding to the target resolution to a terminal.
7. A server, comprising:
an acquisition unit configured to acquire a target image;
the conversion unit is used for converting the target image acquired by the acquisition unit into N images with different resolutions corresponding to the target image, wherein N is a positive integer;
the receiving unit is used for receiving a downloading request which is sent by a terminal and used for downloading the target image, and the downloading request comprises a target resolution;
and the sending unit is used for determining one image matched with the target resolution in the N images and sending the image to the terminal.
8. The server according to claim 7, wherein the conversion unit includes:
an obtaining module, configured to obtain N resolutions;
the processing module is used for performing down-sampling processing on the target image according to each resolution of the N resolutions to obtain N down-sampled images;
the obtaining module is further configured to:
acquiring image quality evaluation values of the N downsampled images;
the judging module is used for judging whether the image quality evaluation value of the N downsampled images is larger than a preset threshold value or not;
the processing module is further configured to:
and if the judgment result of the judgment module is that the image quality evaluation values of M downsampled images in the image quality evaluation values of the N downsampled images are less than or equal to the preset threshold, performing image enhancement processing on the M downsampled images, wherein M is a natural number less than N.
9. The server according to claim 8, wherein the obtaining module is specifically configured to:
and respectively carrying out image quality evaluation on the N downsampled images by adopting at least one image evaluation index to obtain the N image quality evaluation values.
10. A server according to any of claims 7 to 9, characterized in that the server further comprises:
the compression unit is used for compressing the N images to obtain N compressed images after the conversion unit converts the target image acquired by the acquisition unit into N images with different resolutions corresponding to the target image;
the sending unit is specifically configured to:
and determining an image matched with the target resolution in the N compressed images, and sending the image to the terminal.
11. The server according to any one of claims 7 to 9, wherein the sending unit sends the image to the terminal, and includes:
encrypting the image to obtain an encrypted image; and sending the encrypted image to the terminal.
12. The server according to any one of claims 7 to 9, wherein the sending unit is specifically configured to:
determining an image corresponding to the resolution closest to the target resolution in the N images, and sending the image to the terminal;
or,
and if it is determined that one image matched with the target resolution does not exist in the N images, converting the target image into an image corresponding to the target resolution, and sending the image corresponding to the target resolution to a terminal.
13. A server, comprising:
a processor and a memory; wherein the processor performs the method of any one of claims 1 to 6 by calling code or instructions in the memory.
CN201610632933.1A 2016-08-03 2016-08-03 A kind of image downloading method and server Pending CN106210401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610632933.1A CN106210401A (en) 2016-08-03 2016-08-03 A kind of image downloading method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610632933.1A CN106210401A (en) 2016-08-03 2016-08-03 A kind of image downloading method and server

Publications (1)

Publication Number Publication Date
CN106210401A true CN106210401A (en) 2016-12-07

Family

ID=57498669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610632933.1A Pending CN106210401A (en) 2016-08-03 2016-08-03 A kind of image downloading method and server

Country Status (1)

Country Link
CN (1) CN106210401A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040024814A1 (en) * 1998-08-17 2004-02-05 Fuji Photo Film Co., Ltd. Method, apparatus and recording medium for data transfer
CN1860788A (en) * 2003-05-16 2006-11-08 比卡萨有限公司 Methods and systems for image sharing over a network
US20100295971A1 (en) * 2009-05-21 2010-11-25 Google Inc. Image zooming using pre-existing imaging information
CN103366341A (en) * 2013-04-16 2013-10-23 广东欧珀移动通信有限公司 Method and device for adaptive-resolution display of image
CN103634343A (en) * 2012-08-22 2014-03-12 腾讯科技(上海)有限公司 Wallpaper arranging method and terminal
CN103780652A (en) * 2012-10-23 2014-05-07 腾讯科技(深圳)有限公司 Micro-blog resource sharing method and system thereof
CN104202624A (en) * 2014-08-22 2014-12-10 小米科技有限责任公司 Method and device for transmitting picture
CN104699833A (en) * 2015-03-31 2015-06-10 北京奇艺世纪科技有限公司 Picture presentation method, picture storage method, picture presentation device and picture storage device
CN105302864A (en) * 2015-09-22 2016-02-03 努比亚技术有限公司 Picture loading apparatus and method according to screen resolution

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040024814A1 (en) * 1998-08-17 2004-02-05 Fuji Photo Film Co., Ltd. Method, apparatus and recording medium for data transfer
CN1860788A (en) * 2003-05-16 2006-11-08 比卡萨有限公司 Methods and systems for image sharing over a network
US20100295971A1 (en) * 2009-05-21 2010-11-25 Google Inc. Image zooming using pre-existing imaging information
CN103634343A (en) * 2012-08-22 2014-03-12 腾讯科技(上海)有限公司 Wallpaper arranging method and terminal
CN103780652A (en) * 2012-10-23 2014-05-07 腾讯科技(深圳)有限公司 Micro-blog resource sharing method and system thereof
CN103366341A (en) * 2013-04-16 2013-10-23 广东欧珀移动通信有限公司 Method and device for adaptive-resolution display of image
CN104202624A (en) * 2014-08-22 2014-12-10 小米科技有限责任公司 Method and device for transmitting picture
CN104699833A (en) * 2015-03-31 2015-06-10 北京奇艺世纪科技有限公司 Picture presentation method, picture storage method, picture presentation device and picture storage device
CN105302864A (en) * 2015-09-22 2016-02-03 努比亚技术有限公司 Picture loading apparatus and method according to screen resolution

Similar Documents

Publication Publication Date Title
KR101819700B1 (en) Method and device for compressing and expanding image intended for encrypted communication, program, and storage medium
JP2015144404A5 (en)
CN108574807B (en) Image processing method and related equipment
WO2019187609A1 (en) Computer program, image processing device, and image processing method
JP2023507968A (en) Method and apparatus in video coding for machines
CN110399511A (en) Image cache method, equipment, storage medium and device based on Redis
JP7255841B2 (en) Information processing device, information processing system, control method, and program
CN106161021B (en) Private data sending method and device and private data receiving method and device
CN110751251B (en) Method and device for generating and transforming two-dimensional code image matrix
CN115248924A (en) Two-dimensional code processing method and device, electronic equipment and storage medium
Hossain et al. A Symbiotic Digital Signage system based on display to display communication
CN112714313A (en) Image processing method, device, equipment and storage medium
CN110545446B (en) Desktop image encoding and decoding methods, related devices and storage medium
CN111325652A (en) Information embedding method, information extracting method, information embedding device, information extracting device, information embedding equipment and computer readable storage medium
CN106210401A (en) A kind of image downloading method and server
CN113269140B (en) Image processing method and device, storage medium and electronic equipment
CN112788338B (en) Image compression and decompression method, equipment, device and storage medium
CN115459780A (en) Data compression method, data decompression method and related equipment
KR20160082521A (en) Chroma down-conversion and up-conversion processing
CN114339252A (en) Data compression method and device
Liu et al. A CU split early termination algorithm based KNN for 360-degree video
CN108347451B (en) Picture processing system, method and device
CN116389772B (en) Beidou network-based image transmission method and system
CN116847036B (en) Image display method, apparatus, electronic device, and computer-readable medium
CN117615222B (en) Image processing method, video publishing method, device, equipment, medium and product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161207