WO2016150049A1 - 图片的加载显示方法、设备和系统 - Google Patents

图片的加载显示方法、设备和系统 Download PDF

Info

Publication number
WO2016150049A1
WO2016150049A1 PCT/CN2015/084805 CN2015084805W WO2016150049A1 WO 2016150049 A1 WO2016150049 A1 WO 2016150049A1 CN 2015084805 W CN2015084805 W CN 2015084805W WO 2016150049 A1 WO2016150049 A1 WO 2016150049A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
loading
image
link address
metadata
Prior art date
Application number
PCT/CN2015/084805
Other languages
English (en)
French (fr)
Inventor
姚晓宏
周志鸿
Original Assignee
新余兴邦信息产业有限公司
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 新余兴邦信息产业有限公司 filed Critical 新余兴邦信息产业有限公司
Publication of WO2016150049A1 publication Critical patent/WO2016150049A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/14Display of multiple viewports
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/802D [Two Dimensional] animation, e.g. using sprites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2310/00Command of the display device
    • G09G2310/02Addressing, scanning or driving the display screen or processing steps related thereto
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0464Positioning
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2350/00Solving problems of bandwidth in display systems

Definitions

  • the present invention relates to the field of computer network communication, and in particular, to a method, device and system for loading and displaying pictures, and is particularly suitable for loading display of large pictures.
  • the present application provides a method for loading and displaying pictures, including:
  • the picture is divided into multiple small maps according to the set blocking rule, and the blocking rule is added to the metadata of the picture before the segmentation to generate a second link of the picture. Addressing, assembling image data of the plurality of thumbnails according to a blocking rule that parses out the metadata description by loading the second link address, and restoring the image before segmentation.
  • the small resolution maps are respectively loaded by the block rule. Reverting to the original oversized image reduces the computational and storage burden on the server side, and the loaded image has a high resolution, giving the user a very good experience.
  • the loading the first link address is to perform metadata of the picture including one of a number of bytes, a resolution, an animation type, a creation time, a cropping coefficient, and a picture address, and a picture blocking rule.
  • the merge code generates a Uniform Resource Locator address for the picture.
  • the encoding method of the address includes some key information of the image, so that the client and the server can recognize the image well. Ensuring animation when loading images.
  • the blocking rule is to divide the picture into a plurality of regions in a matrix form according to an animation effect and/or resolution of the picture.
  • the blocking rules according to the animation effect and/or resolution are simple and convenient, so that the resolution of the loaded image is high, the picture distortion is reduced, and the animation effect is realistic, giving the user a very good experience.
  • the load display is progressively loading the display in an animated form.
  • the animated form of the blocking rule is to load each of the divided small images by dividing the pictures, and loading the pictures in the order of the numbers.
  • the animated square forms include: spiral, fan, louver, unfolding, shrinking, wedging, cutting, dissolving, fading, erasing.
  • a picture loading display device including:
  • Determining means judging whether the number of pictures of the picture exceeds a threshold set by the loading device according to metadata of the picture parsed by the first link address of the picture;
  • a picture restoration device configured to directly load the picture when the threshold is not exceeded; when the threshold is exceeded, the picture is divided into a plurality of small pictures according to a set blocking rule, and the block is divided Adding a rule to the metadata of the picture before the segmentation, generating a second link address of the picture, and assembling the image of the plurality of thumbnails according to the blocking rule that parses the metadata description by loading the second link address Data, restore the picture before the split.
  • the first link address is a unified resource location of the picture generated by combining and encoding the metadata including the number of bytes, the resolution, the animation type, the creation time, the cropping coefficient, and the picture address of the picture. Address.
  • the present application also provides a picture loading display system, including:
  • the server is configured to determine, according to the metadata of the image parsed according to the first link address, whether the number of bytes of the picture exceeds a threshold set by the server; when the number of pictures exceeds a threshold set by the server, the server is divided into blocks.
  • the rule divides the picture into a plurality of small pieces, and adds a blocking rule to the metadata of the pre-segment picture to generate a second link address of the picture;
  • the client directly loads the first link address of the uploaded picture when the number of picture bytes does not exceed the threshold set by the server, and displays the picture.
  • the client loads the second link address, and restores the pre-separated picture according to the metadata parsed by the second link address.
  • the first link address is a number of bytes, a resolution, an animation type, and a
  • the metadata of the creation time, the clipping coefficient, the picture address, and the like are used to perform the combined encoding of the uniform resource locator address generated by the encoding.
  • the block image data of the large image is stored on the server of the remote network, and a single picture "load link" is provided (the load link is calculated and generated when the image is uploaded).
  • the client needs to load this image, it loads the link address of the image.
  • the address interceptor on the server will parse the metadata of the image according to the link address for processing. If the size of the metadata record picture exceeds the system setting "threshold", the system will assemble all the block image data of the picture in order according to the blocking rules described by the metadata, and use special split symbols between these blocks.
  • the device end receives the socket content of the address by loading the link address of the single picture (pre-segment picture), and then restores the block image data of the picture by parsing the received content, and then sequentially loads the block picture data. This way, when loading the image, you can form an animated effect on the client.
  • the loading display method, device and system of the image proposed by the present application have more obvious effects on the large picture.
  • the small resolutions of each resolution are loaded one by one by the blocking rule, and the original large oversized images are restored, which can reduce the calculation and storage burden on the server side, and the loaded image has a high resolution and is given to the user. Brought a very good experience.
  • FIG. 1 is a schematic diagram of a process of loading a picture according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a large graph blocking rule according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of loading a block data by a client according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of an animation effect obtained by a client acquiring block data according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of a principle for generating a picture link address according to an embodiment of the present application.
  • FIG. 6 is a structural block diagram of a loading display device for a picture according to an embodiment of the present application.
  • FIG. 7 is a structural block diagram of a loading display system for a picture according to an embodiment of the present application.
  • FIG. 1 schematically shows a process diagram of picture loading according to an embodiment of the present application.
  • the process of image loading includes the following steps:
  • Step S001 The client loads the first link address of the picture in the server.
  • the first link address is a uniform resource locator address generated by the server according to the byte number of the picture, the resolution, the animation type, the creation time, the cropping coefficient, the picture address, and the like.
  • Step S002 The server link interceptor parses the map according to the first link address from the picture.
  • the metadata of the slice determines whether the number of bytes of the picture exceeds the threshold set by the server.
  • Step S003 When the number of picture bytes exceeds the threshold set by the server, the server divides the picture into a plurality of small pictures according to a blocking rule, and adds the blocking rule to the metadata of the pre-separated picture to generate a picture. Two link address.
  • the setting of the blocking rule of the picture is determined based on factors such as the animation effect and resolution of the displayed picture. Specifically, when the picture is divided, each of the divided small pictures is numbered, so that the pictures are then loaded in the order of the numbers to form an animation effect.
  • FIG. 2 schematically shows a large graph blocking rule diagram of an embodiment of the present application.
  • the picture is divided into a plurality of areas in a matrix form according to a cropping rule, a cropping coefficient, a picture resolution, and the like of the picture.
  • image segmentation is performed according to the value of the partition (ie, the clipping factor).
  • the reduction factor is set to 2
  • the picture is divided into (2N/2)*(2M/2) block areas. That is, the large picture is divided into regions of growth and wide resolution of N and M, respectively, and N*M small maps are obtained.
  • Step S004 The client loads the second link address of the picture, and restores the picture before the segmentation according to the metadata parsed by the second link address.
  • Step S005 When the number of picture bytes does not exceed the threshold set by the server, the client directly loads the picture.
  • the loading link address is to parse the address through the device side, obtain the image size, resolution, clipping coefficient, animation type information, and then remotely load the image link through the http protocol.
  • the second link address is a URL address of a picture intercepted by nginx through a link interceptor of the server.
  • nginx (“engine x") is a high-performance http and reverse proxy server, specifically an IMAP/POP3/SMTP proxy server.
  • IMAP/POP3/SMTP proxy server an IMAP/POP3/SMTP proxy server.
  • FIG. 3 is a schematic diagram showing a sequence of loading a tiled picture by a client according to an embodiment of the present application.
  • the original image is divided into 8*5 picture blocks.
  • the order in which the client gets is the same as the order in which it is loaded, and the original image is gradually animated.
  • the loading sequence is set according to the image blocking rule.
  • the specific image link address carries the rule, and the rule is parsed by the client program from the link information.
  • FIG. 4 is a schematic diagram showing a client acquiring block data and generating an animation according to an embodiment of the present application. Effect schematic.
  • the original image is divided into 8*5 picture blocks.
  • each divided small picture is numbered, and the picture is loaded in the order of the number, and the loading is in an animated form.
  • the display is gradually loaded and loaded in a spiral form. When loaded in both the vertical and horizontal directions, it is loaded in only one direction.
  • the animation form may also be in the form of a fan shape, a blind, a spread, a shrink, a wedge, a cut, a dissolve, a fade, an erase, or the like, as needed.
  • FIG. 5 is a schematic diagram showing the generation of a picture link address according to an embodiment of the present application. As shown in FIG. 5, the step of generating a picture link address includes:
  • Step S1 Obtain image parameters such as the size, resolution, and animation type of the image.
  • the method for obtaining the size and resolution of the image can be obtained by the open source GraphicsMagick image processing software, for example, running the code://gm identify verbose 1.jpg.
  • the animation type is taken directly from the configuration file.
  • Step S2 According to the cropping rule of the picture byte size, the picture resolution and the animation type, the picture size, the creation time, the resolution, the cropping coefficient, the animation type, and the original image address are spliced in the link address, and encoded by base64. And store the URL address as a single image link.
  • the original address of the picture is: group1/99999999-20141126114551123-1920*1080-02-a
  • -aaaaaaaaaaaaaaaaaaaaaaaaaaaaa.jpg where: group1 represents the prefix, representing different types of pictures, "99999999” represents the image size (bytes), 20141126114551123 represents the creation time, 02 represents the cropping system, a represents the animation type, and aaaaaaaaaaaaaa represents the image address.
  • FIG. 6 is a block diagram showing the structure of a loading display device for a picture according to an embodiment of the present application.
  • the loading display device 1 of the picture includes a loading device 11, a judging device 12, and a restoration device 13.
  • the loading device 11 is set to load the first link address of the picture.
  • the first link address is a uniform resource locator address of the picture generated by combining and encoding the metadata including the number of bytes, the resolution, the animation type, the creation time, the cropping coefficient, and the picture address of the picture.
  • the determining means 12 is arranged to determine whether the number of picture bytes exceeds a threshold set by the loading device based on the metadata of the picture parsed by the first link address of the picture.
  • the restoration device 13 is configured to directly load the picture when it is determined that the number of picture bytes does not exceed the threshold set by the loading device, and determine that the number of bytes of the picture exceeds the threshold, and divide the picture into multiple according to the set blocking rule. Small picture. Adding a blocking rule to the metadata of the picture before the segmentation, generating a second link address of the picture, and assembling the plurality of small pictures according to the blocking rule that parses the metadata description by loading the second link address Image data, restore the picture before segmentation.
  • FIG. 7 is a block diagram showing the structure of a loading display system for a picture according to an embodiment of the present application.
  • the loading display system 2 of the picture includes a server 21 and a client 22.
  • the server 21 is configured to determine, according to the metadata of the picture parsed according to the first link address, whether the number of the picture bytes exceeds a threshold set by the server.
  • the service The terminal 21 divides the picture into a plurality of blocklets according to a blocking rule, and adds a blocking rule to the metadata of the pre-segment picture to generate a second link address of the picture.
  • the client 22 When the number of picture bytes does not exceed the threshold set by the server, the client 22 directly loads the first link address of the uploaded picture to display the picture; and when the picture number exceeds the threshold set by the server 21, the client 22 Loading the second link address, and restoring and displaying the pre-segment picture according to the metadata parsed by the second link address.
  • the first link address is a unified resource of the picture generated by combining and encoding metadata including the number of bytes, resolution, animation type, creation time, cropping coefficient, and picture address of the picture. Locator address.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种图片的加载显示方法。该方法包括:加载上传图片的第一链接地址(S001);根据由所述图片的第一链接地址解析出的所述图片的元数据,来判断所述图片字节数是否超出加载设备设置的阈值(S002);当没有超出所述阈值时,直接加载所述图片(S005);当超出所述阈值时,按设定的分块规则将所述图片分割为多个小图,将所述分块规则添加至分割前所述图片的元数据,生成所述图片的第二链接地址(S003),根据加载所述第二链接地址解析出所述元数据描述的分块规则组装所述多个小图的图像数据,还原分割前所述图片(S004)。该方法以动画方式加载图片,减轻了服务器端的计算与存储负担,能给用户更好的体验。

Description

图片的加载显示方法、设备和系统 技术领域
本申请涉及计算机网络通信领域,特别涉及一种图片的加载显示方法、设备和系统,尤其适用于对超大图片的加载显示。
背景技术
传统的大图加载,通常需要在图片数据全部下载完后才会加载图片,这样就常常需要用户进行等待,降低用户的使用体验。也有另外的方式,通过对大图进行处理,生成一些分辨率低的图片,用于预先的模糊预览,待原图完全下载后再进行替换。这样虽然能解决漫长等待的问题,能提升用户体验,但在服务器端需要生成多种不同分辨率的图,增加了服务器端的计算与存储负担。同时,多图片的切换需要提供多个图片地址,服务器端与客户端需要反复验证,从而增加了加载大图实现的复杂程度和处理负荷。
发明内容
针对现有技术存在的上述缺陷,本申请提出了一种图片的加载显示方法,包括:
加载上传图片的第一链接地址;
根据由所述图片的第一链接地址解析出的所述图片的元数据,来判断所述图片字节数是否超出加载设备设置的阈值;
当没有超出所述阈值时,直接加载所述图片;
当超出所述阈值时,按设定的分块规则将所述图片分割为多个小图,将所述分块规则添加至分割前所述图片的元数据,生成所述图片的第二链接地址,根据加载所述第二链接地址解析出所述元数据描述的分块规则组装所述多个小图的图像数据,还原分割前所述图片。
本申请根据上述方案,对于超大图片,通过在设备端加载分割前图片的第二链接地址,而不是加载分割成的各个小图的地址,通过分块规则逐个加载各个分辨率高的小图,还原成原始超大图片,减轻了服务器端的计算与存储负担,且加载的图片分辨率高,给用户非常好的体验。
在一些实施方式中,所述加载第一链接地址是将所述图片的包括字节数、分辨率、动画类型、创建时间、裁剪系数、和图片地址、图片分块规则之一的元数据进行合并编码生成所述图片的统一资源定位符地址。其中,所述地址的编码方式包含了图片的一些关键信息,使客户端和服务端能够很好的识别图片, 确保了加载图片时动画效果。
在一些实施方式中,所述分块规则是根据图片的动画效果和/或分辨率将所述图片分割成矩阵形式的多个区域。
其中,根据动画效果和/或分辨率规定的分块规则简单方便,使加载图片的分辨率高,减少图片失真,且动画效果逼真,给用户非常好的体验。
在一些实施方式中,所述加载显示是按动画形式逐渐加载显示。
在一些实施方式中,所述动画形式的分块规则是通过在分割图片时,对每个分割的小图进行编号,按所述编号的顺序加载所述图片。
在一些实施方式中,所述动画方形式包括:螺旋形、扇形、百叶窗、展开、收缩、楔入、切出、溶解、淡出、擦除形式。
另外,本申请提出了一种图片的加载显示设备,包括:
加载上传图片的第一链接地址的装置;
判断装置,根据由所述图片的第一链接地址解析出的所述图片的元数据,来判断所述图片字节数是否超出加载设备设置的阈值;和
图片还原装置,设置为当没有超出所述阈值时,直接加载所述图片;当超出所述阈值时,按设定的分块规则将所述图片分割为多个小图,将所述分块规则添加至分割前所述图片的元数据,生成所述图片的第二链接地址,根据加载所述第二链接地址解析出所述元数据描述的分块规则组装所述多个小图的图像数据,还原分割前所述图片。
其中所述第一链接地址是将所述图片的包括字节数、分辨率、动画类型、创建时间、裁剪系数和图片地址等在内的元数据进行合并编码生成的所述图片的统一资源定位符地址。
另外,本申请还提出了一种图片的加载显示系统,包括:
服务端,设置为根据上述第一链接地址解析出的图片的元数据,判断该图片字节数是否超出服务端设置的阈值;当图片字节数超出服务端设置的阈值时,服务端按分块规则将所述图片分割为若干块小图,并将分块规则添加至分割前图片的元数据,生成图片的第二链接地址;
客户端,当图片字节数没有超出服务端设置的阈值时,所述客户端直接加载上传图片的第一链接地址,显示所述图片。当图片字节数超出服务端设置的阈值时,所述客户端加载所述第二链接地址,根据所述第二链接地址解析出的元数据,还原显示所述分割前图片。
其中所述第一链接地址是将所述图片的包括字节数、分辨率、动画类型、 创建时间、裁剪系数和图片地址等在内的元数据进行合并编码生成的所述图片的统一资源定位符地址。
具体而言,在远程网络的服务器上存储大图的分块图像数据,并提供单一的图片“加载链接”(加载链接在图片上传时已经计算生成)。当客户端需要加载这幅图片时,就加载这幅图片的链接地址。服务器上地址拦截器会根据链接地址解析出图片的元数据进行处理。如果元数据记录图片大小超过系统设置“阈值”,系统会按照元数据描述的分块规则有序组装这幅图片的所有的分块图像数据,并且在这些图块之间使用特殊的分割符号进行分割,设备端通过加载这单一的图片(分割前图片)的链接地址,接收这个地址的socket内容,再通过解析接收的内容,还原图片的分块图像数据,然后依次加载这些分块图片数据。这样在加载图片时,就可以在客户端形成一种以动画方式载入的特效。
本申请提出的图片的加载显示方法、设备和系统,对超大图片效果更为明显,在加载图片时无需在设备端存储多幅图片,通过在设备端加载分割前图片的第二链接地址,而不是加载分割成的各个小图的地址,通过分块规则逐个加载各个分辨率高的小图,还原成原始超大图片,可以减轻服务器端的计算与存储负担,且加载的图片分辨率高,给用户带来了非常好的体验。
附图说明
图1为本申请一实施方式的图片加载的过程示意图;
图2为本申请一实施方式的大图分块规则示意图;
图3为本申请一实施方式的客户端加载分块数据流程示意图;
图4为本申请一实施方式的客户端获取分块数据,产生动画效果示意图;
图5为本申请一实施方式的图片链接地址的生成原理示意图;
图6为本申请一实施方式的图片的加载显示设备结构框图;
图7为本申请一实施方式的图片的加载显示系统结构框图。
具体实施方式
下面结合附图描述本申请的具体实施方式。
图1示意性地显示了本申请一实施方式的图片加载的过程图。参照图1,图片加载的过程包括以下步骤:
步骤S001:客户端加载服务端中的图片的第一链接地址。其中,第一链接地址是服务端根据图片的字节数、分辨率、动画类型、创建时间、裁剪系数、图片地址等元数据进行合并编码生成该图片的统一资源定位符地址。
步骤S002:服务端链接拦截器根据从所述图片的第一链接地址解析出的图 片的元数据,判断该图片字节数是否超出服务端设置的阈值。
步骤S003:当图片字节数超出服务端设置的阈值时,服务端按分块规则将所述图片分割为若干块小图,并将分块规则添加至分割前图片的元数据,生成图片的第二链接地址。
其中,图片的分块规则的设定是基于显示图片的动画效果、分辨率等因素确定。具体在分割图片时,对每个分割后的小图进行编号,以便之后按所述编号的顺序加载所述图片,形成动画形式的加载效果。
图2示意性地显示了本申请一实施方式的大图分块规则图。参照图2,根据图片的裁剪规则、裁剪系数、图片分辨率等将所述图片分割成矩阵形式的若干区域。例如,在分辨率为2N*2M的大图中,根据分区的值(即裁减系数)进行图片分割。例如,设定裁减系数为2时,图片就被划分为(2N/2)*(2M/2)块区域。即,大图片被分成长、宽的分辨率分别为N和M的区域,得到N*M个小图。
步骤S004:客户端加载图片的第二链接地址,根据第二链接地址解析出的元数据,还原分割前所述图片。
步骤S005:当图片字节数没有超出服务端设置的阈值时,客户端直接加载所述图片。
其中,加载链接地址是通过设备端解析这段地址,获取图片大小,分辨率,裁剪系数,动画类型信息,然后通过http协议远程加载这个图片链接。
其中,上述第二链接地址是通过服务端的链接拦截器通过nginx拦截的图片的URL地址。其中,nginx("engine x")是一个高性能的http和反向代理服务器,具体是一个IMAP/POP3/SMTP代理服务器。当服务器拦截到上述第二链接地址时,会进行简单正则匹配,来确定图片是否属于裁剪的大图。由此,实现普通图片仍然按普通的方式返回图片流;被裁剪的大图则按分块图片按播放的顺序(具体在分割图片时,对每个分割后的小图进行编号顺序),组合成一个播放流统一发送到客户端。
其中,“还原”是通过客户端首先解析图片的链接地址,然后发起http请求。然后,根据约定的动画类型,接受从服务端返回的图片数据,以动画的方式不断加载这些小图片,将其“还原”展示给用户。动画的形式是按一定的顺序对图片进行加载。图3示意性地显示了本申请一实施方式的客户端加载分块图片的顺序图。参照图3,将原图划分为8*5个的图片块。在加载图片时,使用如图编号的顺序依次加载。客户端获取的顺序同加载的顺序一样,以动画方式逐渐展示原图。上述加载顺序是根据图片分块规则进行设置的,具体图片链接地址携带这个规则,该规则是由客户端的程序从链接信息中解析出来的。
图4示意性地显示了本申请一实施方式的客户端获取分块数据,产生动画 效果原理图。如图所示,将原图划分为8*5个的图片块,通过在分割图片时,对每个分割的小图进行编号,按所述编号的顺序加载所述图片,加载是按动画形式逐渐加载显示,以螺旋形式加载,当在竖直、水平两个方向加载完后,就只在一个方向加载。根据需要,所述动画形式还可以是扇形、百叶窗、展开、收缩、楔入、切出、溶解、淡出、擦除等形式。
图5示意性地显示了本申请一实施方式的图片链接地址的生成原理图。如图5所示,图片链接地址的生成步骤包括:
步骤S1:获取图片的大小、分辨率及动画类型等图片参数。
其中图片的大小、分辨率的获取方法可通过开源的GraphicsMagick图像处理软件来获取,例如运行代码://gm identify verbose 1.jpg。动画类型是从配置文件中直接获取的。
步骤S2:根据图片字节大小、图片分辨率及动画类型制定的裁剪规则,把图片大小、创建时间、分辨率、裁剪系数、动画类型和原图地址等拼接在链接地址中,用base64进行编码,并存储为单一图片链接的URL地址。例如:图片原始地址为:group1/99999999-20141126114551123-1920*1080-02-a
-aaaaaaaaaaaaaaa.jpg,其中:group1代表前缀,代表不同类型的图片,"99999999"代表图片大小(字节数),20141126114551123代表创建时间,02代表裁剪系统,a代表动画类型,aaaaaaaaaaaaaaa代表图片地址。
图6示意性的显示了本申请一实施方式的图片的加载显示设备结构框图。如图6所示,图片的加载显示设备1包括:加载装置11、判断装置12和还原装置13。其中,加载装置11设置为加载图片的第一链接地址。第一链接地址是将所述图片的包括字节数、分辨率、动画类型、创建时间、裁剪系数和图片地址在内的元数据进行合并编码生成的所述图片的统一资源定位符地址。判断装置12设置为根据由该图片的第一链接地址解析出的所述图片的元数据,来判断该图片字节数是否超出加载设备设置的阈值。还原装置13设置为当判断图片字节数没有超出加载设备设置的阈值时,直接加载所述图片,而判断该图片字节数超出阈值时,按设定的分块规则将该图片分割为多个小图。将分块规则添加至分割前所述图片的元数据,生成所述图片的第二链接地址,根据加载所述第二链接地址解析出上述元数据描述的分块规则组装所述多个小图的图像数据,还原分割前所述图片。
图7示意性的显示了本申请一实施方式的图片的加载显示系统结构框图。如图7所示,图片的加载显示系统2包括:服务端21、客户端22。其中,服务端21设置为根据上述第一链接地址解析出的图片的元数据,判断该图片字节数是否超出服务端设置的阈值。当图片字节数超出服务端21设置的阈值时,服务 端21按分块规则将所述图片分割为若干块小图,并将分块规则添加至分割前图片的元数据,生成图片的第二链接地址。当图片字节数没有超出服务端设置的阈值时,客户端22直接加载上传图片的第一链接地址,显示所述图片;而当图片字节数超出服务端21设置的阈值时,客户端22加载所述第二链接地址,根据所述第二链接地址解析出的元数据,还原显示所述分割前图片。其中所述第一链接地址是将所述图片的包括字节数、分辨率、动画类型、创建时间、裁剪系数和图片地址等在内的元数据进行合并编码而生成的所述图片的统一资源定位符地址。
以上所述的仅是本申请的一些实施方式。对于本领域的普通技术人员来说,在不脱离本申请创造构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。

Claims (10)

  1. 图片的加载显示方法,包括:
    加载上传图片的第一链接地址;
    根据由所述图片的第一链接地址解析出的所述图片的元数据,来判断所述图片字节数是否超出加载设备设置的阈值;
    当没有超出所述阈值时,直接加载所述图片;
    当超出所述阈值时,按设定的分块规则将所述图片分割为多个小图,将所述分块规则添加至分割前所述图片的元数据,生成所述图片的第二链接地址,根据加载所述第二链接地址解析出所述元数据描述的分块规则组装所述多个小图的图像数据,还原分割前所述图片。
  2. 根据权利要求1所述的方法,其中,所述第一链接地址是将所述图片的包括字节数、分辨率、动画类型、创建时间、裁剪系数和图片地址中至少之一的元数据进行合并编码生成所述图片的统一资源定位符地址。
  3. 根据权利要求1所述的方法,其中,所述分块规则是根据图片的动画效果和/或分辨率将所述图片分割成矩阵形式的多个区域。
  4. 根据权利要求1所述的方法,其中,所述加载显示是按动画形式逐渐加载显示。
  5. 根据权利要求4所述的方法,其中,所述动画形式的加载顺序是通过在分割图片时,对每个分割的小图进行编号,按所述编号的顺序加载所述图片。
  6. 根据权利要求5所述的方法,其中,所述动画形式包括:螺旋形、扇形、百叶窗、展开、收缩、楔入、切出、溶解、淡出、擦除形式。
  7. 一种图片的加载显示设备,包括:
    加载装置,设置为加载所述图片的第一链接地址;
    判断装置,设置为根据由所述图片的第一链接地址解析出的所述图片的元数据,来判断所述图片字节数是否超出加载设备设置的阈值;和
    还原装置,设置为当没有超出所述阈值时,直接加载所述图片;当超出所述阈值时,按设定的分块规则将所述图片分割为多个小图,将所述分块规则添加至分割前所述图片的元数据,生成所述图片的第二链接地址,根据加载所述 第二链接地址解析出所述元数据描述的分块规则组装所述多个小图的图像数据,还原分割前所述图片。
  8. 根据权利要求7所述的设备,其中,所述第一链接地址是将所述图片的包括字节数、分辨率、动画类型、创建时间、裁剪系数和图片地址元数据进行合并编码生成所述图片的统一资源定位符地址。
  9. 图片的加载显示系统,包括:
    服务端,设置为根据上述第一链接地址解析出的图片的元数据,判断该图片字节数是否超出服务端设置的阈值,当图片字节数超出服务端设置的阈值时,服务端按分块规则将所述图片分割为若干块小图,并将分块规则添加至分割前图片的元数据,生成图片的第二链接地址;
    客户端,当图片字节数没有超出服务端设置的阈值时,所述客户端直接加载上传图片的第一链接地址,显示所述图片;
    当图片字节数超出服务端设置的阈值时,所述客户端加载所述第二链接地址,根据所述第二链接地址解析出的元数据,还原显示所述分割前图片。
  10. 根据权利要求9所述的系统,其中所述第一链接地址是将所述图片的元数据进行合并编码生成的所述图片的统一资源定位符地址,所述元数据包括所述图片的字节数、分辨率、动画类型、创建时间、裁剪系数和图片地址。
PCT/CN2015/084805 2015-03-24 2015-07-22 图片的加载显示方法、设备和系统 WO2016150049A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510130161.7A CN104679570A (zh) 2015-03-24 2015-03-24 图片的加载显示方法、设备和系统
CN201510130161.7 2015-03-24

Publications (1)

Publication Number Publication Date
WO2016150049A1 true WO2016150049A1 (zh) 2016-09-29

Family

ID=53314667

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/084805 WO2016150049A1 (zh) 2015-03-24 2015-07-22 图片的加载显示方法、设备和系统

Country Status (3)

Country Link
US (1) US20160284317A1 (zh)
CN (1) CN104679570A (zh)
WO (1) WO2016150049A1 (zh)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679570A (zh) * 2015-03-24 2015-06-03 新余兴邦信息产业有限公司 图片的加载显示方法、设备和系统
CN105023286A (zh) * 2015-06-29 2015-11-04 天脉聚源(北京)科技有限公司 一种动画显示目标图片的方法及装置
CN105224647A (zh) * 2015-09-29 2016-01-06 努比亚技术有限公司 图片显示方法及装置
CN105847345B (zh) * 2016-03-21 2019-01-22 深圳市茁壮网络股份有限公司 一种图片合并显示方法及装置
CN106886544A (zh) * 2016-06-06 2017-06-23 阿里巴巴集团控股有限公司 一种数据处理方法及装置
CN106886549A (zh) * 2016-08-30 2017-06-23 阿里巴巴集团控股有限公司 一种网络图片的加载方法、装置和系统
CN106502613B (zh) * 2016-10-25 2019-08-23 武汉斗鱼网络科技有限公司 一种加载图片的方法及装置
CN108536707A (zh) * 2017-03-03 2018-09-14 绍兴读图网络科技有限公司 图片信息安全处理方法及系统
CN110069728B (zh) * 2017-10-30 2022-08-12 北京京东尚科信息技术有限公司 用于展示图片的方法及装置
CN110009554B (zh) * 2018-01-05 2023-06-27 深圳市云铖科技有限公司 一种图片裁剪方法、存储介质、设备及系统
US10459609B2 (en) * 2018-04-03 2019-10-29 Palantir Technologies Inc. Multi-stage data page rendering
CN109740087A (zh) * 2018-11-23 2019-05-10 量子云未来(北京)信息科技有限公司 一种图片渲染方法、装置及系统
CN109785402A (zh) * 2018-12-12 2019-05-21 四川商通实业有限公司 一种h5图片裁剪方法
CN111435527A (zh) * 2019-01-11 2020-07-21 北京京东尚科信息技术有限公司 页面图片显示方法、装置、存储介质及电子设备
CN110059281B (zh) * 2019-04-11 2022-11-29 腾讯科技(深圳)有限公司 图片显示方法、装置、终端及计算机可读存储介质
CN110135188A (zh) * 2019-04-28 2019-08-16 佛山科学技术学院 一种基于区块链的电子证照存储方法及装置
CN111105340B (zh) * 2019-12-24 2023-11-14 常州纺织服装职业技术学院 图片信息隐藏方法和装置
CN113792021A (zh) * 2021-09-27 2021-12-14 北京臻观数智科技有限公司 一种降低图片存储空间的方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377972A (zh) * 2010-08-23 2012-03-14 联想(北京)有限公司 图像处理设备和图像处理方法
CN103188554A (zh) * 2011-12-29 2013-07-03 盛趣信息技术(上海)有限公司 图像编码方法及系统
CN103617165A (zh) * 2013-10-22 2014-03-05 小米科技有限责任公司 一种加载图片的方法、装置及终端
CN103873918A (zh) * 2012-12-14 2014-06-18 腾讯科技(深圳)有限公司 图片处理方法、装置及终端
US20140307090A1 (en) * 2013-04-12 2014-10-16 Panasonic Corporation Communication system, communication apparatus and communication method
CN104679570A (zh) * 2015-03-24 2015-06-03 新余兴邦信息产业有限公司 图片的加载显示方法、设备和系统

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030182402A1 (en) * 2002-03-25 2003-09-25 Goodman David John Method and apparatus for creating an image production file for a custom imprinted article
CN102541876A (zh) * 2010-12-13 2012-07-04 腾讯科技(深圳)有限公司 浏览网页的方法、装置、服务器和移动终端
CN103679106B (zh) * 2012-09-11 2016-09-21 上海新大陆翼码信息科技股份有限公司 二维码切割与拼接鉴权方法及系统
CN103514241B (zh) * 2012-12-07 2017-09-05 Tcl集团股份有限公司 图片加载方法及系统
CN103139292B (zh) * 2013-01-22 2017-02-08 深圳市深信服电子科技有限公司 在http代理中处理图片的方法、代理服务器及系统
US10452706B2 (en) * 2013-06-04 2019-10-22 Oath Inc. Method and system for handling images on a multi-touch device
CN103729825A (zh) * 2013-12-31 2014-04-16 世纪龙信息网络有限责任公司 终端动态适配的图片处理方法
US10476937B2 (en) * 2014-10-20 2019-11-12 Facebook, Inc. Animation for image elements in a display layout
CN104391890B (zh) * 2014-11-10 2017-11-24 广东欧珀移动通信有限公司 图片加载方法及系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377972A (zh) * 2010-08-23 2012-03-14 联想(北京)有限公司 图像处理设备和图像处理方法
CN103188554A (zh) * 2011-12-29 2013-07-03 盛趣信息技术(上海)有限公司 图像编码方法及系统
CN103873918A (zh) * 2012-12-14 2014-06-18 腾讯科技(深圳)有限公司 图片处理方法、装置及终端
US20140307090A1 (en) * 2013-04-12 2014-10-16 Panasonic Corporation Communication system, communication apparatus and communication method
CN103617165A (zh) * 2013-10-22 2014-03-05 小米科技有限责任公司 一种加载图片的方法、装置及终端
CN104679570A (zh) * 2015-03-24 2015-06-03 新余兴邦信息产业有限公司 图片的加载显示方法、设备和系统

Also Published As

Publication number Publication date
CN104679570A (zh) 2015-06-03
US20160284317A1 (en) 2016-09-29

Similar Documents

Publication Publication Date Title
WO2016150049A1 (zh) 图片的加载显示方法、设备和系统
US9690764B1 (en) Delivery and display of page previews using shadow DOM
US11270007B2 (en) Systems and methods for embedding data in remote session displays
US10516903B2 (en) Method and apparatus for transmitting video data
US9058662B2 (en) Systems and methods for non-destructive editing of digital images
CN106713964A (zh) 一种生成视频摘要视点图的方法及装置
RU2007133104A (ru) Цифровая промежуточная (цп) обработка и распространение с масштабируемым сжатием при пост-обработке кинофильмов
US10701454B2 (en) Image providing service
CN104199728B (zh) 图片传送信息展示方法和装置
WO2020001488A1 (zh) 文件下载方法及装置、客户端和计算机可读存储介质
JP6543764B2 (ja) デジタルビデオコンテンツのセキュリティ認証方法及びそのシステム
CN109272449A (zh) 图片显示方法及装置、计算机装置及可读存储介质
US10915239B2 (en) Providing bitmap image format files from media
CN106878145B (zh) 一种自定义图片的显示方法、显示装置及显示系统
WO2013097234A1 (zh) 处理业务的方法和系统
JP2017192080A (ja) 画像圧縮装置、画像復号装置、画像圧縮方法及び画像圧縮プログラム
US9465779B2 (en) Microblog-based document file sharing method and device
CN114747228A (zh) 图像纪念物生成
CN106611127A (zh) 云计算中一种信息存取的加密方法
US20230208618A1 (en) Image Model File Transmission
CN116028745A (zh) 一种图片渲染方法及系统、存储介质、计算机设备
CN112911329A (zh) 窗口直播方法、装置、电子设备和计算机可读存储介质
EP4327508A1 (en) Method and apparatus of coap support for iot streaming devices in a media scene description system
JP2021526747A (ja) 安全かつデバイス間で一貫性のあるビデオ圧縮
CN112068838A (zh) 基于JSP Ueditor实现单图跨域上传及回显的方法、系统和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15885983

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 30/11/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15885983

Country of ref document: EP

Kind code of ref document: A1