Open arildm opened 3 years ago
There may be something in your Mac OS libtiff causing a problem. Can you paste the output from tiffinfo (you can run it either on your Mac or the CentOS box)?
tiffinfo <path to>/9118326.tif
Is this happening for this specific image or for others too? Which version of iipsrv are you using? And can you copy and paste the section of the iipsrv log file where you say the request works for the first tile from this image?
Here's log entries for another file:
And the startup output:
IIPImage Server. Version 1.1
*** Ruven Pillay <ruven@users.sourceforge.net> ***
Verbosity level set to 10
Running in FCGI mode
Setting maximum image cache size to 100MB
Setting filesystem prefix to '/data/cdhdata/public/'
Setting filesystem suffix to ''
Setting default JPEG quality to 75
Setting maximum CVT size to 3000
Setting HTTP Cache-Control header to 'max-age=86400'
Setting 3D file sequence name pattern to '_pyr_'
Setting IIIF version to 2
Setting Cross Origin Resource Sharing to '*'
Setting base URL to [redacted]
Setting Allow Upscaling to true
Setting ICC profile embedding to true
Setting up JPEG2000 support via OpenJPEG
Setting image processing engine to CPU processor
OpenMP enabled for parallelized image processing with 4 threads
Setting URI mapping to iiif=>IIIF. Supported protocol: IIIF
I finally managed to install vips on the server, and when I use that to convert images, IIP reads the resulting files successfully.
It would be interesting to know if you could help me find what the problem is with the Mac-generated tiffs, but it's not prioritized for me anymore. Feel free to close the issue if you want to.
The tiffinfo output for the server-generated tiff: (Resolution and JPEG Tables lines are different)
Strange. Could you send me a copy of one of the TIFF images from your Mac that does not work with iipsrv?
Hi @ruven , I had same issue when playing around with iipsrv
and iipmooviewer
on my mac.
When I use imagemagick to generate .tiff, I got this error, when I use libvips to generate .tiff, it works, although there is still a slight issue that one tile was not placed perfectly, but at least the full image was shown. Do you want me to copy the .tiff I generated? I can provide that to you.
Hi @Ricky-Y, yes please send me a link to the TIFF to see what's going wrong.
@ruven I uploaded the original photo and two generated tif files in https://drive.google.com/drive/folders/1TQgfyYlfZJUBkEEwz5_B_V2v9mDpRHHF?usp=sharing
Hi @Ricky-Y, both of your images work fine for me on Linux. There must be a problem with the version of libtiff installed on your Mac, which may not have libtiff configured to use JPEG.
With any request that includes more than the first tile, I get an error:
As you can see, I am requesting region
0,0,257,256
above. With0,0,256,256
, all is fine.The tiff image is converted from jpeg, I have tried a few different ways with the same result:
convert 9118326.jpg -define tiff:tile-geometry=256x256 -compress jpeg -quality 85 ptif:im/9118326.tif
vips im_vips2tiff 9118326.jpg vips/9118326.tif:jpeg:85,tile:256x256,pyramid,,,,8
vips tiffsave 9118326.jpg vips2/9118326.tif --tile --pyramid --compression jpeg --Q 85 --tile-width 256 --tile-height 256
I can open the resulting images in GIMP, where I can see the entire image.
I have run the conversion locally (mac OS, libtiff 4.2.0) and running IIP on a server (CentOS, libtiff 4.0.3). I'm working on doing conversion and testing on the same system, but cannot do it right now.
Other than my guess that the libtiff versions are different, does anyone have any idea on what could cause the read error?