CN103699566B - A kind of picture cuts map device and method in real time - Google Patents

A kind of picture cuts map device and method in real time Download PDF

Info

Publication number
CN103699566B
CN103699566B CN201310534397.8A CN201310534397A CN103699566B CN 103699566 B CN103699566 B CN 103699566B CN 201310534397 A CN201310534397 A CN 201310534397A CN 103699566 B CN103699566 B CN 103699566B
Authority
CN
China
Prior art keywords
thumbnail
picture
request
network server
server
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.)
Active
Application number
CN201310534397.8A
Other languages
Chinese (zh)
Other versions
CN103699566A (en
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310534397.8A priority Critical patent/CN103699566B/en
Publication of CN103699566A publication Critical patent/CN103699566A/en
Application granted granted Critical
Publication of CN103699566B publication Critical patent/CN103699566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23113Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving housekeeping operations for stored content, e.g. prioritizing content for deletion because of storage space restrictions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • H04N21/2326Scheduling disk or memory reading operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints

Abstract

The invention discloses a kind of pictures to cut map device and method in real time, including:Network server transfers the request of the thumbnail of picture suitable for reception requesting party and sends required thumbnail to requesting party according to the request;Distributed real-time processing module suitable for the request for the thumbnail for transferring picture transmitted according to network server, handles picture and generates required thumbnail, return to network server;Information comprising the picture and the information of required thumbnail in wherein described request.The inapplicable picture storage server cluster of the present invention, after picture processing server cluster handles picture and without storage, directly issues network server and is cached at network server, so as to reduce the consumption of machine;The present invention can just generate thumbnail due in need, solve the problems, such as that pre-generatmg, thumbnail dimensions can not arbitrarily change, waste memory space and service cpu resource;Entire process flow is shorter, more simple in logic.

Description

A kind of picture cuts map device and method in real time
Technical field
The present invention relates to computer picture Processing Techniques, and in particular to a kind of picture cuts map device and method in real time.
Background technology
With the fast development of computer networking technology, more and more pictures need the online preview on network.It is existing It,, on the server all can pre-generatmg no matter whether the thumbnail of the picture can be browsed after user uploads picture in technology The thumbnail of the picture of required size.In this case, there is many problems:First, may not be seen due to user or No matter under any circumstance person only sees the thumbnail of part size, but, and server-side all can be according to using needs, size needed for generation Thumbnail stored, thus waste many memory spaces.Second, since picture thumbnail cutting is a CPU intensive The application of type, in some application scenarios, user will not check the thumbnail of all generations, so as to cause network server CPU The serious waste of resource in high-load situations, this, also affects the normal experience of user, causes thumbnail that cannot give birth in time Into.Third since picture resource is pre-generatmg, when needing to increase the thumbnail of new size, can lead to the contracting for newly adding size It can not be generated in the sketch map short time, real-time is poor, seriously affects user experience.
Based on above many reasons, user to picture to cut figure demand in real time increasing.
Invention content
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least partly The picture for stating problem cuts map device and method in real time.
One side according to the present invention provides a kind of picture and cuts map device in real time, including:Network server and point Cloth real-time processing module, the network server are transferred the request of the thumbnail of picture suitable for reception requesting party and are transmitted Required thumbnail is sent to requesting party to the distributed real-time processing module and according to the request;The distribution Real-time processing module is suitable for the request for the thumbnail for transferring picture transmitted according to the network server, and picture is handled And thumbnail needed for generating, return to the network server;Information comprising the picture and institute in wherein described request Need the information of thumbnail.
Optionally, in the above device of the present invention, the network server includes:Receiving unit receives requesting party Transfer the request of the thumbnail of picture;Buffer unit caches the thumbnail of picture;Detection unit is detected in buffer unit Whether required thumbnail is stored with;Transmitting element sends required thumbnail to requesting party;Wherein, when detection unit detects Needed for being stored with into buffer unit during thumbnail, which is sent to requesting party by transmitting element;Work as detection unit Needed for being not detected in buffer unit during thumbnail, receiving unit is by the thumbnail for transferring picture of received request side Request sends the distributed real-time processing module to.
Optionally, in the above device of the present invention, required thumbnail is cached a predetermined time by the buffer unit, when Thumbnail caching is more than the predetermined time, then the thumbnail is deleted from the buffer unit.
Optionally, in the above device of the present invention, the distribution real-time processing module includes:Task scheduling center is single Member receives the request of the thumbnail for transferring picture of requesting party that network server transmission comes, and the request is written message In queue;Picture processing server cluster unit, including multiple picture processing servers, the multiple picture processing server In a picture processing server pull message from the message queue of the task scheduling center cell, according to what is pulled Message handles picture and generates required thumbnail, and the thumbnail is returned to the task scheduling center.
One side according to the present invention provides a kind of picture and cuts drawing method in real time, including:Picture is transferred in reception The information of the request of thumbnail, the information of the request comprising the picture and required thumbnail;According to the request detection whether It is cached with required thumbnail;If being cached with required thumbnail, the required thumbnail of caching is sent to requesting party;Otherwise will The request sends a picture processing server in picture processing server cluster to, by the picture processing server according to this Request handles the picture and generates required thumbnail, will be sent to by the required thumbnail that picture processing server generates Requesting party.
Optionally, it is described to communicate the request in picture processing server cluster in the above method of the present invention One picture processing server step includes:It will be in the message queue of request write-in task scheduling;Picture processing server collection A picture processor in group pulls message from the message queue of the task scheduling.
Optionally, in the above method of the present invention, in the required thumbnail that will be generated by picture processing server It is further included before the step of sending requesting party to:Cache the required thumbnail generated.
Optionally, in the above method of the present invention, described the step of caching the required thumbnail generated, includes:Caching The required thumbnail predetermined time generated;And judge whether the required thumbnail caching is more than the predetermined time, if so, Then delete the thumbnail.
The picture of the present invention cuts map device and its method in real time can just generate thumbnail when there is request, and it is empty to save storage Between and cpu resource, and the thumbnail of size needed for being obtained according to the request of user, entire process flow is shorter, It is more simple in logic.In addition, the present invention does not use picture storage server cluster, picture processing server cluster to picture into After row processing and without storage, directly issue network server and cached at network server, so as to reduce The consumption of machine.Therefore, the present invention, which has, makes full use of memory space, makes full use of cpu resource, in time generation thumbnail and reality The characteristics of when property is good.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field Technical staff will become clear.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the mode that a kind of thumbnail to picture of the prior art is handled;
Fig. 2 and Fig. 3 show the modes that another kind of the prior art handles the thumbnail of picture;
A kind of picture that Fig. 4 shows according to the embodiment of the present invention cuts the structure diagram of map device in real time;
A kind of picture that Fig. 5 shows according to the embodiment of the present invention cuts the flow chart of drawing method in real time;
Fig. 6 show be cached with needed for picture of the invention in the case of thumbnail cut one embodiment of drawing method in real time Flow diagram;
Fig. 7 shows that picture of the invention in the case of the required thumbnail not cached cuts a reality of drawing method in real time Apply the flow diagram of example;
Fig. 8 shows the place of the thumbnail needed for generation in the case of the required thumbnail of no caching of the present invention Manage the example of flow.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Fig. 1 shows a kind of realization method of the online preview of picture of the prior art, uses network server and surpasses Expanding library, that is, GD libraries of Text Pretreatment language PHP (Hypertext Preprocessor) and PHP processing figures or net Network server and PHP and image processing software imagemagick are in an asynchronous manner to being uploaded to the picture of network server It is handled, to obtain the thumbnail of corresponding picture.As shown in Figure 1, the picture for being uploaded to network server, when When user wants to browse the thumbnail of the picture, browser can be sent out through picture thumbnail address (being usually the form of HTTP) And the request of picture thumbnail is pulled, network server judges whether to be stored with the thumbnail of the picture according to the request, if No, then the picture is handled an acquiescence picture returning to browser;If the figure is stored in network server The thumbnail of the picture is then directly returned to browser by the thumbnail of piece.The figure processing mode of cutting of this picture thumbnail exists In the case of big concurrent high access, handle not come since server-side is excessive to the workload of picture progress thumbnail processing, Load is caused rapidly to rise, final snowslide, system cannot respond to.In addition, even if the thumbnail due to picture is not browsed, It is generated, and is pre-stored in network server, and picture processing is the application of a CPU intensive type, therefore wastes CPU Resource wastes memory space.
Fig. 2 and Fig. 3 show the realization methods of the online preview of another picture of the prior art, use network service Expanding library, that is, GD the libraries or network server of device and PHP and PHP processing figure and PHP and image processing software Imagemagick is in an asynchronous manner handled picture, to obtain the thumbnail of corresponding picture.
For being uploaded to the picture of network server, when user wants to browse the thumbnail of the picture, browser can be sent out Go out the request that picture thumbnail is pulled by picture thumbnail address, network server judges whether to be stored with according to the request The thumbnail of the picture, when the thumbnail that the picture is had existed in network server, network server can be by the picture Thumbnail returns to the browser for sending out request, as shown in Figure 2;When the thumbnail that picture is not cached in network server (i.e. the thumbnail of the picture was not requested, so being not cached in network server), network server is according to browser It asks to create thumbnail for the picture, such as network server sends the message for creating picture thumbnail or instructs to cgi- Server (CGI servers), using cgi-server, (it can reside in network server can also be independently of network service Device) thumbnail of picture is obtained, and by the thumbnail storage in picture storage server.If in the browse request picture Thumbnail when the picture it is processed and by its thumbnail storage if picture storage server, as shown in figure 3, network Server obtains the thumbnail of the picture according to the request of browser from picture storage server and is cached in local, then should The thumbnail of picture returns to browser, is shown to user.And when picture thumbnail has not been obtained from picture storage server, figure Piece storage server can return to message and inform that picture thumbnail is not present, and be created by cgi-server according to the request of browser side It builds a picture thumbnail and is stored in picture storage server, browser next in this way is obtained with figure when asking again Piece thumbnail.This asynchronous processing mode before the request of browser side pulls picture thumbnail due to having generated picture Thumbnail simultaneously stores, so the defects of equally existing waste memory space and waste cpu resource, in addition, when required thumbnail Size or tailoring rule when changing, when calling will can not get thumbnail, therefore also lack there are real-time is poor It falls into.
The embodiment of the present invention is described in detail with reference to Fig. 4 and Fig. 5.
Fig. 4 shows that a kind of picture of embodiment according to the present invention cuts the structure chart of map device 400 in real time.Picture is real When cut map device 400 and include network server 420 and distributed real-time processing module 430.
Network server 420 is transferred the request of the thumbnail of picture suitable for reception requesting party and is transferred to distributed real When processing module 430 and requesting party to is sent required thumbnail according to the request, wherein the request bag contains the picture Information and required thumbnail information.The address of the information of the picture including picture, cryptographic Hash of picture etc. can look for To the information of the picture;The information of required thumbnail includes the size of required thumbnail, form (such as the forms such as JPG, GIF) Deng.Here, network server 420 can be realized by HTTP and Reverse Proxy, such as be realized by Nginx.Nginx (" engine x ") is a high performance HTTP and Reverse Proxy and an IMAP/POP3/SMTP agency service Device.
The request for the thumbnail for transferring picture that distributed real-time processing module 430 is transmitted according to network server 420, it is right Picture is handled and generates required thumbnail, returns to network server 420.Here, distributed real-time processing module 430 GraphicsMagick such as may be used to handle picture, according to size of required thumbnail included in the request etc. Information cuts the picture and obtains required thumbnail.Wherein GraphicsMagick is a photo handling software increased income.
As described above, the picture of the present invention cuts map device 400 by using network server, distributed processing in real time in real time The distributed immediate processing mode and GraphicsMagick of module 430 can realize the real-time sanction that thumbnail is carried out to picture It cuts.Concrete implementation process is as follows:
When the thumbnail of picture is transferred in the request of client 410, network server 420 can be sent a request to, it please at this The information such as the information comprising the picture to be asked and the size of thumbnail of needs in asking.Network server 420, which receives, to be come From the request of client 410, distributed real-time processing module 430 can be communicated the request to.Distributed real-time processing module 430 According to the request received, picture is handled and generates required thumbnail, returns to network server 420.Network service Device 420 sends required thumbnail to client 410 according to the request of client 410.
Further, network server 420 can include receiving unit 421, detection unit 422,423 and of buffer unit Transmitting element 424.
Wherein, receiving unit 421 receives the request that requesting party transfers the thumbnail of picture, for example, it is received from client Transfer the request of the thumbnail of picture in end 410.
Buffer unit 423 is suitable for the required thumbnail of caching picture, such as it can have store function by buffer etc. Component realize.The thumbnail of obtained picture is cached by buffer unit 423, and next user asks the contracting of the picture During sketch map, if the thumbnail meets the requirement of user, can directly it be transferred from buffer unit 423.Optionally, caching is single Required thumbnail is cached a predetermined time by member 423, and when thumbnail caching is more than the predetermined time, then the thumbnail is postponed It is deleted in memory cell 423, because if the thumbnail is not used for a long time, then illustrates that the utilization rate of this picture is not high, therefore It can be deleted to occupy spatial cache, be buffered in addition, usually having a large amount of thumbnail, in order to discharge in time Spatial cache, it is also desirable to periodically handle buffer unit 423.
Detection unit 422 is adapted to detect for whether being stored with required thumbnail in buffer unit 423.When detection unit 422 is examined When measuring thumbnail needed for being stored in buffer unit 423, which is sent to requesting party's (example by transmitting element 424 Such as client 410).When thumbnail needed for detection unit 422 is not detected in buffer unit 423, receiving unit 421 is by institute The request of the thumbnail for transferring picture of the requesting party of reception sends the distributed real-time processing module 430 to.
Distributed real-time processing module 430 can include task scheduling center cell 431 and picture processing server cluster Unit 432.Task scheduling center cell 431 receives the thumbnail for transferring picture of requesting party that the transmission of network server 420 comes Request, will the request be written message queue in.Picture processing server cluster unit 432 includes the processing service of multiple pictures Device.A picture processing server in the multiple picture processing server is from the message team of task scheduling center cell 431 Message is pulled in row, according to the message pulled, picture is handled and generates required thumbnail, then by the thumbnail with The form of message returns to task scheduling center 431.The thumbnail is returned to network server 420 by task scheduling center 431, Network server 420 is returned to client 410 again.Here, it is pulled from the message queue of task scheduling center cell 431 The picture processing server of message is idle picture processing server, when the picture processing server for having multiple free time is from task When pulling message in the message queue of control centre's unit 431, message is obtained by the picture processing server first pulled.
A kind of picture that Fig. 5 shows according to the embodiment of the present invention cuts the flow chart of drawing method in real time.Such as Fig. 5 institutes Show, picture of the invention cuts drawing method 500 and starts from step 510 in real time, and in step 510, asking for the thumbnail of picture is transferred in reception It asks, the information of the information of the request comprising the picture and required thumbnail.The step is mainly performed by network server, The network server can for example be realized by Nginx.After picture is uploaded to network server, user is in browser side When browsing the thumbnail of the picture, the request for the thumbnail for pulling picture can be sent by browser to network server.
Next, in step 520, whether required thumbnail is cached with according to above-mentioned request detection.If the breviary of picture Figure was once requested, then network server is it is possible that the thumbnail of the picture can be cached with, due to the picture thumbnail of caching A predetermined time is usually only buffered, so, even if once generating the thumbnail of the picture, it is also possible to because the time is too long And it is deleted.When network server is detected, can according to included in the request size of thumbnail etc. requirement into Row detection, if the size of required thumbnail is different from the thumbnail of the picture cached, then the figure cached The thumbnail of piece can not be used, and the result of detection will be that required thumbnail is not present.
If detection is cached with required thumbnail, 530 are entered step, sends the required thumbnail of caching to request Side.As shown in fig. 6, picture of the invention in the case of it illustrates thumbnail needed for being cached with cuts a reality of drawing method in real time The flow diagram of example is applied, wherein detection is cached with required thumbnail and the caching is not out of date, then by the picture breviary of caching Figure is back to browser.
If detection the result is that the required thumbnail not cached, enters step 540, send the request to figure A picture processing server in piece processing server cluster, by the picture processing server according to the request to the picture It is handled, thumbnail needed for generation.Here, picture processing server cluster includes multiple picture processing servers, when any One picture processing server can go to pull message in message queue in its free time, then according in the message Request handles picture, when going to pull message simultaneously there are multiple picture processing servers, can distribute to and pull at first Picture processing server.Next, in step 550, it please by being sent to by the required thumbnail that picture processing server generates The side of asking.As shown in fig. 7, picture of the invention in the case of which show the required thumbnail of no caching cuts drawing method in real time The flow diagram of one embodiment, wherein network server detect the picture thumbnail not cached, and then send out calling The request that picture is cut to picture processing server, picture processing server the picture is cut according to the call request and Required thumbnail is obtained, and the required thumbnail is returned into network server, network server transmits the required thumbnail To the browser of request.
In addition, in the case of the required thumbnail of no caching, it is described to communicate the request to picture processing server A picture processing server step in cluster may include steps of:The request is written to the message team of task scheduling It arranges in (such as task scheduling server can be deposited in), a picture processor in picture processing server cluster is from described Message is pulled in the message queue of task scheduling.As shown in figure 8, it is not being cached it illustrates according to an embodiment of the invention Required thumbnail in the case of generation needed for thumbnail process flow an example.In fig. 8, the request is written into In the message queue of task control centre, later, a picture processing server in picture processing server cluster is from institute It states in the message queue of task scheduling and pulls message.Then, it is wrapped by the picture processing server according in the message pulled The request contained handles the picture and generates required thumbnail, later by the required thumbnail generated for example with message Form returns to task scheduling center, and required thumbnail is returned to called side, i.e. network server, net by task scheduling center Network server sends requesting party to again, that is, asks the browser of the thumbnail of picture.
In addition, before described the step of sending the required thumbnail generated by picture processing server to requesting party also It can include step:Cache the required thumbnail generated.Optionally, the required thumbnail generated can be buffered pre- timing Between, when the thumbnail was buffered more than the predetermined time, delete the thumbnail.For example, optionally, which can set It is set to the predetermined time that the thumbnail time called for the first time starts.Optionally, the predetermined time can be set as from The predetermined time that the thumbnail last time called time starts.The method of the present invention can be incited somebody to action by above-mentioned steps The thumbnail generated caches a predetermined time, thus within the predetermined time, without all being generated when picture is called every time The thumbnail of the picture.If the predetermined time is set as the pre- timing since the thumbnail last time called time Between, then when the number that picture is called is frequent, can make the thumbnail of the picture during the picture is called frequently and it Without generating again in predetermined time afterwards.In this way, the efficiency that picture is called can be improved, picture processing clothes can also be reduced The workload of business device.If in addition, the thumbnail is not used for a long time, illustrate that the utilization rate of this picture is not high, therefore can Spatial cache is occupied to be deleted.It is buffered in addition, usually having a large amount of thumbnail, it is slow in order to discharge in time Deposit space, it is also desirable to periodically buffered picture be handled.
Map device and its method are cut in real time using the picture of the present invention, since (i.e. user wants browsing pictures whenever necessary Thumbnail when) can just generate thumbnail, so solve it is in the prior art waste memory space, waste cpu resource, The problem of can not arbitrarily changing with thumbnail dimensions.Moreover, entire process flow is shorter, it is more simple in logic.It is in addition, existing Technology generally use picture storage server cluster-based storage picture, and the present invention does not use picture storage server cluster, but After being handled using picture processing server cluster picture and without storage, network server is directly issued and in net It is cached at network server, so as to reduce the consumption of machine, therefore the present invention has and makes full use of memory space, fully profit With cpu resource, the characteristics of thumbnail and real-time are good is generated in time.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification provided in this place, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power Profit requirement, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization or to be run on one or more processor Software module realize or realized with combination thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) come realize in browser client according to embodiments of the present invention some or The some or all functions of person's whole component.The present invention is also implemented as perform method as described herein one Divide either whole equipment or program of device (for example, computer program and computer program product).Such this hair of realization Bright program can may be stored on the computer-readable medium or can have the form of one or more signal.It is such Signal can be downloaded from internet website to be obtained either providing on carrier signal or providing in the form of any other.
It should be noted that the present invention will be described rather than limits the invention, and ability for above-described embodiment Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and run after fame Claim.

Claims (4)

1. a kind of picture cuts map device in real time, including:Network server and distributed real-time processing module,
The network server transfers the request of the thumbnail of picture suitable for reception requesting party and is transferred to the distribution Real-time processing module and requesting party to is sent required thumbnail according to the request;
The distribution real-time processing module is suitable for the request for the thumbnail for transferring picture transmitted according to the network server, Picture is handled and generates required thumbnail, returns to the network server;
Wherein, the information comprising the picture and the information of required thumbnail in the request;
Wherein, the distributed real-time processing module includes:
Task scheduling center cell receives the request of the thumbnail for transferring picture of requesting party that network server transmission comes, And the request is written in message queue;
Picture processing server cluster unit, including multiple picture processing servers, in the multiple picture processing server A picture processing server pull message from the message queue of the task scheduling center cell, disappeared according to what is pulled Breath, handles picture and generates required thumbnail, and the thumbnail is returned to the task scheduling center.
2. the apparatus according to claim 1, wherein,
The network server includes:
Receiving unit receives the request that requesting party transfers the thumbnail of picture;
Buffer unit caches the thumbnail of picture;
Detection unit detects in buffer unit whether be stored with required thumbnail;
Transmitting element sends required thumbnail to requesting party;
Wherein, when thumbnail needed for detection unit is detected and is stored in buffer unit, transmitting element is by the required thumbnail It is sent to requesting party;When required thumbnail is not detected in detection unit in buffer unit, receiving unit please by what is received The request of the thumbnail for transferring picture for the side of asking sends the distributed real-time processing module to.
3. the apparatus of claim 2, wherein,
Required thumbnail is cached a predetermined time by the buffer unit, is more than the predetermined time when the thumbnail caches, then should Thumbnail is deleted from the buffer unit.
4. device according to any one of claim 1-3, wherein,
The network server is realized by HTTP and Reverse Proxy.
CN201310534397.8A 2013-11-01 2013-11-01 A kind of picture cuts map device and method in real time Active CN103699566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310534397.8A CN103699566B (en) 2013-11-01 2013-11-01 A kind of picture cuts map device and method in real time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310534397.8A CN103699566B (en) 2013-11-01 2013-11-01 A kind of picture cuts map device and method in real time

Publications (2)

Publication Number Publication Date
CN103699566A CN103699566A (en) 2014-04-02
CN103699566B true CN103699566B (en) 2018-07-10

Family

ID=50361094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310534397.8A Active CN103699566B (en) 2013-11-01 2013-11-01 A kind of picture cuts map device and method in real time

Country Status (1)

Country Link
CN (1) CN103699566B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897500A (en) * 2015-12-09 2016-08-24 乐视网信息技术(北京)股份有限公司 Picture processing method and device
CN105512329A (en) * 2015-12-24 2016-04-20 上海携程商务有限公司 GO-language-based dynamic figure cutting system
CN105610979B (en) * 2016-02-23 2021-01-05 山东乾云启创信息科技股份有限公司 Network resource transmission system and method based on virtualization technology
CN106331764A (en) * 2016-09-14 2017-01-11 乐视控股(北京)有限公司 Panoramic video sharing method and panoramic video sharing device
CN107679063B (en) * 2017-07-31 2020-05-22 平安科技(深圳)有限公司 Picture display method, server and computer-readable storage medium
CN108933814A (en) * 2018-05-31 2018-12-04 康键信息技术(深圳)有限公司 electronic device, image processing method and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812548A (en) * 2004-11-24 2006-08-02 索尼株式会社 Recorder and method therefor, player and method therefor, program, and recording medium
CN101167047A (en) * 2005-04-22 2008-04-23 微软公司 Local thumbnail cache
CN102682026A (en) * 2011-03-16 2012-09-19 腾讯科技(深圳)有限公司 Photo browsing method and client side

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812548A (en) * 2004-11-24 2006-08-02 索尼株式会社 Recorder and method therefor, player and method therefor, program, and recording medium
CN101167047A (en) * 2005-04-22 2008-04-23 微软公司 Local thumbnail cache
CN102682026A (en) * 2011-03-16 2012-09-19 腾讯科技(深圳)有限公司 Photo browsing method and client side

Also Published As

Publication number Publication date
CN103699566A (en) 2014-04-02

Similar Documents

Publication Publication Date Title
CN103699566B (en) A kind of picture cuts map device and method in real time
KR101584828B1 (en) Web-based multiuser collaboration
CN106412137B (en) A kind of file download system and document down loading method
CN110096660B (en) Method and device for loading page pictures and electronic equipment
CN103733568B (en) Method and system for responding to requests through stream processing
CN102789470B (en) The method and apparatus of the picture in loading webpage
CN106506587A (en) A kind of Docker image download methods based on distributed storage
CN107315646B (en) Method and device for controlling data flow between page components
EP2888862B1 (en) Information transmission method, apparatus, and system, terminal, and server
US20180131764A1 (en) Dynamically scaling application components using microservices
EP2044749B1 (en) Dispatching request fragments from a response aggregating surrogate
CN107329963B (en) Method and device for accelerating webpage access
US9584372B2 (en) Discovering resources of a distributed computing environment
JP2009506427A5 (en)
CN109992406B (en) Picture request method, picture request response method and client
CN107870920A (en) Browser resource pulls method and device in advance
US11023558B1 (en) Executing functions on-demand on a server utilizing web browsers
CN109558378A (en) File management method, device, equipment and storage medium
CN106446168A (en) Oriented distribution data warehouse high efficiency load client end realization method
CN109254804A (en) A kind of static resource loading method, device, equipment and readable storage medium storing program for executing
CN105893429A (en) Method and system for optimizing WEB cache
US8738742B2 (en) Tiered XML services in a content management system
WO2009056549A1 (en) Cache management for parallel asynchronous requests in a content delivery system
CN106713460A (en) Version control method and system for flash application
CN109284428A (en) Data processing method, device and 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220801

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.