Psd import method for quickly generating H5 page based on web end
A page and fast technology, applied in the field of psd import based on the quick generation of H5 pages based on the web, can solve the problems of lack, incomplete element analysis, single psd upload, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0017] Embodiment 1, with reference to figure 1 , a psd import method for quickly generating H5 pages based on the web, including the following steps:
[0018] S1: Introduce the psd plug-in;
[0019] var PSD = require('psd');
[0020] S2: Use the psd plug-in to parse the psd file, analyze the data of each layer of the psd file, obtain the tree structure of the psd file, and return the data;
[0021] var psd = PSD.fromFile("path / file.psd");
[0022] psd.tree() method;
[0023] S3: Perform corresponding operations on the nodes of the psd file tree structure after recombination and analysis;
[0024] S4: Collect layer information and send it to the background;
[0025] S5: Integrate the data returned by the background and generate an H5 page.
[0026] In the present invention, the psd plug-in in S1 is psd.js, the data in S2 includes the file structure, the size of the file, the size of the layer, the name of the layer and font data, and the method for correspondingly operat...
Embodiment 2
[0027] Embodiment 2, with reference to figure 1 , which differs from Embodiment 1 only in that the method for performing corresponding operations on nodes in S3 is the isRoot() method.
Embodiment 3
[0028] Embodiment 3, with reference to figure 1 , which differs from Embodiment 1-2 only in that the method for performing corresponding operations on nodes in S3 is the children() method.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com