[go: up one dir, main page]

CN114791989A - Method, system and storage medium for analyzing PSD file based on browser - Google Patents

Method, system and storage medium for analyzing PSD file based on browser Download PDF

Info

Publication number
CN114791989A
CN114791989A CN202210580529.XA CN202210580529A CN114791989A CN 114791989 A CN114791989 A CN 114791989A CN 202210580529 A CN202210580529 A CN 202210580529A CN 114791989 A CN114791989 A CN 114791989A
Authority
CN
China
Prior art keywords
browser
layer data
file
psd file
psd
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
CN202210580529.XA
Other languages
Chinese (zh)
Other versions
CN114791989B (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.)
Xiamen Draft Co ltd
Gaoding Xiamen Technology Co Ltd
Original Assignee
Xiamen Draft Co ltd
Gaoding Xiamen Technology 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 Xiamen Draft Co ltd, Gaoding Xiamen Technology Co Ltd filed Critical Xiamen Draft Co ltd
Priority to CN202210580529.XA priority Critical patent/CN114791989B/en
Publication of CN114791989A publication Critical patent/CN114791989A/en
Application granted granted Critical
Publication of CN114791989B publication Critical patent/CN114791989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/904Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

本发明涉及一种基于浏览器的PSD文件解析方法、系统、存储介质,方法包含以下步骤:加载并解析PSD文件,得到与所述PSD文件相对应的二进制数据;根据PSD格式规则,从所述二进制数据中提取所述PSD文件的文件结构,从所述文件结构中读取图层数据,构建图层列表;根据所述浏览器的渲染规则将所述图层列表中相应的内容转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点;通过浏览器根据以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点渲染得到所述PSD文件对应呈现的内容。本方案通过在浏览器环境对PDF文件进行处理,直接输出对应的HTML结构,交由浏览器进行渲染,而无需专用软件进行解析。

Figure 202210580529

The invention relates to a browser-based PSD file parsing method, system and storage medium. The method comprises the following steps: loading and parsing a PSD file to obtain binary data corresponding to the PSD file; The file structure of the PSD file is extracted from the binary data, the layer data is read from the file structure, and a layer list is constructed; according to the rendering rules of the browser, the corresponding content in the layer list is converted into The document object model DOM node described in the HTML+Cascading Style Sheet CSS format; the content corresponding to the PSD file is obtained by rendering the DOM node described in the HTML+Cascading Style Sheet CSS format by the browser . This solution processes the PDF file in the browser environment, directly outputs the corresponding HTML structure, and hands it to the browser for rendering without special software for parsing.

Figure 202210580529

Description

一种基于浏览器的PSD文件解析方法、系统、存储介质A browser-based PSD file parsing method, system and storage medium

技术领域technical field

本发明涉及浏览器应用领域,具体指有一种基于浏览器的PSD文件解析方法、系统、存储介质。The invention relates to the field of browser application, in particular to a browser-based PSD file parsing method, system and storage medium.

背景技术Background technique

PSD格式(Photoshop Document)的文件是一种图形文件格式,需要采用专用软件进行读取、解析。常规的手段是购买Adobe Photoshop并在电脑上安装,然后再用AdobePhotoshop打开对应的PSD文件,这很大局限于客户端的环境,在一些性能配置较为低下的电脑环境中难以顺畅运行,且当切换到另一台没有安装相应软件的电脑上,就无法打开PSD格式的文件。The PSD format (Photoshop Document) file is a graphic file format, which needs to be read and parsed by special software. The conventional method is to purchase Adobe Photoshop and install it on the computer, and then use Adobe Photoshop to open the corresponding PSD file. This is largely limited to the client-side environment, and it is difficult to run smoothly in some computer environments with low performance configurations, and when switching to another PSD files cannot be opened on a computer without the corresponding software installed.

现有的浏览器没有实现相关功能的现有技术。Existing browsers have no prior art for implementing related functions.

针对上述的现有技术存在的问题设计一种基于浏览器的PSD文件解析方法、系统、存储介质是本发明研究的目的。The purpose of the present invention is to design a browser-based PSD file parsing method, system, and storage medium for the above-mentioned problems in the prior art.

发明内容SUMMARY OF THE INVENTION

针对上述现有技术存在的问题,本发明在于提供一种基于浏览器的PSD文件解析方法、系统、存储介质,能够有效解决上述现有技术存在的问题。Aiming at the problems existing in the above-mentioned prior art, the present invention provides a browser-based PSD file parsing method, system, and storage medium, which can effectively solve the existing problems in the above-mentioned prior art.

本发明的技术方案是:The technical scheme of the present invention is:

一种基于浏览器的PSD文件解析方法,包含以下步骤:A browser-based PSD file parsing method, including the following steps:

加载并解析PSD文件,得到与所述PSD文件相对应的二进制数据;Loading and parsing the PSD file to obtain binary data corresponding to the PSD file;

根据PSD格式规则,从所述二进制数据中提取所述PSD文件的文件结构,从所述文件结构中读取图层数据,构建图层列表;According to the PSD format rule, extract the file structure of the PSD file from the binary data, read the layer data from the file structure, and construct a layer list;

根据所述浏览器的渲染规则将所述图层列表中相应的内容转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点;According to the rendering rules of the browser, the corresponding content in the layer list is converted into a document object model DOM node described in the HTML+Cascading Style Sheet CSS format;

通过浏览器根据以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点渲染得到所述PSD文件对应呈现的内容。The content corresponding to the PSD file is obtained by rendering the content of the PSD file according to the document object model DOM node described in the HTML+Cascading Style Sheet CSS format by the browser.

进一步地,所述加载并解析PSD文件,得到与所述PSD文件相对应的二进制数据包括:Further, the loading and parsing of the PSD file to obtain binary data corresponding to the PSD file include:

通过浏览器将所述PSD文件加载到内存,调用浏览器的FileReader.readAsArrayBuffer接口读取所述PSD文件,得到与所述PSD文件相对应的二进制数据。Load the PSD file into the memory through the browser, call the FileReader.readAsArrayBuffer interface of the browser to read the PSD file, and obtain binary data corresponding to the PSD file.

进一步地,所述图层数据至少包括图片图层数据、文字图层数据、形状图层数据其中的一种或多种。Further, the layer data includes at least one or more of picture layer data, text layer data, and shape layer data.

进一步地,所述从所述文件结构中读取图层数据,构建图层列表包括:Further, the step of reading layer data from the file structure and constructing a layer list includes:

若所述图层数据包括图片图层数据,则按照图层的排列顺序从所述图片图层数据中逐个读取;If the layer data includes picture layer data, read one by one from the picture layer data according to the arrangement order of the layers;

若所述图层数据包括文字图层数据和/或形状图层数据,则直接读取文字图层数据和/或形状图层数据。If the layer data includes text layer data and/or shape layer data, the text layer data and/or shape layer data are directly read.

进一步地,所述按照图层的排列顺序从所述图片图层数据中逐个读取包括:Further, the reading from the picture layer data one by one according to the arrangement order of the layers includes:

从所述文件结构中读取图片数据,从所述图片数据中提取各个图片的ID,根据所述各个图片的ID查找并读取逐个图片像素数据。The picture data is read from the file structure, the ID of each picture is extracted from the picture data, and the pixel data of each picture is searched and read according to the ID of each picture.

进一步地,若所述图层数据包括图片图层数据,所述将所述图层列表转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点包括:Further, if the layer data includes image layer data, converting the layer list into a document object model DOM node described in the HTML+Cascading Style Sheet CSS format includes:

利用所述浏览器的CanvasRenderingContext2D.putImageData接口将所述图片图层数据根据图层的排列顺序绘制在所述浏览器的HTMLCanvasElement画布上,并调用所述浏览器的HTMLCanvasElemen.toDataURL接口得到所述图片图层数据的统一资源定位符URL;Use the CanvasRenderingContext2D.putImageData interface of the browser to draw the picture layer data on the HTMLCanvasElement canvas of the browser according to the arrangement order of the layers, and call the HTMLCanvasElemen.toDataURL interface of the browser to obtain the picture image The Uniform Resource Locator URL of the layer data;

将所述URL转换为以HTML描述的所述DOM节点的节点类型,以及将所述图片图层数据中的图片属性转换为CSS格式的描述内容。Convert the URL into the node type of the DOM node described in HTML, and convert the image attribute in the image layer data into description content in CSS format.

进一步地,若所述图层数据包括文字图层数据和/或形状图层数据,所述将所述图层列表转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点包括:Further, if the layer data includes text layer data and/or shape layer data, converting the layer list into a document object model DOM node described in the HTML+Cascading Style Sheet CSS format. include:

将文字图层数据和/或形状图层数据对应的元素类型转换为以HTML描述的所述DOM节点的节点类型,以及将所述文字图层数据和/或形状图层数据中的信息属性转换为CSS格式的描述内容。Convert the element type corresponding to the text layer data and/or the shape layer data to the node type of the DOM node described in HTML, and convert the information attributes in the text layer data and/or the shape layer data Description content in CSS format.

进一步地,所述通过浏览器根据以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点渲染得到所述PSD文件对应呈现的内容包括:Further, the content rendered corresponding to the PSD file obtained by the browser according to the document object model DOM node described in the HTML+Cascading Style Sheet CSS format includes:

调用所述浏览器的HTMLElement.appendChild功能,将所述DOM节点渲染到所述浏览器的页面,得到所述PSD文件对应呈现的内容。The HTMLElement.appendChild function of the browser is called to render the DOM node to the page of the browser to obtain the corresponding presented content of the PSD file.

一种基于浏览器的PSD文件解析系统,包括以下模块:A browser-based PSD file parsing system, including the following modules:

二进制转换模块,用于加载并解析PSD文件,得到与所述PSD文件相对应的二进制数据;A binary conversion module for loading and parsing the PSD file to obtain binary data corresponding to the PSD file;

图层列表构建模块,用于根据PSD格式规则,从所述二进制数据中提取所述PSD文件的文件结构,从所述文件结构中读取图层数据,构建图层列表;a layer list building module, configured to extract the file structure of the PSD file from the binary data according to the PSD format rule, read layer data from the file structure, and construct a layer list;

网页格式转换模块,用于根据所述浏览器的渲染规则将所述图层列表中相应的内容转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点;a web page format conversion module, configured to convert the corresponding content in the layer list into a document object model DOM node described in the HTML+Cascading Style Sheet CSS format according to the rendering rules of the browser;

渲染模块,用于通过浏览器根据以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点渲染得到所述PSD文件对应呈现的内容。The rendering module is used for rendering the content corresponding to the PSD file through the browser rendering according to the document object model DOM node described in the hypertext markup language HTML+cascading style sheet CSS format.

一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现所述的一种基于浏览器的PSD文件解析方法。A computer-readable storage medium storing a computer program, when the computer program is executed by a processor, implements the browser-based PSD file parsing method.

因此,本发明提供以下的效果和/或优点:Accordingly, the present invention provides the following effects and/or advantages:

本申请通过从所述文件结构中读取图层数据,构建图层列表,将其转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点,可以被浏览器识别、展示,从而无需Photoshop软件即可浏览PSD文件。本发明可以使用户脱离相关软件,只要有浏览器,即可做到浏览PSD文件。本方案通过在浏览器环境对PSD文件进行处理,直接输出对应的HTML结构,交由浏览器进行渲染,可以省掉安装软件的麻烦,也能更好的夸设备、跨平台,只要有浏览器的设备(手机、Pad等均可),都能打开。The present application reads the layer data from the file structure, constructs a layer list, and converts it into a document object model DOM node described in the HTML+Cascading Style Sheet CSS format, which can be recognized and displayed by the browser. , allowing you to browse PSD files without Photoshop software. The present invention can make the user get away from the relevant software, so long as there is a browser, the PSD file can be browsed. This solution processes the PSD file in the browser environment, directly outputs the corresponding HTML structure, and hands it to the browser for rendering, which can save the trouble of installing software, and can better praise the device and cross-platform, as long as there is a browser Any device (mobile phone, Pad, etc.) can be opened.

本申请根据PSD图层数据中的具体内容,将所要转换超文本标记语言HTML+层叠样式表CSS格式的内容的数据具体区分为图片、图形、文字,根据不同的数据采用不同的策略进行转换,能够得到相应效果的内容。具体地,利用所述浏览器的CanvasRenderingContext2D.putImageData接口将所述图片图层数据根据图层的排列顺序绘制在所述浏览器的HTMLCanvasElement画布上,并调用所述浏览器的HTMLCanvasElemen.toDataURL接口得到所述图片图层数据的统一资源定位符URL;将所述URL转换为以HTML描述的所述DOM节点的节点类型,以及将所述图片图层数据中的图片属性转换为CSS格式的描述内容。将文字图层数据和/或形状图层数据对应的元素类型转换为以HTML描述的所述DOM节点的节点类型,以及将所述文字图层数据和/或形状图层数据中的信息属性转换为CSS格式的描述内容。可以分别得到相应的内容对应的节点和CSS格式。According to the specific content in the PSD layer data, the application specifically divides the data to be converted into the content of the HTML+Cascading Style Sheet CSS format into pictures, graphics and text, and adopts different strategies to convert according to different data, which can get the corresponding effect. Specifically, use the CanvasRenderingContext2D.putImageData interface of the browser to draw the image layer data on the HTMLCanvasElement canvas of the browser according to the arrangement order of the layers, and call the HTMLCanvasElemen.toDataURL interface of the browser to get the result. Describe the Uniform Resource Locator URL of the picture layer data; convert the URL into the node type of the DOM node described in HTML, and convert the picture attribute in the picture layer data into the description content in CSS format. Convert the element type corresponding to the text layer data and/or the shape layer data to the node type of the DOM node described in HTML, and convert the information attributes in the text layer data and/or the shape layer data Description content in CSS format. The node and CSS format corresponding to the corresponding content can be obtained respectively.

应当明白,本发明的上文的概述和下面的详细说明是示例性和解释性的,并且意在提供对如要求保护的本发明的进一步的解释。It is to be understood that both the foregoing general description and the following detailed description of the present invention are exemplary and explanatory and are intended to provide further explanation of the invention as claimed.

附图说明Description of drawings

图1为本发明的流程示意图。FIG. 1 is a schematic flow chart of the present invention.

图2-3为PSD文件结构的示意图。Figure 2-3 is a schematic diagram of the structure of the PSD file.

图4为待解析的PSD文件用Photoshop打开的呈现效果图。Figure 4 is a rendering effect diagram of the PSD file to be parsed opened with Photoshop.

图5为CanvasRenderingContext2D.putImageData接口绘制的效果图。Figure 5 shows the renderings drawn by the CanvasRenderingContext2D.putImageData interface.

图6为本发明的浏览器处理过程示意图。FIG. 6 is a schematic diagram of a browser processing process of the present invention.

具体实施方式Detailed ways

为了便于本领域技术人员理解,现将实施例结合附图对本发明作进一步详细描述:应了解到,在本实施例中所提及的步骤,除特别说明其顺序的,均可依实际需要调整其前后顺序,甚至可同时或部分同时执行,In order to facilitate the understanding of those skilled in the art, the present invention will now be further described in detail with reference to the accompanying drawings. their sequence, and can even be executed simultaneously or partially simultaneously,

参考图1、6,一种基于浏览器的PSD文件解析方法,包含以下步骤:Referring to Figures 1 and 6, a browser-based PSD file parsing method includes the following steps:

S1,加载并解析PSD文件,得到与所述PSD文件相对应的二进制数据;S1, load and parse the PSD file to obtain binary data corresponding to the PSD file;

本步骤中,通过浏览器加载并解析PSD文件,此时,PSD文件被加载到内存,从而得到与所述PSD文件相对应的二进制数据。浏览器加载文件到内存并得到二进制数据的过程为现有技术,在此不展开赘述。本实施例中,PSD文件的格式是一种图形文件,其来源是由Adobe公司的图像处理软件Photoshop所生成的,如图2或3所示,PSD格式的文件结构包含了图层、通道、参考线、注解和颜色模式等信息。现有技术中,PSD格式的文件一般需要通过Photoshop软件来进行查看或者编辑。其中还包含了对PSD文件的文件结构还包含了头文件描述信息,用于对PSD文件的一些说明。In this step, the PSD file is loaded and parsed through the browser, and at this time, the PSD file is loaded into the memory, thereby obtaining binary data corresponding to the PSD file. The process that the browser loads the file into the memory and obtains the binary data is the prior art, which will not be described in detail here. In this embodiment, the format of the PSD file is a graphic file, the source of which is generated by Adobe's image processing software Photoshop, as shown in Figure 2 or 3, the file structure of the PSD format includes layers, channels, Information such as guides, annotations, and color modes. In the prior art, files in PSD format generally need to be viewed or edited through Photoshop software. It also includes the file structure of the PSD file and also includes the header file description information for some descriptions of the PSD file.

S2,根据PSD格式规则,从所述二进制数据中提取所述PSD文件的文件结构,从所述文件结构中读取图层数据,构建图层列表。S2, according to the PSD format rule, extract the file structure of the PSD file from the binary data, read the layer data from the file structure, and construct a layer list.

进一步地,参考图3,所述图层数据至少包括图片图层数据、文字图层数据、形状图层数据、遮罩图层数据等其中的一种或多种。Further, referring to FIG. 3 , the layer data includes at least one or more of picture layer data, text layer data, shape layer data, mask layer data, and the like.

PSD文件是一个由多张、多层图像叠加的图像数据。PSD的格式规范除了规定了PSD文件可以包含如图2所示的图层、通道、参考线、注解和颜色模式等信息,还规定了这些数据储存的位置、储存压缩规范、储存的内容的描述等,现有技术正是通过Photoshop软件根据此规范进行读取,从而得到相应的文件结构,再从文件结构中提取图层、通道、参考线、注解和颜色模式等信息,在根据编辑好的内容进行展示、合成、遮挡等操作,从而得到对应的内容。A PSD file is an image data that is superimposed by multiple, multi-layered images. The PSD format specification not only specifies that the PSD file can contain information such as layers, channels, reference lines, annotations, and color modes as shown in Figure 2, but also specifies the location where these data are stored, the storage compression specification, and the description of the stored content. Etc., the existing technology is to use Photoshop software to read according to this specification, so as to obtain the corresponding file structure, and then extract information such as layers, channels, reference lines, annotations and color modes from the file structure. The content is displayed, synthesized, blocked, etc., so as to obtain the corresponding content.

接下来,构建图层列表。Next, build the layer list.

PSD文件中包含了多个图层,每一层图层对应一个图片,该图片可以是图像、文本等。本步骤这种通过读取每一图层,再将每一图层的相关信息进行汇总,例如文字图层的话可以获取其字体、大小、颜色等相关信息,图片图层的话可以获取其格式、宽度、高度等信息。将这些信息汇总后,排列并汇总成一个图层列表。The PSD file contains multiple layers, each layer corresponds to an image, which can be an image, text, etc. In this step, by reading each layer, and then summarizing the relevant information of each layer, for example, the font, size, color and other related information of the text layer can be obtained, and the format, size, and color of the image layer can be obtained. width, height, etc. After summarizing this information, arrange and summarize into a layer list.

进一步地,所述从所述文件结构中读取图层数据,构建图层列表包括:Further, the step of reading layer data from the file structure and constructing a layer list includes:

若所述图层数据包括图片图层数据,则按照图层的排列顺序从所述图片图层数据中逐个读取;If the layer data includes picture layer data, read one by one from the picture layer data according to the arrangement order of the layers;

若所述图层数据包括文字图层数据和/或形状图层数据,则直接读取文字图层数据和/或形状图层数据。If the layer data includes text layer data and/or shape layer data, the text layer data and/or shape layer data are directly read.

由于在PSD文件结构中,图片图层是按先后顺序进行保存的。同时,图层数据还可能包括其他,例如文字、形状(矢量图),本步骤对不同的图层数据选择不同的读取策略。如果是图片图层,则按图层的排列顺序猪哥读取,如果是文字图层数据和/或形状图层数据,则直接读取文字图层数据和/或形状图层数据。Because in the PSD file structure, the picture layers are saved in sequence. At the same time, the layer data may also include others, such as text and shapes (vector graphics). In this step, different reading strategies are selected for different layer data. If it is a picture layer, it will be read in the order of layers, and if it is text layer data and/or shape layer data, it will directly read text layer data and/or shape layer data.

例如根据图4的内容,图4中包含了一张空白的背景作为图形图层、一张小于背景的猫图片作为图片、一行“我是一只猫”的文字作为文字。按照上述步骤汇总的图层列表如下所示:For example, according to the content of Figure 4, Figure 4 includes a blank background as a graphic layer, a cat picture smaller than the background as a picture, and a line of text "I am a cat" as text. The list of layers summarized following the steps above looks like this:

Figure BDA0003663577140000071
Figure BDA0003663577140000071

Figure BDA0003663577140000081
Figure BDA0003663577140000081

Figure BDA0003663577140000091
Figure BDA0003663577140000091

S3,根据所述浏览器的渲染规则将所述图层列表中相应的内容转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点;S3, according to the rendering rule of the browser, the corresponding content in the layer list is converted into a document object model DOM node described in the HTML+Cascading Style Sheet CSS format;

具体地,S3.1若所述图层数据包括图片图层数据,所述将所述图层列表转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点包括:Specifically, in S3.1, if the layer data includes image layer data, converting the layer list into a document object model DOM node described in the HTML+Cascading Style Sheet CSS format includes:

利用所述浏览器的CanvasRenderingContext2D.putImageData接口将所述图片图层数据根据图层的排列顺序绘制在所述浏览器的HTMLCanvasElement画布上,并调用所述浏览器的HTMLCanvasElemen.toDataURL接口得到所述图片图层数据的统一资源定位符URL;Use the CanvasRenderingContext2D.putImageData interface of the browser to draw the picture layer data on the HTMLCanvasElement canvas of the browser according to the arrangement order of the layers, and call the HTMLCanvasElemen.toDataURL interface of the browser to obtain the picture image The Uniform Resource Locator URL of the layer data;

将所述URL转换为以HTML描述的所述DOM节点的节点类型,以及将所述图片图层数据中的图片属性转换为CSS格式的描述内容。Convert the URL into the node type of the DOM node described in HTML, and convert the image attribute in the image layer data into description content in CSS format.

本步骤中,CanvasRenderingContext2D.putImageData是Canvas 2D API将数据从已有的ImageData对象绘制到位图的方法。例如可以在浏览器中设置图片的绘制区域、绘制路径、绘制样式等。例如参考图5,可以通过CanvasRenderingContext2D.putImageData接口绘制一个如图5所示的包含宽度为w、高度为h的矩形、线、数字等。HTMLCanvasElement接口提供用于操纵<canvas>元素的布局和表示的属性和方法。通过CanvasRenderingContext2D.putImageData接口可以在HTMLCanvasElement画布上,根据图层列表的画布大小等信息画出一个对应的矩形,该矩形用于填充相应的图层进来。In this step, CanvasRenderingContext2D.putImageData is the method used by the Canvas 2D API to draw data from an existing ImageData object to a bitmap. For example, the drawing area, drawing path, drawing style, etc. of the picture can be set in the browser. For example, referring to FIG. 5 , a rectangle, line, number, etc. with a width of w and a height of h as shown in FIG. 5 can be drawn through the CanvasRenderingContext2D.putImageData interface. The HTMLCanvasElement interface provides properties and methods for manipulating the layout and presentation of the <canvas> element. Through the CanvasRenderingContext2D.putImageData interface, a corresponding rectangle can be drawn on the HTMLCanvasElement canvas according to the canvas size of the layer list and other information, and the rectangle is used to fill the corresponding layer.

HTMLCanvasElemen.toDataURL接口是用于返回一个包含图片展示的data URI。可以使用type参数其类型,默认为PNG格式。本步骤中通过将上述步骤解析得到的图片通过HTMLCanvasElemen.toDataURL接口得到与该图片相对应的URL。该URL地址作为后续的图片地址被浏览器调用,从而能够使浏览器读取到对应的图片。The HTMLCanvasElemen.toDataURL interface is used to return a data URI containing an image display. You can use the type parameter to set its type, which defaults to PNG format. In this step, a URL corresponding to the image is obtained through the HTMLCanvasElemen.toDataURL interface of the image obtained by the analysis in the above steps. The URL address is called by the browser as a subsequent image address, so that the browser can read the corresponding image.

通过调用浏览器的CanvasRenderingContext2D.putImageData把像素数据绘制到HTMLCanvasElement画布上,然后再调用HTMLCanvasElement.toDataURL,获取到图片地址(base64URL)。By calling CanvasRenderingContext2D.putImageData of the browser, the pixel data is drawn to the HTMLCanvasElement canvas, and then HTMLCanvasElement.toDataURL is called to obtain the image address (base64URL).

本步骤中,图4中的图片转换得到的图片转换成对应的DOM节点是:In this step, the image obtained by the image conversion in FIG. 4 is converted into the corresponding DOM node:

<imgsrc=”图片地址”/><imgsrc="image address"/>

对应的CSS样式是:The corresponding CSS styles are:

Figure BDA0003663577140000101
Figure BDA0003663577140000101

Figure BDA0003663577140000111
Figure BDA0003663577140000111

S3.2,若所述图层数据包括文字图层数据和/或形状图层数据,所述将所述图层列表转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点包括:S3.2, if the layer data includes text layer data and/or shape layer data, converting the layer list into a document object model DOM described in the HTML+Cascading Style Sheet CSS format Nodes include:

将文字图层数据和/或形状图层数据对应的元素类型转换为以HTML描述的所述DOM节点的节点类型,以及将所述文字图层数据和/或形状图层数据中的信息属性转换为CSS格式的描述内容。Convert the element type corresponding to the text layer data and/or the shape layer data to the node type of the DOM node described in HTML, and convert the information attributes in the text layer data and/or the shape layer data Description content in CSS format.

本步骤中,文字图层数据或形状图层数据可以在浏览器中直接转换,对于文字,根据图层列表中的信息,直接调用浏览器的document.createElement接口创建一个span的HTML元素,将文字内容填入span元素内即可,在加入文字对应带的CSS样式,调整文字的大小、字体、颜色等属性。对于矢量图层,也可以通过浏览器中绘制画布的接口直接绘制一个相应的图形,例如矩形,根据图层列表中的信息,调整该矩形的大小、变形等参数,得到对应的CSS样式。In this step, the text layer data or shape layer data can be directly converted in the browser. For text, according to the information in the layer list, directly call the browser's document.createElement interface to create a span HTML element, and convert the text The content can be filled in the span element. After adding the CSS style corresponding to the text, adjust the size, font, color and other attributes of the text. For vector layers, you can also directly draw a corresponding graphic, such as a rectangle, through the interface for drawing canvas in the browser. According to the information in the layer list, adjust the parameters such as the size and deformation of the rectangle to obtain the corresponding CSS style.

例如,本步骤中,图4中的文字转换成对应的DOM节点是:For example, in this step, the text in Figure 4 is converted into the corresponding DOM node:

<span>我是一只猫</span><span>I am a cat</span>

对应的CSS样式是:The corresponding CSS styles are:

Figure BDA0003663577140000112
Figure BDA0003663577140000112

Figure BDA0003663577140000121
Figure BDA0003663577140000121

S4,通过浏览器根据以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点渲染得到所述PSD文件对应呈现的内容。S4 , rendering the content corresponding to the PSD file by the browser according to the document object model DOM node described in the HTML+Cascading Style Sheet CSS format.

具体地,进一步地,所述通过浏览器根据以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点渲染得到所述PSD文件对应呈现的内容包括:Specifically, further, the content corresponding to the PSD file rendered by the browser according to the document object model DOM node described in the HTML+Cascading Style Sheet CSS format includes:

调用所述浏览器的HTMLElement.appendChild功能,将所述DOM节点渲染到所述浏览器的页面,得到所述PSD文件对应呈现的内容。The HTMLElement.appendChild function of the browser is called to render the DOM node to the page of the browser to obtain the corresponding presented content of the PSD file.

HTMLElement.appendChild接口可以通过HTML文档对象模型(DOM),可以通过多种方式更改HTML文件的运行时内容。用于AppendChild向现有文档添加新元素,或移动页面上的元素。最终在浏览器中得到与图4相同呈现画面的效果。The HTMLElement.appendChild interface can change the runtime content of an HTML file in a number of ways through the HTML Document Object Model (DOM). Use AppendChild to add new elements to an existing document, or to move elements on the page. Finally, in the browser, the same rendering effect as Figure 4 is obtained.

进一步地,所述加载并解析PSD文件,得到与所述PSD文件相对应的二进制数据包括:Further, the loading and parsing of the PSD file to obtain binary data corresponding to the PSD file include:

通过浏览器将所述PSD文件加载到内存,调用浏览器的FileReader.readAsArrayBuffer接口读取所述PSD文件,得到与所述PSD文件相对应的二进制数据。Load the PSD file into the memory through the browser, call the FileReader.readAsArrayBuffer interface of the browser to read the PSD file, and obtain binary data corresponding to the PSD file.

进一步地,所述按照图层的排列顺序从所述图片图层数据中逐个读取包括:Further, the reading from the picture layer data one by one according to the arrangement order of the layers includes:

从所述文件结构中读取图片数据,从所述图片数据中提取各个图片的ID,根据所述各个图片的ID查找并读取逐个图片像素数据。The picture data is read from the file structure, the ID of each picture is extracted from the picture data, and the pixel data of each picture is searched and read according to the ID of each picture.

由于图片的像素数据的数据量比较大,所以以引用的方式存储在图片数据部分,如果是图片图层,图层数据上会有一个图片数据的ID,可以根据此ID,去图片数据部分查找到对应的图片像素数据。从图3中的图片数据内去读取对应的图片像素数据。Since the data volume of the pixel data of the picture is relatively large, it is stored in the picture data section by reference. If it is a picture layer, there will be an ID of the picture data on the layer data. You can search the picture data section according to this ID. to the corresponding image pixel data. The corresponding picture pixel data is read from the picture data in FIG. 3 .

进一步提供一种基于浏览器的PSD文件解析系统,包括以下模块:Further provide a browser-based PSD file parsing system, including the following modules:

二进制转换模块,用于加载并解析PSD文件,得到与所述PSD文件相对应的二进制数据;A binary conversion module for loading and parsing the PSD file to obtain binary data corresponding to the PSD file;

图层列表构建模块,用于根据PSD格式规则,从所述二进制数据中提取所述PSD文件的文件结构,从所述文件结构中读取图层数据,构建图层列表;a layer list building module, configured to extract the file structure of the PSD file from the binary data according to the PSD format rule, read layer data from the file structure, and construct a layer list;

网页格式转换模块,用于根据所述浏览器的渲染规则将所述图层列表中相应的内容转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点;a web page format conversion module, configured to convert the corresponding content in the layer list into a document object model DOM node described in the HTML+Cascading Style Sheet CSS format according to the rendering rules of the browser;

渲染模块,用于通过浏览器根据以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点渲染得到所述PSD文件对应呈现的内容。The rendering module is used for rendering the content corresponding to the PSD file through the browser rendering according to the document object model DOM node described in the hypertext markup language HTML+cascading style sheet CSS format.

一种基于浏览器的PSD文件解析系统的工作原理与一种基于浏览器的PSD文件解析方法笔记本相同,在此不再赘述。The working principle of a browser-based PSD file parsing system is the same as that of a browser-based PSD file parsing method notebook, which will not be repeated here.

进一步提供一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现所述的一种基于浏览器的PSD文件解析方法。A computer-readable storage medium is further provided, storing a computer program, wherein the computer program implements the browser-based PSD file parsing method when the computer program is executed by the processor.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of the present invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims (10)

1.一种基于浏览器的PSD文件解析方法,其特征在于:包含以下步骤:1. a browser-based PSD file analysis method, is characterized in that: comprise the following steps: 加载并解析PSD文件,得到与所述PSD文件相对应的二进制数据;Loading and parsing the PSD file to obtain binary data corresponding to the PSD file; 根据PSD格式规则,从所述二进制数据中提取所述PSD文件的文件结构,从所述文件结构中读取图层数据,构建图层列表;According to the PSD format rule, extract the file structure of the PSD file from the binary data, read the layer data from the file structure, and construct a layer list; 根据所述浏览器的渲染规则将所述图层列表中相应的内容转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点;According to the rendering rules of the browser, the corresponding content in the layer list is converted into a document object model DOM node described in the HTML+Cascading Style Sheet CSS format; 通过浏览器根据以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点渲染得到所述PSD文件对应呈现的内容。The content corresponding to the PSD file is obtained by rendering the content of the PSD file according to the document object model DOM node described in the HTML+Cascading Style Sheet CSS format by the browser. 2.根据权利要求1所述的一种基于浏览器的PSD文件解析方法,其特征在于:所述加载并解析PSD文件,得到与所述PSD文件相对应的二进制数据包括:2. a kind of browser-based PSD file parsing method according to claim 1, is characterized in that: described loading and parsing PSD file, obtain the binary data corresponding to described PSD file comprises: 通过浏览器将所述PSD文件加载到内存,调用浏览器的FileReader.readAsArrayBuffer接口读取所述PSD文件,得到与所述PSD文件相对应的二进制数据。Load the PSD file into the memory through the browser, call the FileReader.readAsArrayBuffer interface of the browser to read the PSD file, and obtain binary data corresponding to the PSD file. 3.根据权利要求1所述的一种基于浏览器的PSD文件解析方法,其特征在于:所述图层数据至少包括图片图层数据、文字图层数据、形状图层数据其中的一种或多种。3. A browser-based PSD file parsing method according to claim 1, wherein the layer data comprises at least one of picture layer data, text layer data, and shape layer data or variety. 4.根据权利要求3所述的一种基于浏览器的PSD文件解析方法,其特征在于:所述从所述文件结构中读取图层数据,构建图层列表包括:4. a kind of browser-based PSD file parsing method according to claim 3, is characterized in that: described reading layer data from described file structure, constructing layer list comprises: 若所述图层数据包括图片图层数据,则按照图层的排列顺序从所述图片图层数据中逐个读取;If the layer data includes picture layer data, read one by one from the picture layer data according to the arrangement order of the layers; 若所述图层数据包括文字图层数据和/或形状图层数据,则直接读取文字图层数据和/或形状图层数据。If the layer data includes text layer data and/or shape layer data, the text layer data and/or shape layer data are directly read. 5.根据权利要求4所述的一种基于浏览器的PSD文件解析方法,其特征在于:所述按照图层的排列顺序从所述图片图层数据中逐个读取包括:5. A browser-based PSD file parsing method according to claim 4, wherein the reading from the picture layer data one by one according to the arrangement order of the layers comprises: 从所述文件结构中读取图片数据,从所述图片数据中提取各个图片的ID,根据所述各个图片的ID查找并读取逐个图片像素数据。The picture data is read from the file structure, the ID of each picture is extracted from the picture data, and the pixel data of each picture is searched and read according to the ID of each picture. 6.根据权利要求4所述的一种基于浏览器的PSD文件解析方法,其特征在于:若所述图层数据包括图片图层数据,所述将所述图层列表转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点包括:6. A browser-based PSD file parsing method according to claim 4, wherein if the layer data includes image layer data, the layer list is converted into a hypertext markup The Document Object Model DOM nodes described in the language HTML + Cascading Style Sheets CSS format include: 利用所述浏览器的CanvasRenderingContext2D.putImageData接口将所述图片图层数据根据图层的排列顺序绘制在所述浏览器的HTMLCanvasElement画布上,并调用所述浏览器的HTMLCanvasElemen.toDataURL接口得到所述图片图层数据的统一资源定位符URL;Use the CanvasRenderingContext2D.putImageData interface of the browser to draw the picture layer data on the HTMLCanvasElement canvas of the browser according to the arrangement order of the layers, and call the HTMLCanvasElemen.toDataURL interface of the browser to obtain the picture image The Uniform Resource Locator URL of the layer data; 将所述URL转换为以HTML描述的所述DOM节点的节点类型,以及将所述图片图层数据中的图片属性转换为CSS格式的描述内容。Convert the URL into the node type of the DOM node described in HTML, and convert the image attribute in the image layer data into description content in CSS format. 7.根据权利要求4所述的一种基于浏览器的PSD文件解析方法,其特征在于:若所述图层数据包括文字图层数据和/或形状图层数据,所述将所述图层列表转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点包括:7. A browser-based PSD file parsing method according to claim 4, wherein if the layer data includes text layer data and/or shape layer data, the layer The list is converted to a Document Object Model DOM node described in the HTML + Cascading Style Sheet CSS format including: 将文字图层数据和/或形状图层数据对应的元素类型转换为以HTML描述的所述DOM节点的节点类型,以及将所述文字图层数据和/或形状图层数据中的信息属性转换为CSS格式的描述内容。Convert the element type corresponding to the text layer data and/or the shape layer data to the node type of the DOM node described in HTML, and convert the information attributes in the text layer data and/or the shape layer data Description content in CSS format. 8.根据权利要求1所述的一种基于浏览器的PSD文件解析方法,其特征在于:所述通过浏览器根据以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点渲染得到所述PSD文件对应呈现的内容包括:8. a kind of browser-based PSD file parsing method according to claim 1, is characterized in that: described by browser according to the document object model DOM node described with hypertext markup language HTML+Cascading Style Sheet CSS format rendering to obtain The corresponding presented content of the PSD file includes: 调用所述浏览器的HTMLElement.appendChild功能,将所述DOM节点渲染到所述浏览器的页面,得到所述PSD文件对应呈现的内容。The HTMLElement.appendChild function of the browser is called to render the DOM node to the page of the browser to obtain the corresponding presented content of the PSD file. 9.一种基于浏览器的PSD文件解析系统,其特征在于:包括以下模块:9. a browser-based PSD file parsing system, is characterized in that: comprise the following modules: 二进制转换模块,用于加载并解析PSD文件,得到与所述PSD文件相对应的二进制数据;A binary conversion module for loading and parsing the PSD file to obtain binary data corresponding to the PSD file; 图层列表构建模块,用于根据PSD格式规则,从所述二进制数据中提取所述PSD文件的文件结构,从所述文件结构中读取图层数据,构建图层列表;a layer list building module, configured to extract the file structure of the PSD file from the binary data according to the PSD format rule, read layer data from the file structure, and construct a layer list; 网页格式转换模块,用于根据所述浏览器的渲染规则将所述图层列表中相应的内容转换为以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点;a web page format conversion module, configured to convert the corresponding content in the layer list into a document object model DOM node described in the HTML+Cascading Style Sheet CSS format according to the rendering rules of the browser; 渲染模块,用于通过浏览器根据以超文本标记语言HTML+层叠样式表CSS格式描述的文档对象模型DOM节点渲染得到所述PSD文件对应呈现的内容。The rendering module is used for rendering the content corresponding to the PSD file through the browser rendering according to the document object model DOM node described in the hypertext markup language HTML+cascading style sheet CSS format. 10.一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至8中任一项所述的一种基于浏览器的PSD文件解析方法。10. A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, a browser-based PSD file parsing according to any one of claims 1 to 8 is realized method.
CN202210580529.XA 2022-05-26 2022-05-26 A browser-based PSD file parsing method, system, and storage medium Active CN114791989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210580529.XA CN114791989B (en) 2022-05-26 2022-05-26 A browser-based PSD file parsing method, system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210580529.XA CN114791989B (en) 2022-05-26 2022-05-26 A browser-based PSD file parsing method, system, and storage medium

Publications (2)

Publication Number Publication Date
CN114791989A true CN114791989A (en) 2022-07-26
CN114791989B CN114791989B (en) 2025-09-26

Family

ID=82463517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210580529.XA Active CN114791989B (en) 2022-05-26 2022-05-26 A browser-based PSD file parsing method, system, and storage medium

Country Status (1)

Country Link
CN (1) CN114791989B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118131969A (en) * 2024-04-03 2024-06-04 北京希望在线线上学科培训学校 Method for batch generation of posters based on Photoshop files
CN119088496A (en) * 2024-11-08 2024-12-06 北京饼干科技有限公司 Cover generation method and device
CN119848123A (en) * 2024-12-30 2025-04-18 四川惟邦新创科技有限公司 System and method for converting TIF file into LDF

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130024763A1 (en) * 2011-07-20 2013-01-24 International Business Machines Corporation Utilizing a graphical transition to sort an interface element independently of a document object model
CN108399172A (en) * 2017-02-07 2018-08-14 阿里巴巴集团控股有限公司 A kind of generation method and device of polar plot
CN111767491A (en) * 2020-06-30 2020-10-13 杭州天谷信息科技有限公司 OFD document analysis display method and system based on browser
CN113918861A (en) * 2021-10-22 2022-01-11 城云科技(中国)有限公司 Icon library display method and device
CN114218418A (en) * 2021-12-03 2022-03-22 北京艺源酷科技有限公司 Method for vector editing design of multiple types of files

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130024763A1 (en) * 2011-07-20 2013-01-24 International Business Machines Corporation Utilizing a graphical transition to sort an interface element independently of a document object model
CN108399172A (en) * 2017-02-07 2018-08-14 阿里巴巴集团控股有限公司 A kind of generation method and device of polar plot
CN111767491A (en) * 2020-06-30 2020-10-13 杭州天谷信息科技有限公司 OFD document analysis display method and system based on browser
CN113918861A (en) * 2021-10-22 2022-01-11 城云科技(中国)有限公司 Icon library display method and device
CN114218418A (en) * 2021-12-03 2022-03-22 北京艺源酷科技有限公司 Method for vector editing design of multiple types of files

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118131969A (en) * 2024-04-03 2024-06-04 北京希望在线线上学科培训学校 Method for batch generation of posters based on Photoshop files
CN119088496A (en) * 2024-11-08 2024-12-06 北京饼干科技有限公司 Cover generation method and device
CN119848123A (en) * 2024-12-30 2025-04-18 四川惟邦新创科技有限公司 System and method for converting TIF file into LDF

Also Published As

Publication number Publication date
CN114791989B (en) 2025-09-26

Similar Documents

Publication Publication Date Title
US9582477B2 (en) Content based ad display control
US10008009B1 (en) Method for generating dynamic vector graphics
CN104346322B (en) Document format processing unit and document format processing method
JP5209051B2 (en) Data system and method
JP4192150B2 (en) Presentation of HTML content on the small screen terminal display
KR101494844B1 (en) System for Transforming Chart Using Metadata and Method thereof
WO2008042977A2 (en) Environment-constrained dynamic page layout
KR20150079867A (en) Html5-protocol-based webpage presentation method and device
US9141596B2 (en) System and method for processing markup language templates from partial input data
CN114791988A (en) Browser-based PDF file analysis method, system and storage medium
CN114791989A (en) Method, system and storage medium for analyzing PSD file based on browser
CN105956133B (en) Method and device for displaying file on intelligent terminal
US20240428496A1 (en) Method and system for client-device transformation of static image delivered over distributed computer network
CN117421503A (en) Page rendering method, device, computer equipment and storage medium
WO2007103827A2 (en) Method and apparatus for associating text with animated graphics
Dengler et al. Scalable vector graphics (SVG) 1.1
JP6699730B2 (en) Drawing data generation program, drawing data generation device, and drawing data generation method
CN111768823B (en) SVG element-based medical expression editing method, device, equipment and medium
CN102663137B (en) A kind of method and system being applied in mobile terminal show webpage
KR20010088529A (en) System and method for editing and formatting electronic document
Sagar An SVG browser for XML languages
CN120430296B (en) WebPPT file export method, webPPT file export equipment and WebPPT file export product
KR20130105509A (en) Method and apparatus e-book providing
CN113703699B (en) Real-time output method and device for electronic file
US20190155878A1 (en) Method, system and computer-readable recording medium for editing svg format

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant