Go to file
Andy Bunce 20dd832c82 add 2016-04-16 22:23:31 +01:00
dist add 2016-04-16 22:23:31 +01:00
src update to thumbnailator 0.4.8 2016-04-16 22:21:17 +01:00
tools update to thumbnailator 0.4.8 2016-04-16 22:21:17 +01:00
.project update to thumbnailator 0.4.8 2016-04-16 22:21:17 +01:00
LICENSE update to thumbnailator 0.4.8 2016-04-16 22:21:17 +01:00
package.xml update to thumbnailator 0.4.8 2016-04-16 22:21:17 +01:00
readme.md update to thumbnailator 0.4.8 2016-04-16 22:21:17 +01:00

readme.md

expkg-zone58.image.thumbnailator

An XQuery interface to the thumbnail generator library thumbnailator

Tested against BaseX 8.4.3.

Installation

The library is packaged in the EXpath xar format with the thumbnailator jar included. It can be installed into the BaseX repository by executing the command:

repo:install('https://github.com/expkg-zone58/ex-thumbnailator/dist/thumbnailator.zar')

Usage

import module namespace t="expkg-zone58.image.thumbnailator";
t:create-thumbnail("/tmp/pic.jpg","/tmp/small.jpg",120,120)

Tests

test.xqm script uses the BaseX Unit module

todo

explore java binding limits and fluent interface