update to thumbnailator 0.4.8

This commit is contained in:
Andy Bunce 2016-04-16 22:21:17 +01:00
parent b91d5adfcb
commit 4b00a768fa
18 changed files with 303 additions and 98 deletions

View file

@ -1,8 +1,8 @@
# apb.image.thumbnailator
# expkg-zone58.image.thumbnailator
An XQuery interface to the thumbnail generator library
[thumbnailator](http://code.google.com/p/thumbnailator/)
[thumbnailator](https://github.com/coobird/thumbnailator)
BaseX 7.7 or greater is required.
Tested against BaseX 8.4.3.
# Installation
@ -10,15 +10,16 @@ The library is packaged in the [EXpath](http://expath.org/spec/pkg) xar format w
the thumbnailator jar included. It can be installed into the BaseX repository by
executing the command:
````
repo:install('http://apb2006.github.io/thumbnailator/dist/thumbnailator.zar')
repo:install('https://github.com/expkg-zone58/ex-thumbnailator/dist/thumbnailator.zar')
````
# Usage
````
import module namespace t="apb.image.thumbnailator";
t:make("/tmp/pic.jpg","/tmp/small.jpg",120,120)
import module namespace t="expkg-zone58.image.thumbnailator";
t:create-thumbnail("/tmp/pic.jpg","/tmp/small.jpg",120,120)
````
# Tests
The `test.xq` script uses the BaseX [Unit module](http://docs.basex.org/wiki/Unit_Module)
todo
#
`test.xqm` script uses the BaseX [Unit module](http://docs.basex.org/wiki/Unit_Module)
# todo
explore java binding limits and fluent interface