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"

User Story #455 (closed)

Opened 13 years ago

Closed 13 years ago

New Thumbnail Service Functionality

Reported by: cxallan Owned by: cxallan
Priority: minor Milestone: 3.0-M3
Component: Bin-Services Keywords: iteration6
Cc: jburel Story Points: n.a.
Sprint: n.a. Importance: n.a.
Total Remaining Time: n.a. Estimated Remaining Time: n.a.

Description (last modified by cxallan)

Given that rendering definitions are now available correctly and that thumbnail refreshes will start being requested we need the following methods for thumbnail refresh:

public void createThumbnails(Pixels pixels, RenderingDef def);

This method should refresh all thumbnails for a given user, for a given set of pixels regardless of their size.

Further, we also need methods to scale images into thumbnails based on the image's longest side:

public byte[] getThumbnailByLongestSide(Pixels pixels, RenderingDef def,
                                        Integer size);
public byte[] getThumbnailByLongestSideDirect(Pixels pixels,
                                              RenderingDef def,
                                              Integer size);

This method should scale the image proportionally. For example an image with a hight of 500 and a width of 100 where the "size" requested is 48, would scale the width by the ratio 48/500.

Change History (2)

comment:1 Changed 13 years ago by cxallan

  • Description modified (diff)
  • Status changed from new to assigned

comment:2 Changed 13 years ago by cxallan

  • Resolution set to fixed
  • Status changed from assigned to closed

Implemented in r1049.

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.74627 sec.)

We're Hiring!