Hi, I am fairly new to image servers and servers in general, so I have probably made some configuration mistakes.
I am testing the IIPImage Server v.1 on a virtual machine running Ubuntu Server 16.04.2 with Apache 2.4.
I have managed to install the IIPserver and if I go to the landing address (localhost/iipsrv/iipsrv.fcgi) I get the IIPImage Server page (both within the virtual machine and from the host).
If I try to access an image with the IIIF protocol all works perfectly fine, but if I try to use the IIP protocol I hit an error and the page shows a 'File not found' warning.
I copy here below the log for both the IIIF call and the IIP call for the same image. (I've set log verbosity to 10)
Any help would be very much appreciated.
IIP protocol log entry:
Full Request is FIF=/var/www/html/scripto/input_pyr.tif [1/1]: Command / Argument is FIF : /var/www/html/scripto/input_pyr.tif
FIF handler reached
FIF :: URL decoding/filtering: /var/www/html/scripto/input_pyr.tif => /var/www/html/scripto/input_pyr.tif
FIF :: Image cache hit. Number of elements: 1
FIF :: TIFF image detected
FIF :: Created image
FIF :: Image dimensions are 5758 x 7272
FIF :: Image contains 3 channels with 8 bits per channel
FIF :: Image timestamp: Thu, 23 Mar 2017 19:18:43 GMT
FIF :: Total command time 147 microseconds
Full Request is FIF=/var/www/html/scripto/input_pyr.tif
So, you're just giving the image path and not in fact requesting anything. Try adding a command to request a single tile or to export the image with a width of 800px as in the following example:
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi, I am fairly new to image servers and servers in general, so I have probably made some configuration mistakes.
I am testing the IIPImage Server v.1 on a virtual machine running Ubuntu Server 16.04.2 with Apache 2.4.
I have managed to install the IIPserver and if I go to the landing address (localhost/iipsrv/iipsrv.fcgi) I get the IIPImage Server page (both within the virtual machine and from the host).
If I try to access an image with the IIIF protocol all works perfectly fine, but if I try to use the IIP protocol I hit an error and the page shows a 'File not found' warning.
I copy here below the log for both the IIIF call and the IIP call for the same image. (I've set log verbosity to 10)
Any help would be very much appreciated.
IIP protocol log entry:
Full Request is FIF=/var/www/html/scripto/input_pyr.tif
[1/1]: Command / Argument is FIF : /var/www/html/scripto/input_pyr.tif
FIF handler reached
FIF :: URL decoding/filtering: /var/www/html/scripto/input_pyr.tif => /var/www/html/scripto/input_pyr.tif
FIF :: Image cache hit. Number of elements: 1
FIF :: TIFF image detected
FIF :: Created image
FIF :: Image dimensions are 5758 x 7272
FIF :: Image contains 3 channels with 8 bits per channel
FIF :: Image timestamp: Thu, 23 Mar 2017 19:18:43 GMT
FIF :: Total command time 147 microseconds
Server: iipsrv/1.0^M
Cache-Control: no-cache^M
Content-Type: application/vnd.netfpx^M
Status: 400 Bad Request^M
Content-Disposition: inline;filename="IIPisAMadGameClosedToOurUnderstanding.netfpx"^M
^M
Error/43:2 1 FIF=/var/www/html/^M
Memcached :: stored 228 bytes in 7 microseconds
Total Request Time: 512 microseconds
image closed and deleted
Server count is 5
IIIF log entry ('[...]' = removed log lines):
Full Request is IIIF=/var/www/html/scripto/input_pyr.tif/full/full/0/default.jpg
[1/1]: Command / Argument is IIIF : /var/www/html/scripto/input_pyr.tif/full/full/0/default.jpg
IIIF handler reached
IIIF :: URL decoded to /var/www/html/scripto/input_pyr.tif/full/full/0/default.jpg
FIF handler reached
FIF :: URL decoding/filtering: /var/www/html/scripto/input_pyr.tif => /var/www/html/scripto/input_pyr.tif
FIF :: Image cache hit. Number of elements: 1
FIF :: TIFF image detected
FIF :: Created image
FIF :: Image dimensions are 5758 x 7272
FIF :: Image contains 3 channels with 8 bits per channel
FIF :: Image timestamp: Thu, 23 Mar 2017 19:18:43 GMT
FIF :: Total command time 116 microseconds
IIIF :: Requested Region: x:0, y:0, w:1, h:1
IIIF :: Requested Size: 5758x7272
IIIF :: Requested Rotation: 0 degrees
IIIF :: Requested Quality: default with format: jpg
IIIF :: image request for /var/www/html/scripto/input_pyr.tif with arguments: region: 0,0,5758,7272; size: 5758x7272; rotation: 0; mirroring: 0
CVT handler reached
CVT :: Using resolution 6 with size 2879x3636
CVT :: No view port set
CVT :: Requested scaled region size is 2375x3000 at resolution 6. Nearest existing resolution has region with size 2879x3636
TileManager :: Cache Miss for resolution: 6, tile: 0
TileManager :: Cache Size: 0 tiles, 0 MB
TileManager :: Tile cache insertion time: 162 microseconds
TileManager :: Total Tile Access Time: 8895 microseconds
TileManager getRegion :: Tile access time 8942 microseconds for tile 0 at resolution 6
TileManager getRegion :: Tile data is 3 channels, 8 bits per channel
TileManager :: Cache Miss for resolution: 6, tile: 1
TileManager :: Cache Size: 1 tiles, 0.192425 MB
TileManager :: Tile cache insertion time: 185 microseconds
TileManager :: Total Tile Access Time: 1054 microseconds
TileManager getRegion :: Tile access time 1072 microseconds for tile 1 at resolution 6
[...]
TileManager :: Cache Miss for resolution: 6, tile: 179
TileManager :: Cache Size: 64 tiles, 9.90856 MB
TileManager :: Cropping tile
TileManager :: Edge tile: Base size: 256x256: This tile: 63x52
TileManager :: Tile cache insertion time: 4 microseconds
TileManager :: Total Tile Access Time: 874 microseconds
TileManager getRegion :: Tile access time 876 microseconds for tile 179 at resolution 6
CVT :: Resizing using bilinear interpolation in 187763 microseconds
CVT :: Adding XMP metadata
CVT :: About to JPEG compress strip with height 128
CVT :: Compressed data strip length is 25695
[...]
CVT :: About to JPEG compress strip with height 56
CVT :: Compressed data strip length is 7245
CVT :: Total command time 578768 microseconds
IIIF :: Total command time 578943 microseconds
Memcached :: stored 732100 bytes in 14 microseconds
Total Request Time: 579156 microseconds
image closed and deleted
Server count is 10
Your IIP request seems to be only the following:
Full Request is FIF=/var/www/html/scripto/input_pyr.tif
So, you're just giving the image path and not in fact requesting anything. Try adding a command to request a single tile or to export the image with a width of 800px as in the following example:
FIF=/var/www/html/scripto/input_pyr.tif&WID=800&CVT=JPEG
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Thank you! Glad it was a stupid mistake on my part!