add height/width accessor methods
This commit is contained in:
parent
3378948eb2
commit
9e7eca86b7
@ -73,6 +73,14 @@ func NewThumbnailerEx(Width, Height int, MaxCacheSize uint, of OutputFormat, af
|
|||||||
return ret
|
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) {
|
func (this *Thumbnailer) RenderFile(absPath string) ([]byte, error) {
|
||||||
|
|
||||||
if this.thumbCache != nil {
|
if this.thumbCache != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user