Display picture generating method and device based on access

A picture generation and picture technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problems of average popularity, inflexible access requirements, waste of storage space, etc., to save storage space and reduce uploading The effect of flexible time and access requirements

Active Publication Date: 2013-11-13
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF5 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Taking the Ailehuo community as an example, there may be as many as 20 kinds of display pictures generated for the same picture, and it takes 1 to 2 seconds. In addition to the time-consuming uploading of pictures, this kind of waiting is unacceptable
[0005] 2) Waste of storage space
Since the display pictures are pre-generated, in order to meet the needs of various picture sizes and different watermarks, it is necessary to pre-generate a variety of display pictures and store them in the storage system, but in fact not every display picture can be accessed. wasting valuable storage space in
Also take the Ailehuo community as an example. If a picture is relatively popular and may be displayed in various places, then more than 20 corresponding display pictures may be needed, but if a picture is not popular, then other Maybe only a few kinds of display pictures are accessed, and the corresponding other dozen kinds of display pictures waste storage space
[0006] 3) Inflexible access requirements

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Display picture generating method and device based on access
  • Display picture generating method and device based on access
  • Display picture generating method and device based on access

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0065] figure 1 It is a flow chart of the access-based display picture generation method provided by Embodiment 1 of the present invention, the method is executed by the picture server side, such as figure 1 As shown, the method specifically includes:

[0066] Step 101: Receive the URL of the image access request.

[0067] The URL of the picture request may be the URL of the original picture request, or the URL of the display picture request.

[0068] The URL requested for the original image includes the original image ID, which can be composed in a format such as "Original_URL=imageid", where imageid is a 63-bit long integer data. The URL of the original picture request can be realized by using but not limited to the following steps S11-step S14:

[0069] Step S11, performing information summary algorithm (MD5) on the original picture to obtain a 128-bit string;

[0070] Step S12, dividing the result of MD5 into two 64-bit strings str1 and str2;

[0071] Step S13, XOR pr...

Embodiment 2

[0107] image 3 The access-based presentation picture generating device provided in Embodiment 2 of the present invention can be set on the picture server side, such as image 3 As shown, the device includes: an interaction unit 300 , a display picture judgment unit 301 , a parameter analysis unit 302 , a picture generation unit 303 and a picture storage unit 304 .

[0108] The interaction unit 300 receives the URL of the display picture access request.

[0109] Display picture judging unit 301 judges whether there is a display picture corresponding to the URL of the display picture access request received by interactive unit 300 in the display picture storage engine, if so, sends the display picture corresponding to the URL to interactive unit 300, and is returned by interactive unit 300 Display the display image sent by the image judging unit 301 , otherwise trigger the parameter parsing unit 302 .

[0110] After being triggered by the display image judging unit 301, the p...

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

PUM

No PUM Login to view more

Abstract

The invention provides a display picture generating method and device based on access. The method comprises the steps of S1, judging whether a display picture corresponding to a received display picture access request URL (Uniform Resource Locator) exists in a display picture storage engine or not, if yes, returning the display picture corresponding to the URL, if not, executing S2; S2, analyzing the URL to obtain an original picture ID (Identity) and display parameters, wherein the display parameters comprise at least one of a watermark parameter, a zooming parameter and a compression parameter; S3, obtaining an original picture corresponding to the original picture ID from the original picture storage engine, and carrying out at least one processing of the corresponding watermark printing, zooming and compressing on the original picture according to the display parameters to generate the display picture; S4, storing the display picture correspondingly generated by the URL into the display picture storage engine, and returning the generated display picture. By using the method and the device, the uploading time of the picture can be shortened, the storage space can be saved, and the picture access is more flexible.

Description

【Technical field】 [0001] The invention relates to the field of computer application technology, in particular to a method and device for generating display pictures based on access. 【Background technique】 [0002] In order to meet different display requirements for images, such as the display requirements of images of various sizes and watermarks in community applications, or the display requirements of thumbnails in user terminal applications, etc., it is often necessary to generate thumbnails and compressed images based on original images. Or print a watermark image to meet different image access requirements. [0003] In the existing implementation, in addition to uploading the original picture to the storage system of the picture server, it is also necessary to generate thumbnails, compressed pictures or watermarked pictures in advance. In the present invention, these pictures are used as display pictures, and the generated display pictures Also uploaded to the storage ...

Claims

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 李添翼
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products