iipsrv
iipsrv copied to clipboard
JPEG2000 files not working with openjpeg
Hi, first of all thanks for this great server!
I compiled it on an OpenSUSE Leap 42.3 with openjpeg enabled, though i'm not able to load jp2 files from the server. while trying to access the jp2 through IIIF protocol i get a 400 Error, bad request. i tried also with TIF file and it's working good.
also i'm not able to write to the log file i created in /var/log/iipsrv.log would be thankful for any help. Michael
Wrong permissions? The log file must be writable by the web server process.
Maybe it didn't properly compile the openjpeg code. Make sure you get the log file working in order to properly diagnose. Also make sure it says openjpeg has been found at the end of the ./configure script
thanks @stweil and @ruven for the answers, I'm not quite sure how to get the right permissions for the log file, i think that just for the test i'm going to open for read and write to everyone.. i did compile it with openjpeg and get it showed it in the compile script as found.. now i can see the jpeg but when i try to load more than a few files at once somehow it won't work anymore and i get a 500 error, this occurs also with TIFF files, is this a sort of restriction and can i change that in the options?
finally got the log to work, i guess not the safest method but it works for now.. here is the last snippet from the log i don't see anything suspicious, do you?
Full Request is IIIF=jp2test.jp2/3072,2048,1024,1024/256,/0/default.jpg
[1/1]: Command / Argument is IIIF : jp2test.jp2/3072,2048,1024,1024/256,/0/default.jpg
IIIF handler reached
IIIF :: URL decoded to jp2test.jp2/3072,2048,1024,1024/256,/0/default.jpg
FIF handler reached
FIF :: URL decoding/filtering: jp2test.jp2 => jp2test.jp2
FIF :: Image cache hit. Number of elements: 4
FIF :: JPEG2000 image detected
FIF :: Created image
FIF :: Image dimensions are 5472 x 3648
FIF :: Image contains 3 channels with 16 bits per channel
FIF :: Image timestamp: Mon, 04 Sep 2017 19:47:53 GMT
FIF :: Total command time 5324 microseconds
IIIF :: Requested Region: x:3072, y:2048, w:1024, h:1024
IIIF :: Requested Size: 256x256
IIIF :: Requested Rotation: 0 degrees
IIIF :: Requested Quality: default with format: jpg
IIIF :: image request for jp2test.jp2 with arguments: region: 3072,2048,1024,1024; size: 256x256; rotation: 0; mirroring: 0
JTL handler reached
TileManager :: Cache Miss for resolution: 3, tile: 15
TileManager :: Cache Size: 11 tiles, 2.11518 MB
TileManager :: Tile cache insertion time: 232 microseconds
TileManager :: Total Tile Access Time: 69722 microseconds
JTL :: Tile size: 256 x 256
JTL :: Channels per sample: 3
JTL :: Bits per channel: 8
JTL :: Data size is 196608 bytes
JTL :: Compressing UNCOMPRESSED to JPEG in 3912 microseconds to 131035 bytes
JTL :: Total command time 74822 microseconds
IIIF :: Total command time 80338 microseconds
Memcached :: stored 131207 bytes in 30 microseconds
Total Request Time: 80473 microseconds
image closed and deleted
Server count is 20
i don't see anything suspicious, do you?
Nor do I.
Your iipsrv log looks fine. A 500 error is something issued by your web server (Apache or whatever). Maybe there's more information in the web server error log file?