Skip to content

Make TIFF strip size configurable#5744

Merged
hugovk merged 5 commits intopython-pillow:masterfrom
kmilos:patch-2
Oct 14, 2021
Merged

Make TIFF strip size configurable#5744
hugovk merged 5 commits intopython-pillow:masterfrom
kmilos:patch-2

Conversation

@kmilos
Copy link
Copy Markdown
Contributor

@kmilos kmilos commented Oct 1, 2021

Fixes #5740

Changes proposed in this pull request:

  • Add a way to override the strip size by redefining PIL.TiffImagePlugin.STRIP_SIZE (in bytes)
  • Do not round up rows_per_strip, requested strip size should not be exceeded

@radarhere radarhere added the TIFF label Oct 1, 2021
@radarhere radarhere mentioned this pull request Oct 8, 2021
@radarhere
Copy link
Copy Markdown
Member

I created kmilos#3 to add a test for this.

radarhere and others added 2 commits October 14, 2021 08:09
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
@kmilos
Copy link
Copy Markdown
Contributor Author

kmilos commented Oct 14, 2021

Thanks for fixing up the PR!

@hugovk hugovk merged commit e04f2ed into python-pillow:master Oct 14, 2021
@hugovk
Copy link
Copy Markdown
Member

hugovk commented Oct 14, 2021

Thanks all!

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.

Multi-strip usage when encoding group4 TIF breaks use in PDF

4 participants