python-pillow / python-pillow/Pillow

Tiled tif write support

Open
#672 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement Memory Platform TIFF
Dominant language
Python
Stars
13.8k
Forks
2.5k
Avg merge
2d 8h
Merged PRs (30d)
89

Description

I would like to write some BigTiff 4GB+ images as tiled tiffs to export data to an Omero server. Pillow appears to support reading tiled tiff but not writing.

Being optimistic I naively added the TileWidth and TileLength tags to a tifinfo dictionary passed to the save function the result is an invalid tif file. My test code can be found on github here:

https://github.com/jamesra/random/blob/master/pillow_tif_tiles.py

TiffInfo shows the tags correctly in the resulting tif file, but it fails to load in Photoshop or any of the built-in Windows viewers I tried.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked pillow_tif_tiles.py example and inspect Pillow's TIFF writing path. Compare its output with a valid tiled BigTIFF; done means Pillow can write tiled 4GB+ TIFFs that load in Photoshop and the Windows viewers mentioned.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.