Page 1 of 1

Thumnail size of OMERO.web

PostPosted: Wed Jul 11, 2018 1:13 pm
by Kouichi_C_Nakamura
I know that there is a slider in OMERO.web or OMERO.insight that allows you to enlarge the thumbnails in a dataset or project. But it's just zooming up the same thumbnails. it looks like that the default thumbnail size is limited up to 96 pixels in either of dimensions.

If there is a configuration parameter with which you can increase the resolution of thumbnails, eg. to 256, please let me know.

Re: Thumnail size of OMERO.web

PostPosted: Thu Jul 12, 2018 12:46 pm
by sbesson
Hi Kouichi,

I know that there is a slider in OMERO.web or OMERO.insight that allows you to enlarge the thumbnails in a dataset or project. But it's just zooming up the same thumbnails. it looks like that the default thumbnail size is limited up to 96 pixels in either of dimensions.


Yes 96 is the default thumbnail size for the server and the clients at the moment.

If there is a configuration parameter with which you can increase the resolution of thumbnails, eg. to 256, please let me know.


A configuration property exists that allows to override the client thumbnail size - see omero.client.browser.thumb_default_size.

Let me mention a couple of facts to take into consideration before consuming it:
  • this configuration property is only implemented in the OMERO.web client at the moment
  • this configuration needs to be set at the OMERO.web deployment level and will globally affect all users of a Web instance
  • related to the above, the thumbnails stored by the OMERO server are generated with the default size of 96 and this size is not configurable at the moment. Having the client asking for a different thumbnail size could have some impact in terms of performance.

Best,
Sebastien

Re: Thumnail size of OMERO.web

PostPosted: Thu Jul 12, 2018 1:29 pm
by Kouichi_C_Nakamura
Thanks!

Re: Thumnail size of OMERO.web

PostPosted: Fri Jul 13, 2018 4:33 am
by wmoore
Hi,

Unfortunately I think this configuration is not going to work in the webclient since we changed the way that we load thumbnails.
Instead of loading individual images, we now batch load thumbnails as JSON data using webclient/get_thumbnails/?

https://github.com/openmicroscopy/openm ... ls.py#L116

but this currently has no way to pass the size to the webgateway get_thumnails_json method https://github.com/openmicroscopy/openm ... s.py#L1541 even though that method does have a width 'w' parameter.

I've created a card https://trello.com/c/cZ2Ww8nA/16-bug-we ... ize-config to fix this since it was also requested at https://github.com/openmicroscopy/desig ... -394691752 although the performance issues as mentioned by Sebastien will still be an issue.

Regards,

Will.