Skip to content

Commit d6b87c4

Browse files
committed
Adding interactive image viewer
1 parent 59f21b7 commit d6b87c4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

iiif-online-workshop/day-two/fileformats.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@
22

33
The IIIF specification makes no mention of the source format of an image and the type of image you can use is driven by the IIIF Image Server you choose. Most support the common file formats like jpeg, png, tiff or gif. To get the fastest experience it is advised to use a special kind of image format that supports tilling. Examples of these include JPEG2000 and special types of Tiff files called Pyramid Tiffs.
44

5-
The reason for this can be demonstrated in the following diagram:
5+
The reason for this can be demonstrated in the following interactive image zoom tool:
66

7-
![Pyramid Image](imgs/JPEG2000_format.png)
7+
<iframe width="100%" height="652" frameborder="0"
8+
src="https://observablehq.com/embed/@allmaps/tile-pyramid?cells=viz"></iframe>
89

9-
When you zoom into a image the viewer only shows you the tiles that are in your view. The view is shown in the red box. This means a very large image can be viewed but the viewer never downloads all of the images. Only the ones that are required. The JPEG2000 and Pyramid Tiff format have these tiles and levels pre-generated into the file format. A Image server just needs to read and extract the correct tiles. This makes them much faster particularly for larger images. Of course if a custom region is requested then the Image server would need to stitch the images together.
10+
When you zoom into a image the viewer only shows you the tiles that are in your view as are highlighted in the viewer above. This means a very large image can be viewed but the viewer never downloads all of the images. Only the ones that are required. The JPEG2000 and Pyramid Tiff format have these tiles and levels pre-generated into the file format. A Image server just needs to read and extract the correct tiles. This makes them much faster particularly for larger images. Of course if a custom region is requested then the Image server would need to stitch the images together.
1011

1112
The are various methods (or recipes) to create JPEG2000 and Pyramid Tiffs but to give a few examples the Bodleian method for creating JPEG2000s is detailed here:
1213

1314
https://image-processing.readthedocs.io/en/latest/jp2_profile.html
1415

1516
and a method for creating Pyramid Tiffs is detailed on the Serverless IIIF image server:
1617

17-
https://github.com/nulib/serverless-iiif#creating-tiled-tiffs
18+
https://github.com/samvera/serverless-iiif/blob/da49fc34bfb054cd8d6ddfaea58d622f33f6d8ee/README.md#creating-tiled-tiffs
1819

20+
There are also the following scripts to create JPEG2000s, Pyramid tiffs and HTJ2K images that were developed by the IIIF community as part of their investigation into [testing different image formats](https://journal.code4lib.org/articles/17596).
21+
22+
https://github.com/IIIF/htj2k/tree/main/convert

0 commit comments

Comments
 (0)