Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2021-03-30
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In order to crop the original picture in the PPTX file into the same effect as after PowerPoint cropping, it is necessary to analyze the cropping parameters of the cropped picture, and now usually save the PPTX file as a web page format with the help of PowerPoint and save it in a file Under the folder, all the pictures in the PPT in the PPTX file are stored under the folder, including the original picture and the picture processed by PowerPoint, among which the jpg format is the original picture, and the gif format is the picture after PowerPoint processing. For pictures in gif format, check the picture properties, obtain and record the pixels of the picture, import the original picture into PS, and process the original picture according to the recorded corresponding processed picture pixels, or directly import the original picture In PowerPoint, click the cropping option under the format in PowerPoint to crop the picture accordingly. However, although the above method can achieve the restoration effect, it will take a lot of time to check the pixels of the picture one by one and use the drawing library to restore it, which will affect the restoration of PowerPoint. The efficiency of image cropping effect in

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and terminal for restoring image cropping effect in powerpoint
  • A method and terminal for restoring image cropping effect in powerpoint

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a terminal for restoring a picture clipping effect in PowerPoint. The method comprises the following steps of: reading an XML (Extensive Makeup Language) file in aPPTX compressed format file; traversing node contents in the XML file, and determining a clipped picture; obtaining a cutting parameter and a picture resource of the picture according to the cut picture; and cutting the picture resource according to the cutting parameter, under the condition that the picture in the PPTX file does not depend on PowerPoint, simulating the PowerPoint. The purpose ofrapidly and accurately restoring the picture clipping effect is achieved, meanwhile, the problem that a large amount of time is consumed due to the fact that picture pixels need to be checked one byone and pictures need to be restored one by one when the clipping effect is restored traditionally is effectively solved, and the efficiency of restoring the picture clipping effect in PowerPoint is improved.

Description

technical field [0001] The invention relates to the field of image processing, in particular to a method and a terminal for restoring the cropping effect of a picture in PowerPoint. Background technique [0002] In order to crop the original picture in the PPTX file into the same effect as after PowerPoint cropping, it is necessary to analyze the cropping parameters of the cropped picture, and now usually save the PPTX file as a web page format with the help of PowerPoint and save it in a file Under the folder, all the pictures in the PPT in the PPTX file are stored under the folder, including the original picture and the picture processed by PowerPoint, among which the jpg format is the original picture, and the gif format is the picture after PowerPoint processing. For pictures in gif format, check the picture properties, obtain and record the pixels of the picture, import the original picture into PS, and process the original picture according to the recorded correspondin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/0484G06F16/51G06F16/81
CPCG06F3/04845G06F16/51G06F16/81
Inventor 刘德建林严郭玉湖陈宏
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products