ex-thumbnailator/index.html

76 lines
No EOL
3.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<title>Thumbnailator by expkg-zone58</title>
</head>
<body>
<div id="container">
<div class="inner">
<header>
<h1>Thumbnailator</h1>
<h2>An XQuery interface to the thumbnail generator library [thumbnailator](https://github.com/coobird/thumbnailator </h2>
</header>
<section id="downloads" class="clearfix">
<a href="https://github.com/expkg-zone58/ex-thumbnailator/zipball/master" id="download-zip" class="button"><span>Download .zip</span></a>
<a href="https://github.com/expkg-zone58/ex-thumbnailator/tarball/master" id="download-tar-gz" class="button"><span>Download .tar.gz</span></a>
<a href="https://github.com/expkg-zone58/ex-thumbnailator" id="view-on-github" class="button"><span>View on GitHub</span></a>
</section>
<hr>
<section id="main_content">
<h1>
<a id="installation" class="anchor" href="#installation" aria-hidden="true"><span class="octicon octicon-link"></span></a>Installation</h1>
<p>The library is packaged in the <a href="http://expath.org/spec/pkg">EXpath</a> xar format with
the thumbnailator jar included. It can be installed into the BaseX repository by
executing the command:</p>
<pre><code>repo:install('http://apb2006.github.io/thumbnailator/dist/thumbnailator.zar')
</code></pre>
<h1>
<a id="usage" class="anchor" href="#usage" aria-hidden="true"><span class="octicon octicon-link"></span></a>Usage</h1>
<pre><code>import module namespace t="apb.image.thumbnailator";
t:make("/tmp/pic.jpg","/tmp/small.jpg",120,120)
</code></pre>
<h1>
<a id="tests" class="anchor" href="#tests" aria-hidden="true"><span class="octicon octicon-link"></span></a>Tests</h1>
<p>The <code>test.xq</code> script uses the BaseX <a href="http://docs.basex.org/wiki/Unit_Module">Unit module</a></p>
</section>
<footer>
Thumbnailator is maintained by <a href="https://github.com/expkg-zone58">expkg-zone58</a><br>
This page was generated by <a href="https://pages.github.com">GitHub Pages</a>. Tactile theme by <a href="https://twitter.com/jasonlong">Jason Long</a>.
</footer>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-2241947-7");
pageTracker._trackPageview();
} catch(err) {}
</script>
</div>
</div>
</body>
</html>