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

Use ImageFile.MAXBLOCK when saving TIFF images #8461

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

radarhere
Copy link
Member

Addresses an 'undone' that has been present since #98

# undone, change to self.decodermaxblock:
errcode, data = encoder.encode(16 * 1024)[1:]

self.decodermaxblock isn't necessarily available, because im may not be an ImageFile instance, but ImageFile.MAXBLOCK is usually the same.

self.decodermaxblock = MAXBLOCK

@radarhere radarhere added the TIFF label Oct 12, 2024
@hugovk hugovk merged commit 3dded83 into python-pillow:main Oct 12, 2024
47 of 48 checks passed
@radarhere radarhere deleted the undone branch October 12, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants