Lock orientation of images

41 views
Skip to first unread message

Franck Dupont

unread,
May 18, 2020, 7:09:22 AM5/18/20
to Universal Viewer
Hello,

By default on my installation, UV auto rotate images : images in landcape orientation are automatically rotated after loading.

Is there a way to disable this functionality, and so lock the original orientation ?

Thanks for adavance.

Franck.


Demian Katz

unread,
May 18, 2020, 7:17:26 AM5/18/20
to Franck Dupont, Universal Viewer

Do you have an example manifest that demonstrates this behavior?

 

- Demian

--
You received this message because you are subscribed to the Google Groups "Universal Viewer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to universalview...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/universalviewer/6fb4be52-6b84-47e6-9f0f-6be78cd51a1b%40googlegroups.com.

Franck Dupont

unread,
May 18, 2020, 7:27:10 AM5/18/20
to Universal Viewer
https://www.u-picardie.fr/phn/patrimoine/items/show/8 (the first image).

It seems related to the UV config, rather than manifest.

Thanks.

Franck.


Le lundi 18 mai 2020 13:17:26 UTC+2, Demian Katz a écrit :

Do you have an example manifest that demonstrates this behavior?

 

- Demian

 

From: univers...@googlegroups.com <univers...@googlegroups.com> On Behalf Of Franck Dupont
Sent: Monday, May 18, 2020 7:09 AM
To: Universal Viewer <univers...@googlegroups.com>
Subject: [EXTERNAL] Lock orientation of images

 

Hello,

 

By default on my installation, UV auto rotate images : images in landcape orientation are automatically rotated after loading.

 

Is there a way to disable this functionality, and so lock the original orientation ?

 

Thanks for adavance.

 

Franck.

 

 

--
You received this message because you are subscribed to the Google Groups "Universal Viewer" group.

To unsubscribe from this group and stop receiving emails from it, send an email to univers...@googlegroups.com.

Demian Katz

unread,
May 18, 2020, 1:24:47 PM5/18/20
to Franck Dupont, Universal Viewer

Franck,

 

What image server are you using? I suspect there may be something strange going on with the underlying source image or the image server rather than the UV itself.

 

I tried loading your manifest in the public demo and ran into a very strange situation where zooming in and out seems to cause the image to rotate:

 

http://universalviewer.io/uv.html?manifest=https://www.u-picardie.fr/phn/patrimoine/iiif/8/manifest#?c=0&m=0&s=0&cv=0&xywh=-1401%2C173%2C8011%2C3377

 

That is definitely not normal behavior, but I think it’s probably more likely that it’s coming from the way your image server is generating tiles than from the way OpenSeadragon is requesting tiles from within UV.

To unsubscribe from this group and stop receiving emails from it, send an email to universalview...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/universalviewer/3fe71d7e-e86e-4ab9-bdb9-0d5cb8f5a6dd%40googlegroups.com.

Ian Chan

unread,
Oct 25, 2021, 8:25:59 PM10/25/21
to Universal Viewer
Hi, what was the solution to this issue?
I think I have a similar problem here -  COVID Grocery · Stories & Snapshots: Documenting a Year of the Pandemic (csusm.edu)
It's the only image on the site where we've encountered this problem.

Demian Katz

unread,
Oct 26, 2021, 7:02:10 AM10/26/21
to Ian Chan, Universal Viewer

I don’t recall if I ever heard more about the thread below… but I strongly suspect that these issues are related to inconsistent handling of orientation metadata, which is probably happening in your image server rather than the UV itself (see https://www.howtogeek.com/254830/why-your-photos-dont-always-appear-correctly-rotated/ for some background). It’s possible there is a setting in your image server that could resolve this; it may also be possible to do some processing on the image to fix the problem, if it’s truly a single isolated case (though depending on your workflows, this may be impractical or undesirable if you want to leave the source image untouched).

 

- Demian

Reply all
Reply to author
Forward
0 new messages