Webp picture format conversion method
A technology of picture format and conversion method, which is applied in the direction of using information identifiers to retrieve Web data, special data processing applications, website content management, etc. It can solve the problems that computers do not support Webp picture format, etc., and achieve enhanced functionality and easy use Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment
[0036] A method for converting a Webp image format, comprising the following steps:
[0037] S1. Receive the image file in webp format uploaded by the user;
[0038] S2. Convert the image file in webp format into canvas, and obtain base64 data through canvas.toDataURL;
[0039] S3. Assign the base64 data to the src attribute of the img tag in the html page for display, and assign the base64 data to the href of the a tag in the html page (download option is provided);
[0040] S4. Obtain the image download instruction sent by the user, use the download attribute of the a tag, generate and send the target download image file to the user according to the obtained image download instruction (format conversion and download).
[0041] In one of the embodiments, step S2 includes the following steps:
[0042] S21. Determine whether the cutting instruction sent by the user has been received, if yes, go to step S22, if not, go to step S23;
[0043] S22. Initialize the cropping plug-i...
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