Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I know this question is quite old, but as new software comes out it does help to get some new links to projects that might be interesting for folks.</p> <p><a href="https://github.com/thebuzzmedia/imgscalr">imgscalr</a> is pure-Java image resizing (and simple ops like padding, cropping, rotating, brighten/dimming, etc.) library that is <a href="http://www.thebuzzmedia.com/downloads/software/imgscalr/javadoc/org/imgscalr/Scalr.html">painfully simple</a> to use - a single class consists of a set of simple graphics operations all defined as <em>static</em> methods that you pass an image and get back a result.</p> <p>The most basic example of using the library would look like this:</p> <pre><code>BufferedImage thumbnail = Scalr.resize(image, 150); </code></pre> <p>And a more typical usage to generate image thumbnails using a few quality tweaks and the like might look like this:</p> <pre><code>import static org.imgscalr.Scalr.*; public static BufferedImage createThumbnail(BufferedImage img) { // Create quickly, then smooth and brighten it. img = resize(img, Method.SPEED, 125, OP_ANTIALIAS, OP_BRIGHTER); // Let's add a little border before we return result. return pad(img, 4); } </code></pre> <p>All image-processing operations use the raw Java2D pipeline (which is hardware accelerated on major platforms) and won't introduce the pain of calling out via JNI like library contention in your code.</p> <p>imgscalr has also been deployed in large-scale productions in <a href="http://www.thebuzzmedia.com/software/imgscalr-java-image-scaling-library/#projects">quite a few places</a> - the inclusion of the <a href="http://www.thebuzzmedia.com/downloads/software/imgscalr/javadoc/org/imgscalr/AsyncScalr.html">AsyncScalr class</a> makes it a perfect drop-in for any server-side image processing.</p> <p>There are numerous tweaks to image-quality you can use to trade off between speed and quality with the highest ULTRA_QUALITY mode providing a scaled result that looks better than GIMP's Lancoz3 implementation.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload