CN103699566A - Image real-time cutting device and method - Google Patents

Image real-time cutting device and method Download PDF

Info

Publication number
CN103699566A
CN103699566A CN201310534397.8A CN201310534397A CN103699566A CN 103699566 A CN103699566 A CN 103699566A CN 201310534397 A CN201310534397 A CN 201310534397A CN 103699566 A CN103699566 A CN 103699566A
Authority
CN
China
Prior art keywords
thumbnail
picture
request
processing server
image
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.)
Granted
Application number
CN201310534397.8A
Other languages
Chinese (zh)
Other versions
CN103699566B (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

Images

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

Landscapes

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

Abstract

The invention discloses an image real-time cutting device and an image real-time cutting method. The image real-time cutting device comprises a network server and a distributed real-time processing module, wherein the network server is suitable for receiving a request of taking a thumbnail of an image from a requester and transmitting the required thumbnail to the requester according to the request; the distributed real-time processing module is suitable for processing the image and generating the required thumbnail according to the request of taking the thumbnail of the image, which is transmitted by the network server, and returning the required thumbnail to the network server, wherein the request comprises information of the image and information of the required thumbnail. The image real-time cutting device and the image real-time cutting method are unsuitable for an image storage server cluster; an image processing server cluster directly sends the image to the network server after processing the image without storing the image, and caching is carried out at the network server, so that consumption of a machine is reduced; the thumbnail can be generated as required, and thus, the problems of pre-generation, incapability of randomly changing the size of the thumbnail and waste of a storage space and service CPU (Central Processing Unit) resources are solved; the image real-time cutting device and the image real-time cutting method have a shorter integral processing flow and are simpler logically.

Description

A kind of picture is cut map device and method in real time
Technical field
The present invention relates to computing machine picture treatment technology, be specifically related to a kind of picture and cut in real time map device and method.
Background technology
Along with the fast development of computer networking technology, increasing picture need to online preview on network.In prior art, user, by after picture uploading, no matter whether the thumbnail of this picture can be viewed, on server, all can generate in advance the thumbnail of this picture of required size.In this case, exist many problems: the first, because user may not see or only see the partly thumbnail of size, but no matter under any circumstance, service end all can be according to application needs, and the thumbnail that generates required size is stored, thereby has wasted many storage spaces.Second, because picture thumbnail cutting is the application of a CPU intensity, at some application scenarios, user can not check the thumbnail of all generations, thereby caused the serious waste of webserver cpu resource, the in the situation that of high capacity, also affected user's normal experience, cause thumbnail not generate in time.The 3rd, because picture resource is pregenerated, in the time need to increasing the thumbnail of new size, can cause the thumbnail that newly adds size cannot generate in the short time, real-time is poor, has a strong impact on user and experiences.
Based on above many reasons, user is increasing to the figure demand of cutting in real time of picture.
Summary of the invention
In view of the above problems, the present invention has been proposed to provide a kind of picture that overcomes the problems referred to above or address the above problem at least in part to cut in real time map device and method.
According to one aspect of the present invention, provide a kind of picture to cut in real time map device, it comprises: the webserver and distributed real-time processing module, the described webserver be suitable for receiving requesting party transfer picture thumbnail request and sent to described distributed real-time processing module, and send required thumbnail to requesting party according to described request; Described distributed real-time processing module is suitable for, according to the request of the thumbnail of transferring picture of described webserver transmission, required thumbnail is processed and generated to picture, returns to the described webserver; In wherein said request, comprise the information of described picture and the information of required thumbnail.
Alternatively, in said apparatus of the present invention, the described webserver comprises: receiving element, and it receives the request that requesting party transfers the thumbnail of picture; Buffer unit, the thumbnail of its buffer memory picture; Detecting unit, it detects in buffer unit whether store required thumbnail; Transmitting element, it sends required thumbnail to requesting party; Wherein, when detecting unit detects while storing required thumbnail in buffer unit, transmitting element sends to requesting party by this required thumbnail; When detecting unit does not detect required thumbnail in buffer unit, receiving element sends the request of received requesting party's the thumbnail of transferring picture to described distributed real-time processing module.
Alternatively, in said apparatus of the present invention, described buffer unit is by required one schedule time of thumbnail buffer memory, and when this thumbnail buffer memory surpasses this schedule time, this thumbnail is deleted from described buffer unit.
Alternatively, in said apparatus of the present invention, described distributed real-time processing module comprises: task scheduling center cell, and the request of the requesting party's that its reception webserver sends the thumbnail of transferring picture, and this request is write in message queue; Picture processing server cluster unit, it comprises a plurality of picture processing server, a picture processing server in described a plurality of picture processing server pulls message from the message queue of described task scheduling center cell, according to pulled message, required thumbnail is processed and generated to picture, and this thumbnail is returned to described task scheduling center.
According to one aspect of the present invention, provide a kind of picture to cut in real time drawing method, it comprises: receive the request of the thumbnail of transferring picture, the information that described request comprises this picture and the information of required thumbnail; According to this request detection, whether be cached with required thumbnail; If be cached with required thumbnail, send the required thumbnail of buffer memory to requesting party; Otherwise send this request to a picture processing server in picture processing server cluster, by this picture processing server, according to this request, required thumbnail is processed and generated to this picture, send the required thumbnail being generated by picture processing server to requesting party.
Alternatively, in said method of the present invention, the described picture processing server step that this request is sent in picture processing server cluster comprises: this request is write in the message queue of task scheduling; A picture processor in picture processing server cluster pulls message from the message queue of described task scheduling.
Alternatively, in said method of the present invention, before the described step that the required thumbnail being generated by picture processing server is sent to requesting party, also comprise: the required thumbnail that buffer memory generates.
Alternatively, in said method of the present invention, the step of the required thumbnail that described buffer memory generates comprises: the required thumbnail schedule time that buffer memory generates; And judge that whether this required thumbnail buffer memory surpasses this schedule time, if so, deletes this thumbnail.
Map device cut in real time by picture of the present invention and method just can generate thumbnail when having request, storage space and cpu resource have been saved, and can according to user's request, obtain the thumbnail of required size, whole treatment scheme is shorter, more simple in logic.In addition, the present invention does not adopt picture-storage server cluster, and picture processing server cluster is not stored after picture is processed, and directly issues the webserver and carries out buffer memory at webserver place, thereby reduced the consumption of machine.Therefore, the present invention has and makes full use of storage space, makes full use of cpu resource, generates in time thumbnail and the good feature of real-time.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, by identical reference symbol, represent identical parts.In the accompanying drawings:
Fig. 1 shows a kind of mode that the thumbnail of picture is processed of the prior art;
Fig. 2 and Fig. 3 show the mode that another kind of the prior art is processed the thumbnail of picture;
Fig. 4 shows the structural representation that a kind of picture is according to the embodiment of the present invention cut map device in real time;
Fig. 5 shows the process flow diagram that a kind of picture is according to the embodiment of the present invention cut drawing method in real time;
Fig. 6 shows the schematic flow sheet that picture of the present invention in the situation that is cached with required thumbnail is cut an embodiment of drawing method in real time;
Fig. 7 shows the schematic flow sheet that picture of the present invention in the situation of the required thumbnail that there is no buffer memory is cut an embodiment of drawing method in real time;
Fig. 8 show of the present invention one in the situation that do not have the required thumbnail of buffer memory to generate the example of the treatment scheme of required thumbnail.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, yet should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can by the scope of the present disclosure complete convey to those skilled in the art.
Fig. 1 shows the implementation of the online preview of a kind of picture of the prior art, the expanding library of its Adoption Network server and hypertext pre-service language PHP (Hypertext Preprocessor) and PHP processing graphics is that GD storehouse or the webserver and PHP and image processing software imagemagick process being uploaded to the picture of the webserver in asynchronous mode, to obtain the thumbnail of corresponding picture.As shown in Figure 1, for the picture that is uploaded to the webserver, when user wants to browse the thumbnail of this picture, browser can send the request that pulls picture thumbnail by picture thumbnail address (being generally the form of HTTP), the webserver judges whether to store the thumbnail of this picture according to this request, if no, this picture is processed to an acquiescence picture is returned to browser; If store the thumbnail of this picture in the webserver, directly the thumbnail of this picture is returned to browser.This picture thumbnail cut figure processing mode in the situation that of large concurrent high access, because the workload that service end is carried out thumbnail processing to picture is too much processed and do not come over, cause load to be risen rapidly, finally snowslide, system cannot respond.In addition, even because the thumbnail of picture is not viewed, it is also generated, and is pre-stored within the webserver, and picture processing is the application of a CPU intensity, has therefore wasted cpu resource, has also wasted storage space.
Fig. 2 and Fig. 3 show the implementation of the online preview of another kind of picture of the prior art, the expanding library of its Adoption Network server and PHP and PHP processing graphics is that GD storehouse or the webserver and PHP and image processing software imagemagick process picture in asynchronous mode, to obtain the thumbnail of corresponding picture.
For the picture that is uploaded to the webserver, when user wants to browse the thumbnail of this picture, browser can send the request that pulls picture thumbnail by picture thumbnail address, the webserver judges whether to store the thumbnail of this picture according to this request, while there is the thumbnail of this picture in the webserver, the webserver can return to the thumbnail of this picture the browser of the request of sending, as shown in Figure 2; (the not requested mistake of the thumbnail of this picture while not being cached with the thumbnail of picture in the webserver, so be not cached in the webserver), the webserver is this picture establishment thumbnail according to the request of browser, for example the message of webserver transmission establishment picture thumbnail or instruction are to cgi-server (CGI server), utilize cgi-server (it may reside in the webserver also can be independent of the webserver) to obtain the thumbnail of picture, and by this thumbnail storage in picture-storage server.If when the thumbnail of this picture of browse request this picture processed and by its thumbnail storage in picture-storage server, as shown in Figure 3, the webserver obtains the thumbnail of this picture and is cached in this locality from picture-storage server according to the request of browser, again the thumbnail of this picture is returned to browser, be shown to user.And when not obtaining picture thumbnail from picture-storage server, picture-storage server can return messages inform that picture thumbnail does not exist, and create a picture thumbnail and be stored in picture-storage server according to the request of browser side by cgi-server, when asking again, so next browser just can obtain picture thumbnail.This asynchronous processing mode is owing to having generated picture thumbnail storage before pulling picture thumbnail in the request of browser side, so same, there is the defect of waste storage space and waste cpu resource, in addition, when the size of required thumbnail or tailoring rule change, while calling, will get thumbnail, therefore also have the poor defect of real-time.
Below in conjunction with Fig. 4 and Fig. 5, the embodiment of the present invention is described in detail.
Fig. 4 shows the structural drawing of cutting in real time map device 400 according to the picture of one embodiment of the present invention.Picture is cut in real time map device 400 and is comprised the webserver 420 and distributed real-time processing module 430.
The webserver 420 be suitable for receiving requesting party transfer picture thumbnail request and sent to distributed real-time processing module 430, and according to this request, send required thumbnail to requesting party, the information that wherein said request comprises described picture and the information of required thumbnail.The information of described picture comprises the address of picture, the cryptographic hash of picture etc. can find the information of this picture; The information of required thumbnail comprises size, form (forms such as JPG, GIF) of required thumbnail etc.Here, the webserver 420 can be realized by HTTP and Reverse Proxy, for example, by Nginx, realized.Nginx (" engine x ") is a high performance HTTP and Reverse Proxy, is also an IMAP/POP3/SMTP proxy server.
The request of the thumbnail of transferring picture that distributed real-time processing module 430 transmits according to the webserver 420, processes and generates required thumbnail to picture, returns to the webserver 420.Here, distributed real-time processing module 430 for example can adopt GraphicsMagick to process picture, according to the information such as size of the required thumbnail comprising in described request, and picture described in cutting and obtain required thumbnail.Wherein GraphicsMagick is a picture processing software of increasing income.
As mentioned above, picture of the present invention is cut map device 400 in real time by using distributed real-time processing mode and the GraphicsMagick of the webserver, distributed real-time processing module 430 can realize the real-time cutting of picture being carried out to thumbnail.Concrete implementation procedure is as follows:
When the thumbnail of picture is transferred in client 410 requests, it can send request to the webserver 420, the information such as size of the information that comprises the picture that will ask in this request and the thumbnail of needs.The webserver 420 receives the request from client 410, this request can be sent to distributed real-time processing module 430.Required thumbnail is processed and generated to distributed real-time processing module 430, according to received request, to picture, returns to the webserver 420.The webserver 420 sends required thumbnail to client 410 according to the request of client 410.
Further, the webserver 420 can comprise receiving element 421, detecting unit 422, buffer unit 423 and transmitting element 424.
Wherein, receiving element 421 receives the request that requesting party transfers the thumbnail of picture, and for example, it receives the request of transferring the thumbnail of picture from client 410.
Buffer unit 423 is suitable for the required thumbnail of buffer memory picture, and the parts that can have a memory function by buffer etc. such as it are realized.Buffer unit 423 is cached the thumbnail of resulting picture, when next user asks the thumbnail of this picture, if this thumbnail meets user's requirement, can directly from buffer unit 423, transfer.Alternatively; buffer unit 423 is by required one schedule time of thumbnail buffer memory; when this thumbnail buffer memory surpasses this schedule time, this thumbnail is deleted from buffer unit 423, because if this thumbnail is not used for a long time; the utilization rate that this picture is described is not high; therefore can be deleted to avoid taking spatial cache, in addition, conventionally have a large amount of thumbnails and be buffered; in order to discharge in time spatial cache, also need regularly buffer unit 423 to be processed.
Detecting unit 422 is suitable for detecting in buffer unit 423, whether to store required thumbnail.When detecting unit 422 detects while storing required thumbnail in buffer unit 423, transmitting element 424 sends to requesting party (for example client 410) by this required thumbnail.When detecting unit 422 does not detect required thumbnail in buffer unit 423, receiving element 421 sends the request of received requesting party's the thumbnail of transferring picture to described distributed real-time processing module 430.
Distributed real-time processing module 430 can comprise task scheduling center cell 431 and picture processing server cluster unit 432.The request of the requesting party's that the task scheduling center cell 431 reception webservers 420 send the thumbnail of transferring picture, writes this request in message queue.Picture processing server cluster unit 432 comprises a plurality of picture processing server.A picture processing server in described a plurality of picture processing server pulls message from the message queue of task scheduling center cell 431, according to pulled message, required thumbnail is processed and generated to picture, then this thumbnail is returned to task scheduling center 431 with the form of message.Task scheduling center 431 returns to the webserver 420 by this thumbnail, and the webserver 420 is returned to client 410 again.Here, the picture processing server that pulls message from the message queue of task scheduling center cell 431 is idle picture processing server, when having the picture processing server of a plurality of free time to pull message from the message queue of task scheduling center cell 431, by the picture processing server first pulling, obtain message.
Fig. 5 shows the process flow diagram that a kind of picture is according to the embodiment of the present invention cut drawing method in real time.As shown in Figure 5, picture of the present invention is cut in real time drawing method 500 and is started from step 510, in step 510, receives request, the information that described request comprises this picture and the information of required thumbnail of the thumbnail of transferring picture.This step is mainly carried out by the webserver, and this webserver for example can be realized by Nginx.After picture is uploaded to the webserver, when user browses the thumbnail of this picture in browser side, the request that can send the thumbnail that pulls picture by browser is to the webserver.
Next, in step 520, according to above-mentioned request detection, whether be cached with required thumbnail.If the thumbnail of picture is requested mistake once, the webserver likely can be cached with the thumbnail of this picture, because the picture thumbnail of buffer memory is only buffered a schedule time conventionally, so, even if once generated the thumbnail of this picture, also likely because of the time, pass of a specified duration and deleted.When the webserver detects, can detect according to the requirement of the size of the thumbnail comprising in described request etc., if the size of desired thumbnail is different from the thumbnail of this picture of institute's buffer memory, the thumbnail of this picture of institute's buffer memory can not be used so, and the result of detection will be not have required thumbnail.
If detect and be cached with required thumbnail, enter step 530, send the required thumbnail of buffer memory to requesting party.As shown in Figure 6, it shows the schematic flow sheet that picture of the present invention in the situation that is cached with required thumbnail is cut an embodiment of drawing method in real time, wherein detect and be cached with required thumbnail and this buffer memory is not out of date, so the picture thumbnail of buffer memory is back to browser.
If the result detecting is the required thumbnail that there is no buffer memory, enter step 540, send described request to a picture processing server in picture processing server cluster, by this picture processing server, according to described request, this picture is processed, generate required thumbnail.Here, picture processing server cluster comprises a plurality of picture processing server, in can removing message queue when it is idle, any one picture processing server pulls message, then according to the described request in this message, picture is processed, when existing a plurality of picture processing server to go to pull message, can distribute to the picture processing server pulling at first simultaneously.Next, in step 550, send the required thumbnail being generated by picture processing server to requesting party.As shown in Figure 7, it has provided the schematic flow sheet that picture of the present invention in the situation of the required thumbnail that there is no buffer memory is cut an embodiment of drawing method in real time, wherein the webserver detects the picture thumbnail that there is no buffer memory, so send call picture cutting request to picture processing server, picture processing server is carried out cutting according to this call request to this picture and is obtained required thumbnail, and this required thumbnail is returned to the webserver, the webserver sends this required thumbnail to the browser of request.
In addition, in the situation that there is no the required thumbnail of buffer memory, the described picture processing server step that this request is sent in picture processing server cluster can comprise the steps: described request for example to write, in the message queue (can deposit in task scheduling server) of task scheduling, and a picture processor in picture processing server cluster pulls message from the message queue of described task scheduling.As shown in Figure 8, it shows according to an embodiment of the invention in the situation that do not have the required thumbnail of buffer memory to generate an example of the treatment scheme of required thumbnail.In Fig. 8, described request is written in the message queue at task scheduling center, and afterwards, a picture processing server in picture processing server cluster pulls message from the message queue of described task scheduling.Then, by this picture processing server according to pull to message in the request that comprises required thumbnail is processed and generated to this picture, afterwards generated required thumbnail is for example returned to task scheduling center with the form of message, by task scheduling center, required thumbnail is returned to called side, it is the webserver, the webserver sends requesting party again to, asks the browser of the thumbnail of picture.
In addition, before the described step that the required thumbnail being generated by picture processing server is sent to requesting party, can also comprise step: the required thumbnail that buffer memory generates.Alternatively, the required thumbnail generating can be buffered the schedule time, when this thumbnail is buffered over this schedule time, deletes this thumbnail.For example, alternatively, this schedule time can be set as this thumbnail schedule time of starting invoked time for the first time.Alternatively, this schedule time can be set as the schedule time starting from the last invoked time of this thumbnail.Method of the present invention is by above-mentioned steps, can be by generated one schedule time of thumbnail buffer memory, thereby within this schedule time, without all generate the thumbnail of this picture when picture is at every turn called.If the schedule time is set as the schedule time starting from the last invoked time of this thumbnail, when the invoked number of times of picture is frequent, the thumbnail that can make this picture this picture by the schedule time during frequently calling and afterwards in without again generating.Like this, can improve the invoked efficiency of picture, also can reduce the workload of picture processing server.In addition, if this thumbnail is not used for a long time, illustrate that the utilization rate of this picture is not high, therefore can be deleted to avoid taking spatial cache.In addition, conventionally have a large amount of thumbnails and be buffered, in order to discharge in time spatial cache, also need regularly the picture being buffered to be processed.
Utilize picture of the present invention to cut in real time map device and method thereof, because while wanting the thumbnail of browsing pictures (be user) whenever necessary just can generate thumbnail, so solved the problem that the waste storage space, waste cpu resource and the thumbnail dimensions that exist in prior art can not arbitrarily change.And whole treatment scheme is shorter, more simple in logic.In addition, prior art adopts picture-storage server cluster storage picture conventionally, and the present invention does not adopt picture-storage server cluster, but adopt picture processing server cluster that picture is processed and do not stored afterwards, directly issue the webserver and carry out buffer memory at webserver place, thereby reduced the consumption of machine, so the present invention has and makes full use of storage space, makes full use of cpu resource, generates in time thumbnail and the good feature of real-time.
The algorithm providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
In the instructions that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can not put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.Yet, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this instructions (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this instructions (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with array mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module moved on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize the some or all functions according to the some or all parts in the browser client of the embodiment of the present invention.The present invention for example can also be embodied as, for carrying out part or all equipment or device program (, computer program and computer program) of method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation that do not depart from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has a plurality of such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.

Claims (9)

1. picture is cut a map device in real time, and it comprises: the webserver and distributed real-time processing module,
The described webserver be suitable for receiving requesting party transfer picture thumbnail request and sent to described distributed real-time processing module, and send required thumbnail to requesting party according to described request;
Described distributed real-time processing module is suitable for, according to the request of the thumbnail of transferring picture of described webserver transmission, required thumbnail is processed and generated to picture, returns to the described webserver;
In wherein said request, comprise the information of described picture and the information of required thumbnail.
2. device according to claim 1, wherein,
The described webserver comprises:
Receiving element, it receives the request that requesting party transfers the thumbnail of picture;
Buffer unit, the thumbnail of its buffer memory picture;
Detecting unit, it detects in buffer unit whether store required thumbnail;
Transmitting element, it sends required thumbnail to requesting party;
Wherein, when detecting unit detects while storing required thumbnail in buffer unit, transmitting element sends to requesting party by this required thumbnail; When detecting unit does not detect required thumbnail in buffer unit, receiving element sends the request of received requesting party's the thumbnail of transferring picture to described distributed real-time processing module.
3. device according to claim 2, wherein,
Described buffer unit is by required one schedule time of thumbnail buffer memory, and when this thumbnail buffer memory surpasses this schedule time, this thumbnail is deleted from described buffer unit.
4. according to the device described in any one in claim 1-3, wherein,
Described distributed real-time processing module comprises:
Task scheduling center cell, the request of the requesting party's that its reception webserver sends the thumbnail of transferring picture, and this request is write in message queue;
Picture processing server cluster unit, it comprises a plurality of picture processing server, a picture processing server in described a plurality of picture processing server pulls message from the message queue of described task scheduling center cell, according to pulled message, required thumbnail is processed and generated to picture, and this thumbnail is returned to described task scheduling center.
5. according to the device described in any one in claim 1-4, wherein,
The described webserver is realized by HTTP and Reverse Proxy.
6. picture is cut a drawing method in real time, and it comprises:
The request of the thumbnail of picture is transferred in reception, the information that described request comprises this picture and the information of required thumbnail;
According to this request detection, whether be cached with required thumbnail;
If be cached with required thumbnail, send the required thumbnail of buffer memory to requesting party; Otherwise send this request to a picture processing server in picture processing server cluster, by this picture processing server, according to this request, required thumbnail is processed and generated to this picture, send the required thumbnail being generated by picture processing server to requesting party.
7. method according to claim 6, wherein, the described picture processing server step that this request is sent in picture processing server cluster comprises:
This request is write in the message queue of task scheduling;
A picture processor in picture processing server cluster pulls message from the message queue of described task scheduling.
8. according to the method described in claim 6 or 7, before the described step that the required thumbnail being generated by picture processing server is sent to requesting party, also comprise:
The required thumbnail that buffer memory generates.
9. method according to claim 8, wherein, the step of the required thumbnail that described buffer memory generates comprises:
The required thumbnail schedule time that buffer memory generates; And
Judge that whether this required thumbnail buffer memory surpasses this schedule time, if so, deletes this thumbnail.
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 true CN103699566A (en) 2014-04-02
CN103699566B 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)

Cited By (6)

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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006148731A (en) * 2004-11-24 2006-06-08 Sony Corp Recording apparatus and method, reproducing apparatus and method, program, and recording medium
US20060242163A1 (en) * 2005-04-22 2006-10-26 Microsoft Corporation Local thumbnail cache
CN102682026B (en) * 2011-03-16 2016-04-13 腾讯科技(深圳)有限公司 The method of browsing pictures and client

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017096787A1 (en) * 2015-12-09 2017-06-15 乐视控股(北京)有限公司 Picture processing method and device
CN105512329A (en) * 2015-12-24 2016-04-20 上海携程商务有限公司 GO-language-based dynamic figure cutting system
CN105610979A (en) * 2016-02-23 2016-05-25 山东乾云启创信息科技股份有限公司 Network resource transmission system based on virtualization technology and method thereof
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
WO2019024332A1 (en) * 2017-07-31 2019-02-07 平安科技(深圳)有限公司 Picture displaying method, server, and computer readable storage medium
CN108933814A (en) * 2018-05-31 2018-12-04 康键信息技术(深圳)有限公司 electronic device, image processing method and storage medium

Also Published As

Publication number Publication date
CN103699566B (en) 2018-07-10

Similar Documents

Publication Publication Date Title
US11032388B2 (en) Methods for prerendering and methods for managing and configuring prerendering operations
CN107391271B (en) Message queue system-based delayed task triggering method and device
CN103699566A (en) Image real-time cutting device and method
US10666758B2 (en) Browser resource pre-pulling method, terminal and storage medium
US9530099B1 (en) Access to network content
CN110096660B (en) Method and device for loading page pictures and electronic equipment
US11019179B2 (en) Access to network content
US9185162B2 (en) System using server to synchronize document displayed on mobile devices
CN107273213B (en) Calculation control method, network card and electronic equipment
US20180089872A1 (en) On-demand image spriting
CN108021448B (en) Kernel space optimization method and device
CN112688982B (en) User request processing method and device
CN114296897A (en) Method and device for sending advertisement request
JP2022504271A (en) Client software backoff
CN113342837B (en) Data transmission method, device, electronic equipment and computer readable medium
JP2017021662A (en) Relay server system and communication method using relay server
CN110020275B (en) Method and system for loading gift panel in live broadcast
CN113032438A (en) Message data processing method and device, electronic equipment and storage medium
JP5444785B2 (en) Document conversion apparatus, document distribution system, document conversion method, and document conversion program
JP6707824B2 (en) Information terminal, information processing system, data reading method, and computer program
CN114202608A (en) Method, apparatus, device, medium, and program product for image rendering
CN118158205A (en) Short-term streaming media cache processing method and device, medium and electronic equipment
CN114489513A (en) Data return method and system based on local disk transfer
CN103647821A (en) Data content sharing method based on long connection, system and apparatus thereof
CN103617040A (en) Picture processing method and system

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

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.

TR01 Transfer of patent right