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.