org.chenillekit.tapestry.core.services.impl
Class ThumbNailServiceImpl

java.lang.Object
  extended by 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 $

Constructor Summary
ThumbNailServiceImpl(Logger logger, ImageService imageService, Context context, AssetFactory assetFactory)
           
 
Method Summary
 Asset convertToThumbnail(Asset originalAsset, int height, float quality)
          converts the original image originalAsset to a thumbnail
 String getThumbnailPath()
          get the path where generated thumbnail should stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThumbNailServiceImpl

public ThumbNailServiceImpl(Logger logger,
                            ImageService imageService,
                            Context context,
                            AssetFactory assetFactory)
Method Detail

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 image
height - scale down to height
quality - 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.