mirror of
https://github.com/RGBCube/serenity
synced 2025-07-05 11:07:34 +00:00
![]() A tile is basically a strip with a user-defined width. With that in mind, adding support for them is quite straightforward. As a lot the common code was named after 'strips', to avoid future confusion I renamed everything that interact with either strips or tiles to a global term: 'segment'. Note that tiled images are supposed to always have a 'TileOffsets' tag instead of 'StripOffset'. However, this doesn't seem to be enforced by encoders, so we support having either of them indifferently. The test case was generated with the following Python script: import pyvips img = pyvips.Image.new_from_file('deflate.tiff') img.write_to_file('tiled.tiff', compression=pyvips.ForeignTiffCompression.DEFLATE, tile=True, tile_width=64, tile_height=64) |
||
---|---|---|
.. | ||
bmp | ||
dds | ||
icc | ||
ico | ||
ilbm | ||
jpg | ||
jxl | ||
png | ||
pnm | ||
tga | ||
tiff | ||
tvg | ||
webp | ||
woff | ||
woff2 | ||
download-animation.gif | ||
loop_forever.avif | ||
TestFont.font |