71 lines
		
	
	
		
			No EOL
		
	
	
		
			3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			No EOL
		
	
	
		
			3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!doctype html>
 | 
						|
<html>
 | 
						|
  <head>
 | 
						|
    <meta charset="utf-8">
 | 
						|
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
 | 
						|
    <title>Thumbnailator by apb2006</title>
 | 
						|
 | 
						|
    <link rel="stylesheet" href="stylesheets/styles.css">
 | 
						|
    <link rel="stylesheet" href="stylesheets/pygment_trac.css">
 | 
						|
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
 | 
						|
    <!--[if lt IE 9]>
 | 
						|
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
 | 
						|
    <![endif]-->
 | 
						|
  </head>
 | 
						|
  <body>
 | 
						|
    <div class="wrapper">
 | 
						|
      <header>
 | 
						|
        <h1>Thumbnailator</h1>
 | 
						|
        <p>An XQuery interface to the thumbnail generator library [thumbnailator](http://code.google.com/p/thumbnailator/)  </p>
 | 
						|
 | 
						|
        <p class="view"><a href="https://github.com/apb2006/thumbnailator">View the Project on GitHub <small>apb2006/thumbnailator</small></a></p>
 | 
						|
 | 
						|
 | 
						|
        <ul>
 | 
						|
          <li><a href="https://github.com/apb2006/thumbnailator/zipball/master">Download <strong>ZIP File</strong></a></li>
 | 
						|
          <li><a href="https://github.com/apb2006/thumbnailator/tarball/master">Download <strong>TAR Ball</strong></a></li>
 | 
						|
          <li><a href="https://github.com/apb2006/thumbnailator">View On <strong>GitHub</strong></a></li>
 | 
						|
        </ul>
 | 
						|
      </header>
 | 
						|
      <section>
 | 
						|
        <h1>
 | 
						|
<a name="installation" class="anchor" href="#installation"><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 name="usage" class="anchor" href="#usage"><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 name="tests" class="anchor" href="#tests"><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>
 | 
						|
        <p>This project is maintained by <a href="https://github.com/apb2006">apb2006</a></p>
 | 
						|
        <p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
 | 
						|
      </footer>
 | 
						|
    </div>
 | 
						|
    <script src="javascripts/scale.fix.js"></script>
 | 
						|
              <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>
 | 
						|
 | 
						|
  </body>
 | 
						|
</html> |