add height/width accessor methods

This commit is contained in:
mappu 2017-11-18 13:26:07 +13:00
parent 3378948eb2
commit 9e7eca86b7

View File

@ -73,6 +73,14 @@ func NewThumbnailerEx(Width, Height int, MaxCacheSize uint, of OutputFormat, af
return ret
}
func (this *Thumbnailer) Width() int {
return this.width
}
func (this *Thumbnailer) Height() int {
return this.height
}
func (this *Thumbnailer) RenderFile(absPath string) ([]byte, error) {
if this.thumbCache != nil {