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

Fix Ascii IFD reading as TIFF6.0 spec#1451

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
TheZ3ro wants to merge1 commit intopython-openxml:master
base:master
Choose a base branch
Loading
fromTheZ3ro:tiff-patch

Conversation

TheZ3ro
Copy link

@TheZ3roTheZ3ro commentedNov 29, 2024
edited
Loading

This PRfixes#187

TheTIFF6 specification writes:

Value/Offset
To save time and space the Value Offset contains the Value instead of pointing to
the Value if and only if the Value fits into 4 bytes. If the Value is shorter than 4
bytes, it is left-justified within the 4-byte Value Offset, i.e., stored in the lower-
numbered bytes. Whether the Value fits within 4 bytes is determined by the Type
and Count of the field.

python-docx by default uses the Value/Offset field as a offset for ASCII IFD, but sometime the Value/Offset field could contain directly the Value (if it contains a string with 4 or less characters including the final NULL byte/string terminator)

This is the case for the 2 pictures linked in issue#187 (theSoftware ASCII field contains8.3)
image

smaury reacted with rocket emoji
@TheZ3roTheZ3ro changed the titlefix Ascii IFD reading as TIFF6.0 specFix Ascii IFD reading as TIFF6.0 specNov 29, 2024
@TheZ3roTheZ3ro mentioned this pull requestNov 29, 2024
@TheZ3ro
Copy link
Author

@scanny can you kindly merge this? Thanks!

@TheZ3ro
Copy link
Author

any news on this?@scanny

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
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

add_picture
2 participants
@TheZ3ro@scanny

[8]ページ先頭

©2009-2025 Movatter.jp