Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Extracting transparency (alpha), Freeform shapes, and images in Picture fill #1020

Open
YeolJ00 opened this issue Oct 16, 2024 · 2 comments

Comments

@YeolJ00
Copy link

YeolJ00 commented Oct 16, 2024

I've found that some elements that the current library provides functionalities to draw are not extractable from the .pptx file.
I would enjoy some symmetry in the functionalities, as I am trying to check if I can reconstruct pptx slides after extracting/abstracting their information.
It seems to be that you are aware of these missing features but filing a feature request anyways.

  1. The first one is extracting transparency from shapes. Probably should be done in shape.fill perhaps? I believe that transparency applies to all fill types.

  2. Another one is extracting the path (verticies) from freeform shapes. This seems more difficult than the previous one, but it would be nice to have access to at least some raw form of the path.

  3. The last request is extracting byte images in the Picture fill type. This somewhat relates to the transparency issue as Picture fill in shapes is usually used to make transparent images.

I hope I didn't smash unrelated requests in a single issue. But I found that these share similarities in terms of missing symmetry on the extraction side.

@MartinPacker
Copy link

It's probably not as "shrink wrapped " as you'd like but I expect the information is in the XML.

@YeolJ00
Copy link
Author

YeolJ00 commented Oct 16, 2024

@MartinPacker You are 100% right. The XML should provide what I need. That is also the reason why I made this a feature request. It would be nice if the library supports more of get_attr-style functions, so that one wouldn't have to dabble between parsing XML themselves and using the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants