Write tiled output of TIFF, using ImageIO in Java

后端 未结 1 464
后悔当初
后悔当初 2021-01-06 05:08

What I have is a a large number of frames that need to be placed together in a larger image (like a mosaic). The required positions of the images are known.

There a

相关标签:
1条回答
  • 2021-01-06 05:25

    If you read up on the TIFF 6.0 spec under the TileWidth and TileLength fields, you will find the text

    TileWidth must be a multiple of 16. This restriction improves performance in some graphics environments and enhances compatibility with compression schemes such as JPEG.

    And similar for TileLength. 100x100 isn't divisible by 16, but 96x96 is, which I bet is the TIFF encoder trying its best to fullfill your request.

    0 讨论(0)
提交回复
热议问题