IIIF / htj2k

A project to evaluate htj2k for IIIF
12 stars 1 forks source link

Add vips #4

Closed glenrobson closed 2 years ago

glenrobson commented 2 years ago

Add loss less and use jpeg for lossy.

glenrobson commented 2 years ago

I've added lossless conversion to ptiff here: https://github.com/IIIF/htj2k/blob/add_vips/convert/lossless/tiff_to_ptiff.sh (assuming lossless is the same as no compression)

I've also change the compression to jpeg for the lossy pyramid tiff.

ruven commented 2 years ago

Well, technically no compression is indeed lossless ;-)

But I suggest we also use something like Deflate to allow us to have a full equivalent comparison of file size and decoding speed with respect to lossless HTJ2K:

--predictor deflate

glenrobson commented 2 years ago

It looks like VIPS only supports the following:

predictor    - Compression prediction, input VipsForeignTiffPredictor
            default: horizontal
            allowed: none, horizontal, float
glenrobson commented 2 years ago

but it does support:

--compression deflate 
ruven commented 2 years ago

Sorry, I meant to write:

--compression deflate

glenrobson commented 2 years ago

Great added to the vips script.