Posted by: Morten Nobel-Jørgensen | August 21, 2010

java-image-scaling 0.8.5 released


I have released a new version of my image scaling library for Java. The new version contains two minor bugfixes:

  • Fix minor rounding error ( Issue 16 )
  • Change DimensionConstrain constructor from private to protected ( Issue 19 )

The binaries and source is available on the projects website: http://code.google.com/p/java-image-scaling/

Besides the library is also available from the maven repositories:

<dependency>
    <groupId>com.mortennobel</groupId>
    <artifactId>java-image-scaling</artifactId>
    <version>0.8.5</version>
</dependency>
Advertisements

Responses

  1. Hi,
    Please let me know if I need to crop a image how can I do that using Image Scaling API. I had tried to use the ResampleOp() constructor and passed the parameter as ResampleOp(71,71) but it is making the image flat, so I want to crop the image.

    Regards
    Sameer

    • Hi Sameer

      The library does currently not support cropping the image – but you can use the method BufferedImage.getSubimage(x,y,w,h) to crop an image (after you have scaled the image).
      I encourage you to take a look at the class com.mortennobel.imagescaling.DimensionConstrain – this should give you an idea of how the rescale dimension is computed.

      – Morten

  2. Hi,

    i m wondering does ResampleOp support anti-aliasing?

    Or can i easily extend ResampleOp to say, add an JitterFilter, which will jitter samples my bufferedImage.

    thanks in advance

  3. […] looking for a good image resizing solution in java, and I believe Morten Nobel-Jørgensen’s java image scaling library fits that description.  Specifically, I chose to use his MultiStepRescaleOp class, which does not […]

  4. Hi Morten – your image resizing is very good indeed! Good quality results and of minimum size. Just one issue; sometimes vertical images are rotated by 90 degrees. Any advice ?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: