Questions tagged [imgscalr]

imgscalr is a small, fast Java library using Java's best-practices for image manipulation and providing simple static-method implementations of a handful of core image manipulations (e.g. resize, pad, rotate, crop, etc.)

imgscalr was written and is maintained by Riyad Kalla. It is released under the Apache 2 open source license and is used in a number of commercial applications.

imgscalr was originally written and released in response to seeing the same questions about "good looking thumbnails in Java" and seeing many different ways to accomplish the same thing; some solutions being better than others.

imgscalr took all the best-practices (lowest memory overhead and fastest performance) and rolled them into a single, simple class that exposes a number of static methods that any caller can use to manipulate images.

The popularity of the library grew and the addition of a few other utilities continue to be added as long as they meet the criteria of "being simple to understand and use".

35 questions
0
votes
2 answers

Image Resolution Changing but I am only trying to rotate the image

Any reason this code would changing the resolution of the original JPEG? I can understand if the file size were different because the JPEG quality settings are probably different but I don't understand why this would be resizing an image. File…
Codeguy007
  • 891
  • 1
  • 12
  • 32
0
votes
1 answer

Compress image, using imageScalr

I am using imagescalr for resizing images, but i also want to compress the images so that the size stays below 32kb(as ie 8 supports base64 strings upto 32kb). I am resizing the image like this Map resizeImage(BufferedImage imageData, int width, int…
vijay tyagi
  • 2,226
  • 3
  • 20
  • 31
0
votes
1 answer

Out of memory Exception while dealing with images. in java

==================Hi here is the mycode ============================== this is example to imgscalr package anil1.main; import java.awt.image.BufferedImage; import java.awt.image.BufferedImageFilter; import java.io.File; import…
AnilHoney
  • 259
  • 8
  • 20
0
votes
2 answers

Resize image java with Scalr, Incorrect output image, grey

Possible Duplicate: Resize an image in Java - Any Open Source Library? I wish I could resize the image just before recording! I tried several times but without success. Could you tell me the procedure. I would like to use imgscarlr or better.…
Rosebud
  • 3
  • 1
  • 5
-1
votes
1 answer

ImageIO.write converting color space RGB to CMYK for a JPG image

I am sending a jpg image from client. the image is sent in form of blob. Here is the code in javascript which is sending a canvas image canvas.toBlob((blob) => { this.setState({preview: blob}, () => { console.log(blob.size); …
The Coder
  • 3,447
  • 7
  • 46
  • 81
1 2
3