Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#795 closed enhancement (fixed)

Display image thumbnails in list view for stained samples

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: Reggie v3.5
Component: net.sf.basedb.reggie Keywords:
Cc:

Description

Ticket #791 added support for uploading histology images to BASE. It would be nice to be able to see an image thumbnail in the samples list for all samples that have an image attached to it.

The "Thumbnails" extension package (http://baseplugins.thep.lu.se/wiki/net.sf.basedb.thumbnails) may be useful here since it knows how to create thumbnails and all we have to do is to produce an <img> tag referencing the proper URL. Eg. something like:

<img src=".../thumbnails.jar/Thumbnails.servlet?ID=XXX&file=55&size=MEDIUM">

It should also not be too difficult to hook in the scripts and stylesheets used by the thumbnails package to make the thumbnail clickable and display the full image.

Change History (4)

comment:1 by Nicklas Nordborg, 9 years ago

Resolution: fixed
Status: newclosed

(In [3407]) Fixes #795: Display image thumbnails in list view for stained samples

comment:2 by Nicklas Nordborg, 9 years ago

(In [3410]) References #795: Display image thumbnails in list view for stained samples

Also add a thumbnail image in the singe-item page for stained samples.

comment:3 by Nicklas Nordborg, 9 years ago

(In [3411]) References #795 and #796: Display image thumbnails in list view for stained samples

Made the extension smarter so that the 'Stained image' column can always be visible. If the 'thumbnails' extension is available the thumbnail image is shown, otherwise the image path and regular view/download icons are displayed.

Exporting will always export the image path.

The filter feature is enabled if the BASE version is at least 3.6.

comment:4 by Nicklas Nordborg, 9 years ago

(In [3422]) References #795: Display image thumbnails in list view for stained samples

Use the 'loading' icon and proper size class.

Note: See TracTickets for help on using tickets.