Is it possible to use the OpenSeadragon viewer for basic images?

846 views
Skip to first unread message

Josh

unread,
May 3, 2016, 9:50:44 AM5/3/16
to islandora
We have some jpg photos of typed letters which are hard to read in the default view using the basic image solution pack. It would be ideal if we could use the OpenSeadragon viewer that the large image solution pack uses, so that users could zoom in with more precision. Is it possible to use this viewer with jpgs?

I'm thinking this would require one of the following:

1. Make the basic image solution pack use the OpenSeadragon viewer - In my mind this is the best solution, but I'm not sure if it can work without a jp2.

2. Make the large image solution pack accept jpgs - I'm not sure what this would entail, but I suspect we could convert the jpg to jp2 on ingest before anything else happens

3. Convert the jpgs to jp2 manually and use the large image solution pack - This is probably the simplest solution, but the least user friendly

If anyone has done this and has any insight for me it would be greatly appreciated.

Thanks

Josh

unread,
May 3, 2016, 1:48:31 PM5/3/16
to islandora
The large image solution pack seems to be able to handle jpg, gif, and png, but the upload form does not allow them to be uploaded. I created a ticket to see about allowing those filetypes.

https://jira.duraspace.org/browse/ISLANDORA-1702

Jared Whiklo

unread,
May 3, 2016, 2:02:13 PM5/3/16
to isla...@googlegroups.com
Hey Josh,

From my understanding the zoom functionality comes from having the
JPEG2000 derivative made from a high quality (read: Tiff) image.

Zooming in on a JPG would not provide the same experience.

cheers,
jared
> --
> For more information about using this group, please read our Listserv
> Guidelines: http://islandora.ca/content/welcome-islandora-listserv
> ---
> You received this message because you are subscribed to the Google
> Groups "islandora" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to islandora+...@googlegroups.com
> <mailto:islandora+...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/islandora.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/islandora/28f2dbb6-21b5-47fb-9984-2d770e2a6944%40googlegroups.com
> <https://groups.google.com/d/msgid/islandora/28f2dbb6-21b5-47fb-9984-2d770e2a6944%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Jared Whiklo
jwh...@gmail.com
--------------------------------------------------
Someday, we'll look back on this, laugh nervously and change the subject.

signature.asc

Nick Ruest

unread,
May 3, 2016, 2:15:51 PM5/3/16
to isla...@googlegroups.com
You can setup OpenSeadragon to zoom with a variety of media types[1],
including simple jpgs[2]. But, that said, Jared is correct, you get the
best zooming functionality with tiled images.

Probably an approach to investigate would be extending the Islandora
OpenSeagradon viewer to work with the Basic Image Solution Pack. Might
just be a matter of writing some logic around which content model is
being used with it.

It should also be noted, that we're are using a older version of
OpenSeadragon with Islandora OpenSeadragon, and there are a couple
related JIRA tickets to this[3]. So, our mileage may vary on using that
older version with standalone jpgs.

As for 1702, it might be helpful to look at the CONTRIBUTING.md file,
and look at the feature request section, and flesh out the ticket a bit
more. Might also want to look at the Priority level on it since it is
set to "Trivial".

-nruest

[1] http://openseadragon.github.io/#examples-and-features
[2] http://openseadragon.github.io/examples/tilesource-image/
[3] https://jira.duraspace.org/browse/ISLANDORA-935

Josh

unread,
May 3, 2016, 3:10:24 PM5/3/16
to islandora
The way the large image pack seems to currently function is by creating a JP2 datastream from the jpg, png, or gif, which it uses for the OpenSeadragon viewer. It seems indistinguishable to me, but maybe I'm misunderstanding what you mean by zooming functionality.

I agree it doesn't look very good when using a 10 KB png file, but I have some jpgs of typed letters that are around 1 MB each and they look quite good using the large image solution pack.

Adding ' jpg png gif' to https://github.com/J77D/islandora_solution_pack_large_image/blob/7.x/includes/image_upload.form.inc#L21 solves my problem of wanting zoom functionality for jpg files. I think using openseadragon with the basic image solution pack would still be nice, but this is a much simpler way to get what I was trying to achieve.

If that's not a change that the community wants to make to the large solution pack we can mark my ticket as "won't fix" or I can delete it, whichever is preferred.

I can still create a feature request for using the OpenSeadragon viewer with the basic image solution pack if you would like, but I think that should be a separate ticket from 1702 since it is a different approach than what I had in mind with 1702.

Thank you both for the feedback

Nick Ruest

unread,
May 3, 2016, 4:03:12 PM5/3/16
to isla...@googlegroups.com
> The way the large image pack seems to currently function is by creating
> a JP2 datastream from the jpg, png, or gif, which it uses for the
> OpenSeadragon viewer. It seems indistinguishable to me, but maybe I'm
> misunderstanding what you mean by zooming functionality.

Just a note, derivative creation and viewers are separate functionality.

> If that's not a change that the community wants to make to the large
> solution pack we can mark my ticket as "won't fix" or I can delete it,
> whichever is preferred.

I'd join a committers call, and speak to it. It's always good to talk
this stuff out with the group.

-nruest
> --
> For more information about using this group, please read our Listserv
> Guidelines: http://islandora.ca/content/welcome-islandora-listserv
> ---
> You received this message because you are subscribed to the Google
> Groups "islandora" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to islandora+...@googlegroups.com
> <mailto:islandora+...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/islandora.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/islandora/455bc6c7-54be-44f2-9f19-864c541b95b6%40googlegroups.com
> <https://groups.google.com/d/msgid/islandora/455bc6c7-54be-44f2-9f19-864c541b95b6%40googlegroups.com?utm_medium=email&utm_source=footer>.

Jared Whiklo

unread,
May 3, 2016, 4:03:33 PM5/3/16
to isla...@googlegroups.com
I think making OpenSeadragon as an option for viewer of the basic image
solution pack would be a better way.

Otherwise, the question becomes why we have a differentiation for
between large and basic images.

But perhaps that is a discussion we should be having?

cheers,
jared
> --
> For more information about using this group, please read our Listserv
> Guidelines: http://islandora.ca/content/welcome-islandora-listserv
> ---
> You received this message because you are subscribed to the Google
> Groups "islandora" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to islandora+...@googlegroups.com
> <mailto:islandora+...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/islandora.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/islandora/455bc6c7-54be-44f2-9f19-864c541b95b6%40googlegroups.com
> <https://groups.google.com/d/msgid/islandora/455bc6c7-54be-44f2-9f19-864c541b95b6%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Jared Whiklo
jwh...@gmail.com
--------------------------------------------------
Quantum mechanics: The dreams stuff is made of.

signature.asc

Mark Jordan

unread,
May 3, 2016, 5:55:56 PM5/3/16
to isla...@googlegroups.com
Broadening the discussion a bit (don't hate me!), I'd like to remind us of this issue, which is relevant:


This proposed feature will become even more important as we create more viewers and enhance existing ones.

Mark


To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages