From 9e7eca86b73b7ed7de30ec8621ad464429e341c5 Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 18 Nov 2017 13:26:07 +1300 Subject: [PATCH] add height/width accessor methods --- Thumbnailer.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Thumbnailer.go b/Thumbnailer.go index 0942375..1b01996 100644 --- a/Thumbnailer.go +++ b/Thumbnailer.go @@ -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 {