Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #1000 (closed)

Opened 16 years ago

Closed 15 years ago

Thumbnail service: needed method

Reported by: jburel Owned by: cxallan
Priority: critical Milestone: OMERO-Beta4
Component: Services Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

I cannot find a ticket for that
For The Viewed By option, i will need to set the pixels and the userID something like
service.setPixelsId(pixelsID, userID).

Change History (3)

comment:1 Changed 16 years ago by jburel

  • Priority changed from trivial to critical

This is actually key. We need to have the ability to indicate to the thumbnail service
which user the thumbnails are for.
For now I do

 ThumbnailStore service = getThumbService();
needDefault(pixelsID, null);
//getRendering Def for a given pixels set.
if (userID >= 0) {
   RenderingDef def = getRenderingDef(pixelsID, userID);
   if (def != null) service.setRenderingDefId(def.getId());
}
return service.getThumbnailDirect(new Integer(sizeX), new Integer(sizeY));
//return service.getThumbnail(new Integer(sizeX), new Integer(sizeY));

If I use the getThumbnail instead of getThumbnailDirect
The wrong thumbnail is returned from the cache (I guess!) and the settings I passed
seem to be ignored.

comment:2 Changed 16 years ago by cxallan

  • Status changed from new to assigned
  • Version 3.0-M3 deleted

r2464 should fix the problem with the cache giving you the wrong thumbnail.

comment:3 Changed 15 years ago by cxallan

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.76993 sec.)

We're Hiring!