org.chenillekit.tapestry.core.services.impl
Class ThumbNailServiceImpl
java.lang.Object
org.chenillekit.tapestry.core.services.impl.ThumbNailServiceImpl
- All Implemented Interfaces:
- ThumbNailService
public class ThumbNailServiceImpl
- extends Object
- implements ThumbNailService
- Version:
- $Id: ThumbNailServiceImpl.java 726 2010-11-03 19:42:33Z homburgs $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThumbNailServiceImpl
public ThumbNailServiceImpl(Logger logger,
ImageService imageService,
Context context,
AssetFactory assetFactory)
convertToThumbnail
public Asset convertToThumbnail(Asset originalAsset,
int height,
float quality)
- converts the original image originalAsset to a thumbnail
- Specified by:
convertToThumbnail in interface ThumbNailService
- Parameters:
originalAsset - the original imageheight - scale down to heightquality - reduce to the given image quality
- Returns:
- the thumbnail of the original image
getThumbnailPath
public String getThumbnailPath()
- get the path where generated thumbnail should stored.
- Specified by:
getThumbnailPath in interface ThumbNailService
- Returns:
- thumbnail path
Copyright © 2008-2011 ChenilleKit. All Rights Reserved.