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

Add support for ZIF files? #21

Closed
asherber opened this issue Jul 29, 2015 · 19 comments
Closed

Add support for ZIF files? #21

asherber opened this issue Jul 29, 2015 · 19 comments

Comments

@asherber
Copy link

Some sites use Zoomify images where the tiles are packaged in a single ZIF file instead of existing separately. Any change of adding support for those?

Update

ZIF file support hasn't been added to dezoomify yet, but two tools have been coded, that allow to extract an image from a ZIF file:

@lovasoa
Copy link
Owner

lovasoa commented Jul 29, 2015

Do you have an example of a website that uses that format?

@lovasoa
Copy link
Owner

lovasoa commented Jul 29, 2015

We already support PFF, so adding support for a new similar format is not excluded.

@asherber
Copy link
Author

http://goo.gl/dngQC6

@lovasoa
Copy link
Owner

lovasoa commented Jul 31, 2015

OK, I reverse-engineered the format, and made a documentation for it.

@lovasoa
Copy link
Owner

lovasoa commented Aug 3, 2015

I have started to work on a zif file format parser : https://gist.github.com/lovasoa/47f61fecfa74f85a7ac2

(This is still preliminary work, and I'm not sure I'm going to have time to go further)

@asherber
Copy link
Author

asherber commented Aug 3, 2015

Awesome, thank you!

@lovasoa
Copy link
Owner

lovasoa commented Aug 3, 2015

It took me much more time than expected, but my parser now works.
You can try it here : http://lovasoa.github.io/ZIF/

@asherber
Copy link
Author

asherber commented Aug 3, 2015

That's fantastic – thanks very much for your work on this!

@asherber
Copy link
Author

asherber commented Aug 4, 2015

BTW, I was able to use your documentation and code to write a parser in C#, which lets me iterate through ZIF files and save the assembled images to disk automatically. Thanks again for the time you put in on this.

@lovasoa
Copy link
Owner

lovasoa commented Aug 4, 2015

Awesome! I'm happy someone read the documentation I wrote!

Can you publish your parser too? Maybe other people will prefer a C# application over a webpage and a canvas...

@asherber
Copy link
Author

asherber commented Aug 4, 2015

Yes, I'll put something up on GitHub when I have a few minutes to clean
it up. There's also someone who has done a C# project based on some of
your earlier work: https://github.com/RedRogueXIII/DeZoomify_NET Looks
like that hasn't been touched in a couple of years, but I'll let him
know about my parser in case he's interested in using it.

@lovasoa
Copy link
Owner

lovasoa commented Aug 4, 2015

Thank you for telling me about dezoomify.net, I didn't know about it. I'm always happy to see other people's interest in my code.

I hope to read your's soon :)

@asherber
Copy link
Author

asherber commented Aug 5, 2015

@asherber
Copy link
Author

asherber commented Aug 5, 2015

I notice in some places, like http://sourceforge.net/p/dezoomify/wiki/CommandSyntax/ , that zoom level 0 is designated as the most zoomed out; my C# code followed you in making 0 the most zoomed in. Since you have more experience with Zoomify in general, do you have an opinion about this, or was it something of a random choice?

@lovasoa
Copy link
Owner

lovasoa commented Aug 5, 2015

Yes zoomify counts the tiers from the most zoomed out to the most zoomed in. In their own zoomify viewer, the first thing they do after having parsed the zoomlevel metadata in a zif file is to reverse the tile offsets and tile sizes arrays, in order to be coherent with their other functions.

Since I made my parser an independent p piece of code, and since the most interesting zoom level is the most zoomed one, I decided not to reverse my zoom level array, and to keep it in the same order as in the zif file (larger zoomlevel first). You can reverse the array in your code if you want !

@asherber
Copy link
Author

asherber commented Aug 5, 2015 via email

@lovasoa
Copy link
Owner

lovasoa commented Aug 17, 2015

I'm reopening this because even if most of the work is done, I didn't add support for ZIF to zoomify yet.

@lovasoa lovasoa reopened this Aug 17, 2015
@ar-jan
Copy link

ar-jan commented Dec 1, 2015

This would be a great addition.

@lovasoa
Copy link
Owner

lovasoa commented Dec 1, 2015

It's currently not in my priority list... The other tools mentioned above work well, and are faster then it would be if it were integrated into dezoomify...

But I'm opened to any pull request. All the reverse-engineering work has been done already.

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

No branches or pull requests

3 participants