Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I get image.ptif file? #5

Open
jeffstud opened this issue Apr 26, 2016 · 12 comments
Open

How can I get image.ptif file? #5

jeffstud opened this issue Apr 26, 2016 · 12 comments

Comments

@jeffstud
Copy link

HI,
I have made the iipimage server work. When I try to use leaflet plugin for iipimage server, it doesn't work. I think the problem may be here:
layer = L.tileLayer.iip('/fcgi-bin/iipsrv.fcgi?FIF=/path/to/image.ptif').addTo(map);
two questions:
1.Does FIF=/images/image.ptif equal to C:\images\image.ptif?
2.I have only tiled tif file, have not ptif file? How can I get it?
Thank you very much.

@jeffstud
Copy link
Author

Can I rename image.tif to image.ptif?

@ebertin
Copy link
Member

ebertin commented Apr 26, 2016

Does FIF=/images/image.ptif equal to C:\images\image.ptif?

Unfortunately I am not familiar with Windows web servers. Is you web server running on Windows?

I have only tiled tif file, have not ptif file? How can I get it?

IIPImage operates on tiled TIFF multiresolution "pyramids" which I chose to suffix with the ".ptif" extension. A simple TIFF file won't do it. You can create TIFF multiresolution pyramids in a number of ways (check out this page. I can only advise you when it comes to creating TIFF multiresolutions pyramids from FITS, using the STIFF package: please check out the STIFF documentation or this page.

@jeffstud
Copy link
Author

Yes. My web server runs on windows.
Could you send me a ptif link, I download it and test? Thank you very much.

@ageblade
Copy link

Does FIF=/images/image.ptif equal to C:\images\image.ptif?

It depends on how you configure it on your IIS. check this and this with focus on FILESYSTEM_PREFIX variable

Also you need to host the IIP server on the same domain if you are using '/fcgi-bin/.' without the full domain URL

@ruven
Copy link

ruven commented Apr 26, 2016

1.Does FIF=/images/image.ptif equal to C:\images\image.ptif?

Yes. You should use forward slashes / for your FIF paths, however.

Could you send me a ptif link, I download it and test? Thank you very much.

You can find an example tiled multi-resolution tiff here: http://iipimage.sourceforge.net/documentation/images/

@jeffstud
Copy link
Author

Yes. I have download the sample image from the site. However, the suffix of it is tif, not ptif.
It doesn't work.
If I use iipmooviewer, the .tif file can be displayed.
What's the reason?
: (

@jeffstud
Copy link
Author

jeffstud commented Apr 27, 2016

the codes of viewer is as following:

link rel="stylesheet" href="leaflet.css" /
script src="leaflet-src.js"/script
script src="TileLayer.IIP.js"></script

var map = L.map('map', {center: [0.0,0.0], zoom: 3}),
layer = L.tileLayer.iip('/fcgi-bin/iipsrv.fcgi?FIF=/images/output.ptif').addTo(map);

@jeffstud
Copy link
Author

I create output.ptif using ImageMagick
I put the output.tif in the C:\images
But I still get the information "unexpected response from iip server /fcgi-bin/iipsrv.fcgi"
Could you give me some advice?
Thank you.

@jeffstud
Copy link
Author

my server is apache.

@ruven
Copy link

ruven commented Apr 27, 2016

See what it says in the iipsrv log file.

@jeffstud
Copy link
Author

I cannot find the iipsrv log file.

@jeffstud
Copy link
Author

I think there are two possibilities.
first, the wrong path.
second, the wrong file. Could you offer me a right ptif image like the one in demo? http://image.iap.fr/iip/
I want to use the same code and the same image to test to find the answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants