No specific TileServer code for Jpeg2000 or Tiled Tiff present - is this intentional?

Hi, I am trying to create some code for a Openjpeg2 based TileServer for the module. So I searched in the module (version 3.4.6.3), to get some inspiration, for the current code of the TileServer that should handle Jpeg2000 or Tiled Tiff. But I didnot find any such thing! Is this the intention? Must we rely for this on the generic capabilities of the chosen imager to extract from these pretiled jp2 of tiff?

In my testing a pretiled jp2 file was correctly produced (by ImageMagick) but decoding a tile from it by a 'generic' extraction with the ImageMagick imager was (of course) a drama. Extracting a 256x256 part from a 60MB jp2 file is just not a nice job for ImageMagick. But this is no problem for Openjpeg2 its opj_decompress, and even less when you know the jp2 is also tiled. It is also rather a specific image decoding thing, that, I think should best be handled in a specific object, e.g. TileServerJpeg2000 with should use a special AbstracImager\Openjpeg2 or AbstractImager\Kakadu

I wrote an experimental TileServerJpeg2000 (subclass of TileServer) for the decoding and it works fine. It uses a Openjpeg2 variant of the AbstractImager, that can extract png formatted regions (tiles). These then need to be postprocessed (often) e.g. into jpg by e.g. the Auto imager. I am still looking for the best/neatest way to (temporarily in my TileServerJpeg2000 object) use (i.e. create) this specific Openjpeg2 ImagerServer without disturbing/modifying the configured ImageServer. I am not so deep into the Zend and ImageServer code :)

I (in TileServerJpeg2000) now used $this->getController()->imageServer()->setImager('\ImageServer\ImageServer\Openjpeg') but this clearly changes the configured ImageServer, so I have to "reset" that somehow...

Any hints for improvement?

Assignee Loading
Time tracking Loading