UV default zoom option

47 views
Skip to first unread message

Lucian Trasca

unread,
Mar 17, 2025, 6:30:28 AMMar 17
to Universal Viewer
Hey there, I was looking into if there was a way to increase the default zoom when a document or image is rendered UV, so far have not been able to find anything that reliably works in the documentation, does anyone have suggestions/has come across this scenario before?

demian...@gmail.com

unread,
Mar 17, 2025, 1:30:04 PMMar 17
to Universal Viewer
Did you see the default zoom level setting in the OpenSeadragonCenterPanel options?


(Note that at Villanova, we had to implement a workaround to get this to work the way we wanted it to, but that may be caused by our particular integrations... if you have trouble getting it to work, though, maybe there is a deeper problem that needs to be investigated).

- Demian

Lucian Trasca

unread,
Mar 18, 2025, 2:16:59 AMMar 18
to Universal Viewer
Cheers Demian, will try this out.

Lucian Trasca

unread,
Mar 27, 2025, 6:52:22 AMMar 27
to Universal Viewer

Hey Damian, tried setting openseadragon center panel options like this and it seems that it is invalidating my manifest (getting a message of "unable to load manifest" with a manifest that otherwise works fine)
Any ideas for a fix for this?

  const uv = UV.init("uv", data);
  uv.on("configure", function ({ config, cb }) {
    config.modules.centerPanel.options = {
      usePdfJs: true,
    };
    config.modules.openSeadragonCenterPanel.options = {
      defaultZoomLevel: 0,
    }
    config.modules.footerPanel.options = {
      downloadEnabled: false,
      embedEnabled: false,
      fullscreenEnabled: false,
      moreInfoEnabled: false,
      shareEnabled: false,
    };
    cb({
      options: {
        footerPanelEnabled: false,
        leftPanelEnabled: true,
        rightPanelEnabled: false,
        headerPanelEnabled: true,
      },
      pdfHeaderPanel: {
        options: {
          centerOptionsEnabled: false,
        },
      },
    });
  });
On Monday, 17 March 2025 at 17:30:04 UTC demian...@gmail.com wrote:

demian...@gmail.com

unread,
Mar 27, 2025, 4:32:19 PMMar 27
to Universal Viewer
I tried to reply to this message earlier today, but my response does not seem to have appeared in the thread. I'm trying again now, but apologies if I'm duplicating a past comment.

What UV version are you working with? There was a recent PR to add a console.log showing the exact error causing manifest load failure, so if you can repeat the test in the latest dev code, you might get more information that would help with troubleshooting. I expect to issue a release candidate for the next version of UV (4.2) on this coming Tuesday; maybe it will be easier to test with that once it becomes available.

Please let me know if there's more I can do to help!

- Demian

Karwan Ismael

unread,
Nov 10, 2025, 9:23:53 AM (yesterday) Nov 10
to Universal Viewer
Hey Demian,

Thanks for your suggestion.

It is working now so all good.

Thanks
Karwan

Reply all
Reply to author
Forward
0 new messages