A method and terminal for restoring image cropping effect in powerpoint
A picture and terminal technology, applied in the field of image processing, can solve the problems that affect the efficiency of picture cropping effect and consume a lot of time, and achieve the effect of solving a lot of time-consuming and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0067] Please refer to figure 1 , a method for restoring the image cropping effect in PowerPoint, specifically, including steps:
[0068] S1, read the XML file in the PPTX compressed format file;
[0069] Specifically, the zlib function library is used to decompress the specified file content in the PPTX compressed format file, and the RAPIDxml parsing library is used to read the XML file in the specified file content.
[0070] S2. Traverse the node content in the XML file to determine the cropped picture;
[0071] Specifically, the step S2 includes:
[0072] Obtain all files representing the content of the PPT page number under the XML file, traverse the image nodes under the file, and judge whether there is a node under the image node that identifies the cropped image, if it exists, execute step S3, if not , it will not be processed.
[0073] Specifically, obtain the decompressed file directory of the PPTX compressed format file, search for all the content files slide#.x...
Embodiment 2
[0094] Please refer to figure 2 , a terminal 1 for restoring the image cropping effect in PowerPoint, the terminal 1 includes a memory 2, a processor 3 and a computer program stored in the memory 2 and operable on the processor 3, and the processor 3 executes The computer program realizes each step in the first embodiment.
[0095] To sum up, the present invention provides a method and terminal for restoring the image cropping effect in PowerPoint. Since the XML file contains mark symbols used to describe the content of the PPT page, it can be used to explain the element information in the PPT. Therefore, through zlib Decompress the PPTX compressed format file, use RAPIDxml to read the node content in the decompressed XML file of the PPTX file, and quickly locate all the cropped pictures in the file. Since the cropping of the picture involves the change of the picture pixel, the analysis Identify the cropped node of the picture, and obtain the cropping percentage of the uppe...
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