Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

EMF image support#196

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
eruffaldi wants to merge3 commits intopython-openxml:master
base:master
Choose a base branch
Loading
fromeruffaldi:master

Conversation

eruffaldi
Copy link

This patch allows to add EMF images. EMF contains size in 0.01 mm units, so I have picked 300 DPI for computing pixel size.

Provided also a sample script with EMF for testing

@JustMe85
Copy link

As you described it it doesn't work for me. I had to change the signature offset (image.__init__.py) to 41 instead of 40. After this minor modification it seems to work just fine. Great addition, thanks!

@eruffaldi
Copy link
Author

@JustMe85 can we Merge it?

@malcolmroberts
Copy link

This would be really great to merge; any issues?

@JustMe85
Copy link

No issues That I know of

@malcolmroberts
Copy link

@scanny ? Are you active on this project?

aleksandarbos added a commit to openlawlibrary/python-docx that referenced this pull requestFeb 14, 2020
- implemented WMF support for python-docx based on existing PRpython-openxml#196
@spillz
Copy link

Anyone waiting in vain on this and needs EMF support without having to handroll their own patched version of the docx lib can try this monkey patch version of the PR code:

https://gist.github.com/spillz/1667dd8b04654f32b51133cb7f72b898

constructor-s, chenguuu, and Keee03 reacted with thumbs up emojijennifer-cooper and Keee03 reacted with heart emoji

@constructor-s
Copy link

Anyone waiting in vain on this and needs EMF support without having to handroll their own patched version of the docx lib can try this monkey patch version of the PR code:

https://gist.github.com/spillz/1667dd8b04654f32b51133cb7f72b898

Works wonderfully so far! Thank you. Hope this can one day be added without patching.

@100apm
Copy link

it works with me ,thx a lot!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@eruffaldi@JustMe85@malcolmroberts@spillz@constructor-s@100apm

[8]ページ先頭

©2009-2025 Movatter.jp