thebuzzmedia/imgscalr — Issue #62: A image is rotated and resized instead of resized only.
Author: sebad
Created: 2011-12-21 19:11:16+00:00
State: open

Iam using the following sentense to do the resizing:

```groovy
def imageToResize = ImageIO.read( imageFile )

imageToDeliver =
Scalr.resize(imageToResize, Scalr.Method.QUALITY, Scalr.Mode.FIT_TO_WIDTH,
width, height, Scalr.OP_ANTIALIAS )
extension = StringUtils.substring( imageFile.name, imageFile.name.lastIndexOf('.') +1 )
log.trace(" extension: ${extension}")
resizedFile = new File( StringUtils.replace(imageFile.absolutePath, extension ,"_${width}_${height}."+ extension))
log.trace("resizedFile: ${resizedFile}")
redisService.set(key,resizedFile.absolutePath)

println("imageToDeliver: ${imageToDeliver}")
ImageIO.write(imageToDeliver, extension, resizedFile )
```
*original:
http://imageshack.us/photo/my-images/85/5graphicsjpeg.jpg/
*resized:
http://imageshack.us/photo/my-images/266/5graphicsjpeg320480.jpg/

why the image is rotated?