Patent ID: 9740671
Date: 2017-08-22
CPC Classifications: G06F

Claim:
1. A webpage generating method, comprising: obtaining a size of an original design file, wherein the size includes display dimensions of the original design file; obtaining a level of each layer folder comprised in the original design file, and combining all layers comprised in layer folders levels of which are greater than a preset value into one layer; obtaining layer information of a layer comprised in the original design file in which all the layers comprised in the layer folders, the levels of which are greater than the preset value, are combined into one layer; obtaining a material comprised in the layer; and generating a webpage according to the size of the original design file, the layer information of the layer, and the material comprised in the layer; wherein obtaining the material comprised in the layer comprises: determining whether a type of the layer is text layer or image layer, wherein in response to determining that materials comprised in the layer is all text content, determining that the type of the layer is the text layer, and in response to determining that the materials comprised in the layer comprises both image materials and text content or comprises all image materials, determining that the type of the layer is image layer; obtaining text content comprised in the layer in response to determining the type of the layer is text layer, and determining that the obtained text content is the material comprised in the layer; and taking a screenshot of a smallest area comprising all materials comprised in the layer in response to determining the type of the layer is image layer, obtaining the screenshot corresponding to the layer, and determining that the screenshot is the material comprised in the layer.