CN106210401A - A kind of image downloading method and server - Google Patents
A kind of image downloading method and server Download PDFInfo
- 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
- resolution
- target
- sampled
- terminal
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/00095—Systems or arrangements for the transmission of the picture signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/40—Picture signal circuits
- H04N1/40068—Modification of image resolution, i.e. determining the values of picture elements at new relative positions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/41—Bandwidth 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
Technical field
The present invention relates to technical field of data processing, be specifically related to a kind of image downloading method and server.
Background technology
Along with popularizing of intelligent terminal's (such as mobile phone, panel computer etc.) and developing rapidly of mobile Internet, use terminal
Number of users increasing.Screen locking function as one of the standard configuration application of terminal, is the terminal primary impression of presenting to user,
Therefore, belong to user and use a kind of application of very high frequency.
In prior art, in the use of screen locking function, it will usually download image from server, then, be in terminal
During screen lock state, show the image downloaded from server.But, it is generally the case that server can only provide a kind of size
Image, thus, it is impossible to meet user's request, thus, Consumer's Experience sense is strong, such as, if the size downloading image is relatively big, then
Cannot may show in terminal, if downloading the undersized of image, then may be displayed on the terminals fuzzyyer.
Summary of the invention
Embodiments provide a kind of image downloading method and server, can download from server and meet user's request
Image.
Embodiment of the present invention first aspect provides a kind of image downloading method, including:
Obtain target image;
The N that described target image is converted into the resolution corresponding from described target image different opens image, wherein, described
N is positive integer;
Receive the download request for downloading described target image that terminal sends, described download request comprises target and divides
Resolution;
Determine that described N opens the image mated with described target resolution in image, and this image is sent to described
Terminal.
Embodiment of the present invention second aspect provides a kind of server, including:
Acquiring unit, is used for obtaining target image;
Conversion unit, is converted into corresponding with described target image for the described target image obtained by described acquiring unit
The different N of resolution open image, wherein, described N is positive integer;
Receiving unit, for receiving the download request for downloading described target image that terminal sends, described download please
Target resolution is comprised in asking;
Transmitting element, for determining that described N opens the image mated in image with described target resolution, and by this figure
As being sent to described terminal.
The embodiment of the present invention third aspect provides a kind of server, including:
Processor and memorizer;
Wherein, described processor, for calling the described executable program code in described memorizer, performs first aspect
Some or all of step.
Implement the embodiment of the present invention, have the advantages that
It can be seen that by the embodiment of the present invention, obtain target image, target image be converted into and this target image pair
The N that the resolution answered is different opens image, and wherein, N is positive integer, receive that terminal sends for download the download of target image please
Ask, download in request and comprise target resolution, determine that N opens the image mated with target resolution in image, and by this figure
As being sent to terminal.Thus, can download to meet the image of user's request from server, Consumer's Experience sense can be strengthened.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below required for make
Accompanying drawing be briefly described, it should be apparent that, below describe in accompanying drawing be some embodiments of the present invention, for ability
From the point of view of the those of ordinary skill of territory, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings
Figure.
Fig. 1 is the first embodiment schematic flow sheet of a kind of image downloading method that the embodiment of the present invention provides;
Fig. 2 is the second embodiment schematic flow sheet of a kind of image downloading method that the embodiment of the present invention provides;
Fig. 3 is the 3rd embodiment schematic flow sheet of a kind of image downloading method that the embodiment of the present invention provides;
Fig. 4 a is the first embodiment structural representation of a kind of server that the embodiment of the present invention provides;
Fig. 4 b is the structural representation of the conversion unit of the server described in Fig. 4 a that the embodiment of the present invention provides;
Fig. 4 c is the another structural representation of the server described in Fig. 4 a that the embodiment of the present invention provides;
Fig. 5 is the second example structure schematic diagram of a kind of server that the embodiment of the present invention provides.
Detailed description of the invention
Embodiments provide a kind of image downloading method and server, can download from server and meet user's request
Image.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments wholely.Based on this
Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise
Example, broadly falls into the scope of protection of the invention.
Term " first ", " second ", " the 3rd " and " in description and claims of this specification and described accompanying drawing
Four " it is etc. for distinguishing different object rather than for describing particular order.Additionally, term " includes " and " having " and it
Any deformation, it is intended that cover non-exclusive comprising.Such as contain series of steps or the process of unit, method, be
System, product or equipment are not limited to step or the unit listed, but the most also include step or the list do not listed
Unit, or the most also include other step intrinsic for these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments
It is contained at least one embodiment of the present invention.It is identical that each position in the description occurs that this phrase might not each mean
Embodiment, be not and the independent of other embodiments mutual exclusion or alternative embodiment.Those skilled in the art explicitly and
Implicitly being understood by, embodiment described herein can combine with other embodiments.
Terminal described by the embodiment of the present invention can include smart mobile phone (as Android phone, iOS mobile phone,
Windows Phone mobile phone etc.), panel computer, palm PC, notebook computer, mobile internet device (MID, Mobile
Internet Devices) or Wearable etc., above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned end
End.
Refer to Fig. 1, for the first embodiment schematic flow sheet of a kind of image downloading method that the embodiment of the present invention provides.
Image downloading method described in the present embodiment, comprises the following steps:
101, target image is obtained.
Wherein, server can obtain target image, and this target image is original image, therefore, target figure under normal circumstances
As having higher resolution.Certainly, this target image is chosen from multiple images by user, and therefore, target image can
For an arbitrary image to be uploaded.Certainly, target image can include some attribute informations, such as, resolution sizes, image pane
Formula, the theme (such as: automobile, beauty etc.) of image, uploading the date of image, the download time of image, authority (which of image
User can download certain image), the download time of image limits, etc..
102, the N that described target image is converted into the resolution corresponding from described target image different opens image, wherein,
Described N is positive integer.
Alternatively, can carry out target image in various degree is down-sampled, to be translated into the image of different resolution,
Certainly, an original target image need to be retained, then, then target image is carried out down-sampled process, down-sampled after, target figure
The resolution of picture can reduce, and during down-sampled, target image can lose a part of information, thus, not only target image
Resolution can reduce, the definition of target image also can reduce, and certainly, down-sampled degree is relatively big, there is also target image
Obfuscation phenomenon, i.e. objective image quality can be deteriorated.Certainly, due to the terminal of different model, the resolution one that its screen shows
Fixed, the screen of the most each terminal all has ultimate resolution, cannot normally show image more than this ultimate resolution, or, need
Being converted by image, the resolution of the image after conversion is less than or equal to this ultimate resolution.Above-mentioned resolution can be "
540x960 ", " 720x1280 ", " 1080x1920 ", " 1440x2560 ", certain resolution can also be other, does not makees at this to have
Body limits.Above-mentioned N opens image and can be stored in the data base of server.Therefore, N opens the corresponding N number of resolution of image, each image
A corresponding resolution.
Alternatively, step 102 can comprise the steps of:
21), N number of resolution is obtained;
22), according to each resolution in described N number of resolution, described target image is carried out down-sampled process, obtain institute
State N number of down-sampled image;
23) image quality evaluation values of described N number of down-sampled image, is obtained;
24), judge that whether the image quality evaluation values of described N number of down-sampled image is more than predetermined threshold value;
25) if the image quality evaluation values of described N number of down-sampled image exists the picture quality of M down-sampled image
Evaluation of estimate is less than or equal to described predetermined threshold value, and described M down-sampled image is carried out image enhancement processing, and described M is for being less than
The natural number of described N.
Alternatively, above-mentioned N number of resolution can determine according to the screen resolution of existing terminal, thus, selection N number of
Resolution is the resolution that existing terminal is supported.In step 22, can be according to resolution each in N number of resolution to target figure
As carrying out down-sampled process, so, the N number of down-sampled image obtained and N number of resolution one_to_one corresponding.From prior art,
The size of resolution determines image size to a certain extent, thus, after down-sampled process, relative to original target image
For, the size of the target image after down-sampled process is again smaller than original target image.Certainly, down-sampled degree is the biggest, then
Target image after down-sampled is the least, and down-sampled degree is the least, the most down-sampled after target image the biggest.Certainly, resolution is also
Reflecting the definition of image to a certain extent, resolution is the biggest, then image is the most clear, and resolution is the least, then image gets over mould
Stick with paste.In step 23, can use certain technological means that N number of down-sampled image is carried out image quality evaluation, thus, available N
Individual image quality evaluation values, image quality evaluation values and down-sampled image one_to_one corresponding.In step 24, predetermined threshold value can be by system
Acquiescence or user are arranged voluntarily, wherein, are compared with predetermined threshold value by the image quality evaluation values of N number of down-sampled image.
In step 25, if there is the image quality evaluation having M down-sampled image in the image quality evaluation values of N number of down-sampled image
Value less than or equal to predetermined threshold value, then can carry out image enhancement processing to this M down-sampled image, and remaining N-M down-sampled
Image is the target image that the N number of resolution obtained is different with the M after this image enhancement processing down-sampled image.
Alternatively, if the image quality evaluation values of N number of down-sampled image exists the picture quality of a certain down-sampled image
Evaluation of estimate is more than above-mentioned predetermined threshold value, this down-sampled image is not carried out image enhancement processing.
Alternatively, step 23 is concretely: use at least one picture appraisal index to carry out N number of down-sampled image respectively
Image quality evaluation, obtains N number of image quality evaluation values.
Alternatively, terminal can be according to one or more image quality evaluation index in above-mentioned N number of down-sampled image
Each down-sampled image carries out image quality evaluation.Wherein, image quality evaluation index can include but are not limited to: image is clear
Degree, signal to noise ratio, comentropy, contrast, average gray etc..On the one hand, terminal can be according to same image quality evaluation index to N
Each down-sampled image in individual down-sampled image carries out image quality evaluation, to obtain multiple image quality evaluation values.Another
Aspect, each down-sampled image in N number of down-sampled image can be carried out by terminal according at least two image quality evaluation index
Image quality evaluation, to obtain multiple image quality evaluation values.I.e. utilize at least two image quality evaluation index to above-mentioned N number of
Down-sampled image carries out image quality evaluation.
Specifically, equation below is utilized to calculate the figure picture element of each down-sampled image in N number of down-sampled image respectively
Amount evaluation of estimate, wherein, formula is as follows:
Wherein, S represents that image quality evaluation values, K represent the number of image quality evaluation index, PiRepresent described in i-th
The evaluation of estimate of image quality evaluation index,The weight of expression i-th image quality evaluation index, wherein,Wherein,
K is the integer more than 1.
103, receiving the download request for downloading described target image that terminal sends, described download in request comprises mesh
Mark resolution.
Alternatively, terminal can send the download request of target image to server, can comprise target and divide in this download request
Resolution, this target resolution is less than or equal to ultimate resolution.Thus, server can receive the download request that terminal sends, its
In, download request comprises HTTP Header, and this target resolution can be stored in HTTP Header, and wherein, this target is differentiated
Rate can be the screen resolution of terminal.
104, determine that described N opens the image mated with described target resolution in image, and this image is sent to
Described terminal.
Alternatively, target resolution can be mated with above-mentioned N number of resolution, if N number of resolution exists and target
The resolution that resolution is the same, then be sent to image corresponding for resolution as target resolution in this N number of resolution
Terminal.
Still optionally further, this is sent to the image of terminal before transmitting, can be compressed this image, compress it
After, the size of image diminishes, thus, transmission speed can be promoted, certainly, after terminal receives the image of compression, can be to this pressure
The image of contracting decompresses.
Still optionally further, this is sent to the image of terminal before transmitting, can be encrypted this image, encryption
After process, the safety of image uprises, thus, image safety during sending can be promoted, reduce the wind being tampered
Danger, certainly, after terminal receives the image of encryption, can be decrypted process to the image of this encryption.
Alternatively, the embodiment of step 104 can be as follows: determines immediate with target resolution from N number of image
The target image that one resolution is corresponding, and the image of this resolution is sent to terminal, and played out by this terminal.Above-mentioned
From N number of image, determine that a target image that resolution corresponding immediate with target resolution can be by target resolution
Product (such as: " 540x960 "=540*960=518400) carries out comparison one by one, to obtain with the product of the resolution of N number of image
A resolution immediate with this target resolution and image corresponding to this resolution.Illustrate as a example by 4 images, respectively
For " 540x960 ", " 720x1280 ", " 1080x1920 ", " 1440x2560 ", if target resolution is " 535x900 ", the most therewith
Immediate resolution is " 540x960 ", then the target image being somebody's turn to do " 540x960 " corresponding can be sent to terminal.
Alternatively, step 104 also comprises following situation during implementing: if it is determined that described N opens in image not
There is the image mated with described target resolution, described target image can be converted into and differentiate with described target by server
The image that rate is corresponding, and the image corresponding with described target resolution is sent to terminal.Wherein, above-mentioned will divide with described target
Image corresponding to resolution is sent to terminal and comprises the steps that the address sending this image corresponding with described target resolution to terminal,
Receive determine download instruction time, send the image corresponding with described target resolution to terminal.Certainly, by described target figure
As being converted into the specific implementation of the image corresponding with described target resolution can be: according to target resolution to target image
Carry out down-sampled process, to obtain the image corresponding with this target resolution.
It can be seen that by the embodiment of the present invention, obtain target image, target image be converted into and this target image pair
The N that the resolution answered is different opens image, and wherein, N is positive integer, receive that terminal sends for download the download of target image please
Ask, download in request and comprise target resolution, determine that N opens the image mated with target resolution in image, and by this figure
As being sent to terminal.Thus, can download to meet the image of user's request from server, Consumer's Experience sense can be strengthened.
Consistent with the abovely, refer to Fig. 2, for the second enforcement of a kind of image downloading method that the embodiment of the present invention provides
Example schematic flow sheet.Image downloading method described in the present embodiment, comprises the following steps:
201, target image is obtained.
202, the N that described target image is converted into the resolution corresponding from described target image different opens image, wherein,
Described N is positive integer.
203, described N opens image be compressed processing, obtain described N and open compression image.
Alternatively, N can open image and be compressed processing, the cardinal principle of compression of images is: utilize adjacent picture in image
The spatial redundancy that dependency between element causes;Image sequence exists between different frame the time redundancy that dependency causes;Different
The spectral redundancy that the dependency of color plane or spectral band causes.The purpose of data compression is through removing these data redundancies
Reduce the bit number represented needed for data.Huge due to image data amount, storing, transmit, extremely difficult when processing, because of
The compression of this view data just seems extremely important, in the case of compression image is distortionless, carries out a certain degree of to image
Compression, has utilization to accelerate image transmitting process.
Under normal circumstances, image compression algorithm can be divided into Lossy Compression Algorithm and lossless compression algorithm, and which is specifically selected
Plant algorithm, can be arranged voluntarily by system default or user.
204, receiving the download request for downloading described target image that terminal sends, described download in request comprises mesh
Mark resolution.
205, determine that described N opens the image mated with described target resolution in compression image, and this image is sent out
Give described terminal.
Wherein, step 201-202 and 204 can refer to the corresponding steps of the image downloading method described by above-mentioned Fig. 1.
Alternatively, target resolution can be mated with above-mentioned N number of resolution, if N number of resolution exists and target
The resolution that resolution is the same, then by compression image corresponding for resolution immediate with target resolution in this N number of resolution
It is sent to terminal.
Still optionally further, this is sent to the image of terminal before transmitting, can be encrypted this image, encryption
After process, the safety of image uprises, thus, image safety during sending can be promoted, reduce the wind being tampered
Danger, certainly, after terminal receives the image of encryption, can be decrypted process to the image of this encryption, then, enter
Row decompression processing.
Consistent with the abovely, refer to Fig. 3, for the 3rd enforcement of a kind of image downloading method that the embodiment of the present invention provides
Example schematic flow sheet.Image downloading method described in the present embodiment, comprises the following steps:
301, target image is obtained.
302, the N that described target image is converted into the resolution corresponding from described target image different opens image, wherein,
Described N is positive integer.
303, described N is opened image to be encrypted, obtain described N and open encrypted image.
Alternatively, N can be opened image and be encrypted, the cardinal principle of image encryption is: in order to realize digital picture
Secrecy, is typically first converted into one-dimensional data, then use conventional encryption algorithm to be encrypted in practical operation by two dimensional image.With general
Logical text message is different, and image and video have timeliness, spatiality, vision sentience, also can carry out lossy compression method, this
A little characteristics make more efficient for graphical design, safe AES be possibly realized.In a word, image encryption is i.e.: utilize numeral
The characteristics design AES of image, to improve safety and a kind of technology of operation efficiency of encryption.Under normal circumstances, to carry
The safety of high encryption and a kind of technology of operation efficiency.
304, receiving the download request for downloading described target image that terminal sends, described download in request comprises mesh
Mark resolution.
305, determine that described N opens the image mated with described target resolution in encrypted image, and this image is sent out
Give described terminal.
Wherein, step 301-302 and 304 can refer to the corresponding steps of the image downloading method described by above-mentioned Fig. 1.
Alternatively, target resolution can be mated with above-mentioned N number of resolution, if N number of resolution exists and target
The resolution that resolution is the same, then send out encrypted image corresponding for resolution as target resolution in this N number of resolution
Give terminal.
Still optionally further, this is sent to the image of terminal before transmitting, can be compressed this image processing, compression
After process, the size of image diminishes, and transmission speed accelerates, thus, image transmission speed during sending can be promoted, when
So, after terminal receives the image of encryption, the image of this encryption can be carried out decompression processing, then, then carry out
Decryption processing.
Below by implementing the device of the image downloading method that above-mentioned Fig. 1 to Fig. 3 is provided, specific as follows:
Refer to Fig. 4 a, for the first embodiment structural representation of a kind of server that the embodiment of the present invention provides.This reality
Execute the server described in example, including: acquiring unit 401, conversion unit 402, reception unit 403 and transmitting element 404, tool
Body is as follows:
Acquiring unit 401, is used for obtaining target image;
Conversion unit 402, for being converted into the described target image that described acquiring unit 401 obtains and described target figure
The N different as corresponding resolution opens image, and wherein, described N is positive integer;
Receive unit 403, for receiving the download request for downloading described target image that terminal sends, described download
Request comprises target resolution;
Transmitting element 404, is used for determining that described N opens the image mated in image with described target resolution, and will
This image is sent to described terminal.
Alternatively, the conversion unit 402 as described in Fig. 4 b, Fig. 4 a comprises the steps that
Acquisition module 4021, is used for obtaining N number of resolution;
Processing module 4022, adopts for described target image being carried out fall according to each resolution in described N number of resolution
Sample processes, and obtains described N number of down-sampled image;
Described acquisition module 4021, is additionally operable to:
Obtain the image quality evaluation values of described N number of down-sampled image;
Judge module 4023, for judging that whether the image quality evaluation values of described N number of down-sampled image is more than presetting threshold
Value;
Described processing module 4022, is additionally operable to:
If the image quality evaluation values that the judged result of described judge module 4023 is described N number of down-sampled image exists
The image quality evaluation values of M down-sampled image, less than described predetermined threshold value, carries out image enhaucament to described M down-sampled image
Processing, described M is the natural number less than described N.
Alternatively, described acquisition module 4021 specifically for:
Use at least one picture appraisal index respectively described N number of down-sampled image to be carried out image quality evaluation, obtain
Described N number of image quality evaluation values.
Alternatively, the server as described in Fig. 4 c, Fig. 4 a may also include that compression unit 405, specific as follows:
Compression unit 405, for the described target image obtained by described acquiring unit 401 at described conversion unit 402
It is converted into after the different N of the resolution corresponding from described target image opens image, described N is opened image and is compressed processing,
Obtain described N and open compression image;
Described transmitting element 403 specifically for:
Determine that described N opens the image mated with described target resolution in compression image, and this image is sent to
Described terminal.
Alternatively, this image is sent to described terminal by above-mentioned transmitting element 404, including:
This image is encrypted, obtains encrypted image;Described encrypted image is sent to described terminal.
Alternatively, above-mentioned transmitting element 404 specifically for:
Determine that described N opens an image that resolution corresponding immediate with described target resolution in image, and will
This image is sent to described terminal;
Or,
If it is determined that described N opens there is not the image mated with described target resolution in image, by described target
Image is converted into the image corresponding with described target resolution, and the image corresponding with described target resolution is sent to end
End.
It can be seen that target image can be obtained by the terminal described by the embodiment of the present invention, target image is converted into
The N that the resolution corresponding from this target image is different opens image, and wherein, N is positive integer, and what reception terminal sent is used for downloading mesh
The download request of logo image, downloads in request and comprises target resolution, determine that N opens mated with target resolution in image
Image, and this image is sent to terminal.Thus, can download to meet the image of user's request from server, user can be strengthened
Experience sense.
Refer to Fig. 5, for the second example structure schematic diagram of a kind of server that the embodiment of the present invention provides.This enforcement
Server described in example, including: at least one input equipment 1000;At least one outut device 2000;At at least one
Reason device 3000, such as CPU;With memorizer 4000, above-mentioned input equipment 1000, outut device 2000, processor 3000 and storage
Device 4000 is connected by bus 5000.
Wherein, above-mentioned input equipment 1000 concretely contact panel, physical button or mouse.
Above-mentioned outut device 2000 concretely display screen.
Above-mentioned memorizer 4000 can be high-speed RAM memorizer, it is possible to for nonvolatile storage (non-volatile
Memory), such as disk memory.Above-mentioned memorizer 4000 is used for storing batch processing code, above-mentioned input equipment 1000, defeated
Go out equipment 2000 and processor 3000 for calling in memorizer 4000 program code of storage, perform following operation:
Above-mentioned processor 3000, is used for:
Obtain target image;
The N that described target image is converted into the resolution corresponding from described target image different opens image, wherein, described
N is positive integer;
Receive the download request for downloading described target image that terminal sends, described download request comprises target and divides
Resolution;
Determine that described N opens the image mated with described target resolution in image, and this image is sent to described
Terminal.
Alternatively, described target image is converted into the resolution corresponding with described target image not by above-mentioned processor 3000
Same N opens image, including:
Obtain N number of resolution;
According to each resolution in described N number of resolution, described target image is carried out down-sampled process, obtain described N number of
Down-sampled image;
Obtain the image quality evaluation values of described N number of down-sampled image;
Judge that whether the image quality evaluation values of described N number of down-sampled image is more than predetermined threshold value;
If the image quality evaluation values of described N number of down-sampled image exists the image quality evaluation of M down-sampled image
Value, less than or equal to described predetermined threshold value, carries out image enhancement processing to described M down-sampled image.
Alternatively, above-mentioned processor 3000 obtains the image quality evaluation values of described N number of down-sampled image, including:
Use at least one picture appraisal index respectively described N number of down-sampled image to be carried out image quality evaluation, obtain
Described N number of image quality evaluation values.
Alternatively, described target image is converted into the resolution corresponding with described target image not by above-mentioned processor 3000
After same N opens image, also particularly useful for:
Described N opens image be compressed processing, obtain described N and open compression image;
Described determine that described N opens the image mated with described target resolution in image, and this image is sent to
Described terminal, including:
Determine that described N opens the image mated with described target resolution in compression image, and this image is sent to
Described terminal.
Alternatively, this image is sent to described terminal by above-mentioned processor 3000, including:
This image is encrypted, obtains encrypted image;
Described encrypted image is sent to described terminal.
Alternatively, above-mentioned processor 3000 determines that described N opens the image mated in image with described target resolution,
And this image is sent to described terminal, including:
Determine that described N opens an image that resolution corresponding immediate with described target resolution in image, and will
This image is sent to described terminal;
Or,
If it is determined that described N opens there is not the image mated with described target resolution in image, by described target
Image is converted into the image corresponding with described target resolution, and the image corresponding with described target resolution is sent to end
End.
The embodiment of the present invention also provides for a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can store journey
Sequence, this program includes the part or all of step of any image downloading method described in said method embodiment when performing
Suddenly.
Although combine each embodiment invention has been described at this, but, implementing the present invention for required protection
During, those skilled in the art are by checking described accompanying drawing, disclosure and appended claims, it will be appreciated that and real
Other changes of existing described open embodiment.In the claims, " include " that (comprising) word is not excluded for other compositions
Part or step, "a" or "an" is not excluded for multiple situations.Single processor or other unit can realize claim
In some functions enumerating.Mutually different has been recited in mutually different dependent some measure, it is not intended that these are arranged
Executing to combine produces good effect.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment) or computer journey
Sequence product.Therefore, in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware
The form of embodiment.And, the present invention can use in one or more calculating wherein including computer usable program code
The upper computer program implemented of machine usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.)
The form of product.Computer program is stored/distributed in suitable medium, provides or as the one of hardware together with other hardware
Part, it would however also be possible to employ other distribution forms, as by Internet or other wired or wireless telecommunication system.
The present invention be with reference to the method for the embodiment of the present invention, device (equipment) and computer program flow chart with/
Or block diagram describes.It should be understood that can by each flow process in computer program instructions flowchart and/or block diagram and/
Or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided
To the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce one
Individual machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing
The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to
Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter
Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or
The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one
The step of the function specified in individual square frame or multiple square frame.
Although in conjunction with specific features and embodiment, invention has been described, it is clear that, without departing from this
In the case of bright spirit and scope, it can be carried out various amendment and combination.Correspondingly, the specification and drawings is only institute
The exemplary illustration of the present invention that attached claim is defined, and be considered as covering arbitrarily repairing in the scope of the invention with all
Change, change, combine or equivalent.Obviously, those skilled in the art the present invention can be carried out various change and modification and not
Depart from the spirit and scope of the present invention.So, if the present invention these amendment and modification belong to the claims in the present invention and
Within the scope of equivalent technologies, then the present invention is also intended to comprise these change and modification.
Claims (13)
1. an image downloading method, it is characterised in that including:
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;
Receive the download request for downloading described target image that terminal sends, described download request comprises target and differentiates
Rate;
Determine that described N opens the image mated with described target resolution in image, and this image is sent to described terminal.
Method the most according to claim 1, it is characterised in that described described target image is converted into and described target figure
The N different as corresponding resolution opens image, including:
Obtain N number of resolution;
According to each resolution in described N number of resolution, described target image is carried out down-sampled process, obtain described N number of fall and adopt
Sampled images;
Obtain the image quality evaluation values of described N number of down-sampled image;
Judge that whether the image quality evaluation values of described N number of down-sampled image is more than predetermined threshold value;
If the image quality evaluation values that there is M down-sampled image in the image quality evaluation values of described N number of down-sampled image is little
In or equal to described predetermined threshold value, described M down-sampled image is carried out image enhancement processing, described M be less than described N from
So number.
Method the most according to claim 2, it is characterised in that the picture quality of the described N number of down-sampled image of described acquisition
Evaluation of estimate, including:
Use at least one picture appraisal index respectively described N number of down-sampled image to be carried out image quality evaluation, obtain described N
Individual image quality evaluation values.
4. according to the method described in any one of claims 1 to 3, it is characterised in that described described target image is converted into
After the N that resolution that described target image is corresponding is different opens image, described method also includes:
Described N opens image be compressed processing, obtain described N and open compression image;
Described determine that described N opens the image mated with described target resolution in image, and this image is sent to described
Terminal, including:
Determine that described N opens the image mated with described target resolution in compression image, and this image is sent to described
Terminal.
5. according to the method described in any one of claims 1 to 3, it is characterised in that described this image is sent to described terminal,
Including:
This image is encrypted, obtains encrypted image;
Described encrypted image is sent to described terminal.
6. according to the method described in any one of claims 1 to 3, it is characterised in that described determine that described N opens in image with described
One image of target resolution coupling, and this image is sent to described terminal, including:
Determine that described N opens an image that resolution corresponding immediate with described target resolution in image, and by this figure
As being sent to described terminal;
Or,
If it is determined that described N opens there is not the image mated with described target resolution in image, by described target image
It is converted into the image corresponding with described target resolution, and the image corresponding with described target resolution is sent to terminal.
7. a server, it is characterised in that including:
Acquiring unit, is used for obtaining target image;
Conversion unit, the described target image for being obtained by described acquiring unit is converted into divide corresponding with described target image
The N that resolution is different opens image, and wherein, described N is positive integer;
Receive unit, for receiving the download request for downloading described target image that terminal sends, in described download request
Comprise target resolution;
Transmitting element, for determining that described N opens the image mated in image with described target resolution, and sends out this image
Give described terminal.
Server the most according to claim 7, it is characterised in that described conversion unit includes:
Acquisition module, is used for obtaining N number of resolution;
Processing module, for described target image being carried out down-sampled process according to each resolution in described N number of resolution,
To described N number of down-sampled image;
Described acquisition module, is additionally operable to:
Obtain the image quality evaluation values of described N number of down-sampled image;
Judge module, for judging that whether the image quality evaluation values of described N number of down-sampled image is more than predetermined threshold value;
Described processing module, is additionally operable to:
If there is M fall in the image quality evaluation values that the judged result of described judge module is described N number of down-sampled image to adopt
The image quality evaluation values of sampled images is less than or equal to described predetermined threshold value, and described M down-sampled image is carried out image enhaucament
Processing, described M is the natural number less than described N.
Server the most according to claim 8, it is characterised in that described acquisition module specifically for:
Use at least one picture appraisal index respectively described N number of down-sampled image to be carried out image quality evaluation, obtain described N
Individual image quality evaluation values.
10. according to the server described in any one of claim 7 to 9, it is characterised in that described server also includes:
Compression unit, is converted into and described mesh for the described target image obtained by described acquiring unit at described conversion unit
After the N that resolution corresponding to logo image is different opens image, described N is opened image and is compressed processing, obtain described N and open compression
Image;
Described transmitting element specifically for:
Determine that described N opens the image mated with described target resolution in compression image, and this image is sent to described
Terminal.
11. according to the server described in any one of claim 7 to 9, it is characterised in that this image is sent by described transmitting element
To described terminal, including:
This image is encrypted, obtains encrypted image;Described encrypted image is sent to described terminal.
12. according to the server described in any one of claim 7 to 9, it is characterised in that described transmitting element specifically for:
Determine that described N opens an image that resolution corresponding immediate with described target resolution in image, and by this figure
As being sent to described terminal;
Or,
If it is determined that described N opens there is not the image mated with described target resolution in image, by described target image
It is converted into the image corresponding with described target resolution, and the image corresponding with described target resolution is sent to terminal.
13. 1 kinds of servers, it is characterised in that including:
Processor and memorizer;Wherein, described processor is by calling the code in described memorizer or instruction to perform such as power
Profit requires the method described in 1 to 6 any one.
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)
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 |
-
2016
- 2016-08-03 CN CN201610632933.1A patent/CN106210401A/en active Pending
Patent Citations (9)
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 | |
CN110266682B (en) | Data encryption method and device, mobile terminal and decryption method | |
CN111950056B (en) | BIM display method and related equipment for building informatization model | |
CN111105337B (en) | Watermark processing method, information display method and related device | |
CN110399511A (en) | Image cache method, equipment, storage medium and device based on Redis | |
CN110634096B (en) | Self-adaptive multi-mode information hiding method and device | |
CN114445302A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
CN109615620A (en) | The recognition methods of compression of images degree, device, equipment and computer readable storage medium | |
Budiman et al. | White space steganography on text by using lzw-huffman double compression | |
CN110751251B (en) | Method and device for generating and transforming two-dimensional code image matrix | |
CN111489289B (en) | Image processing method, image processing device and terminal equipment | |
CN108256360A (en) | The display methods and terminal of a kind of sensitive information | |
US20190252431A1 (en) | Image processing apparatus and image processing method | |
CN106210401A (en) | A kind of image downloading method and server | |
CN109657487B (en) | Image processing method, image verification method and device | |
CN106161021B (en) | Private data sending method and device and private data receiving method and device | |
CN115953597B (en) | Image processing method, device, equipment and medium | |
Por et al. | StegCure: a comprehensive steganographic tool using enhanced LSB scheme | |
CN115361376A (en) | Government affair file uploading method and device, electronic equipment and storage medium | |
CN112788338B (en) | Image compression and decompression method, equipment, device and storage medium | |
CN107302659A (en) | A kind of data compression method for network transmission | |
CN114048349A (en) | Method and device for recommending video cover and electronic equipment | |
CN110378140B (en) | Method, device and system for verifying attribution of deep neural network model | |
JP2006235688A (en) | Program obfuscation device and method and program thereof | |
CN110930333A (en) | Image restoration method and device, electronic equipment and computer-readable storage medium |
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 |