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

Allow reading of TargetMode for external images #1176

Closed
wants to merge 2 commits into from

Conversation

FBnil
Copy link

@FBnil FBnil commented Oct 27, 2017

Abstract:
This patch changes the reader in order to handle TargetMode="External"
Closes:
#1173

Explanation:

When reading from documents.xml.rels, we not often see external images, like this:
<Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="https://somewhere/image.png" TargetMode="External"/>

The TargetMode needs to be read and understood, to NOT default to a ZIP container for type "image" if the image is external.
Failing to do so results in an InvalidImageException while reading the file.

@troosan
Copy link
Contributor

troosan commented Nov 5, 2017

@FBnil thanks for this, I manually did (almost) the same changes to avoid merge issues.

@troosan troosan closed this Nov 5, 2017
@FBnil FBnil deleted the allow_external_images branch November 5, 2017 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants