BUG? No scaling after rotate

Image scaler add-on.
Post Reply
jmarcv
Posts: 26
Joined: Sun Nov 07, 2010 4:21 pm

BUG? No scaling after rotate

Post by jmarcv »

Dropping a large image into the uploader UI and using the rotate icons will rotate the image, but scaling will be disabled once you start upload.
My image was 2000X2000 and scaling width was set to 600.
The image is scaled properly as long as it is NOT rotated from within JFU

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: BUG? No scaling after rotate

Post by support »

We've just made a test with a 1972x1470 JPEG image and it rotates and scales image before upload.
Do you have any error in the Java console? Could you provide a link to download your a testing image with the issue you report?

Do you have the following enabled in your i18n_pane.properties:

Code: Select all

preview.image.rotation.impl=jfileupload.upload.client.filter.ImageFilter
preview.image.rotateicon=jfileupload/transfer/client/preview/rotate.png
preview.image.rotatelefticon=jfileupload/transfer/client/preview/rotateleft.png
preview.upload.rotation.started=Image rotation started ({0}), please wait ...
preview.upload.rotation.completed=Image rotation completed ({0})
preview.upload.rotation.failed=Image rotation failed: {0}
Also, could you make sure ifilter.jar and previewui.jar are both in ARCHIVE parameters of the JavaScript?

jmarcv
Posts: 26
Joined: Sun Nov 07, 2010 4:21 pm

Re: BUG? No scaling after rotate

Post by jmarcv »

No errors in console.

Code: Select all

[INFO] GridPanel - Rotate:90 => 90.0
[INFO] ImageFilter - Passing all metadata []: javax_imageio_jpeg_image_1.0
[INFO] ImageFilter - Image writing []: true (C:\DOCUME~1\jmv\LOCALS~1\Temp\IMG_2977-8.JPG)
[INFO] ImageFilter - Passing all metadata []: javax_imageio_jpeg_image_1.0
[INFO] ImageFilter - Image writing []: true (C:\DOCUME~1\jmv\LOCALS~1\Temp\IMG_2977-8.JPG)
[INFO] HTTPUploadTransfer - Upload (POST) started : C:\DOCUME~1\jmv\LOCALS~1\Temp\IMG_2977-8.JPG
pane - all enabled as you specify

Code: Select all

ARCHIVE="lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar,lib/jsapi.jar,lib/ifilter.jar,lib/previewui.jar" 
Image in question (I tried at least 20) cannot be uploaded.


Will give you login info in email to see for yourself. - but first, maybe the issue is something else because, yes it APPEARS to be scaled to 900 pixels as I specified.

BUT......
Here is what I am seeing.

The original image is 2.5MB
When uploaded as is, the size at the server is 1 MB
When rotated and uploaded, the image at the server is 4MB!

I am double checking my data.

jmarcv
Posts: 26
Joined: Sun Nov 07, 2010 4:21 pm

Re: BUG? No scaling after rotate

Post by jmarcv »

Verified. It IS scaling - however, rotated image is bloated and MUCH larger than original.
Original image is 2.58MB


Unrotated exif:

Code: Select all

mage: ORG_img_2977-8_1300034675.jpg
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Class: DirectClass
  Geometry: 900x900
  Type: TrueColor
  Endianess: Undefined
  Colorspace: RGB
  Channel depth:
    Red: 8-bits
    Green: 8-bits
    Blue: 8-bits
  Channel statistics:
    Red:
      Min: 0 (0)
      Max: 241 (0.945098)
      Mean: 113.869 (0.446546)
      Standard deviation: 71.7433 (0.281346)
    Green:
      Min: 0 (0)
      Max: 231 (0.905882)
      Mean: 99.7862 (0.391319)
      Standard deviation: 76.2385 (0.298975)
    Blue:
      Min: 0 (0)
      Max: 230 (0.901961)
      Mean: 95.4466 (0.3743)
      Standard deviation: 76.3989 (0.299604)
  Colors: 129535
  Rendering intent: Undefined
  Resolution: 180x180
  Units: PixelsPerInch
  Filesize: 1.01mb
  Interlace: None
  Background color: white
  Border color: #DFDFDF
  Matte color: grey74
  Page geometry: 900x900+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: JPEG
  Quality: 100
  Orientation: Undefined
  JPEG-Colorspace: 2
  JPEG-Sampling-factors: 1x1,1x1,1x1
  Signature: b139a413d6ce92e7e49e3ea73c96f22245ae7dd07ee0cdede98e64d35bc7e5b8
  Profile-exif: 8518 bytes


rotated exif

Code: Select all

Image: ORG_img_2977-8_1300034798.jpg
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Class: DirectClass
  Geometry: 900x900
  Type: TrueColor
  Endianess: Undefined
  Colorspace: RGB
  Channel depth:
    Red: 8-bits
    Green: 8-bits
    Blue: 8-bits
  Channel statistics:
    Red:
      Min: 0 (0)
      Max: 241 (0.945098)
      Mean: 114.013 (0.447111)
      Standard deviation: 71.5859 (0.280729)
    Green:
      Min: 0 (0)
      Max: 231 (0.905882)
      Mean: 100.004 (0.392174)
      Standard deviation: 76.0294 (0.298154)
    Blue:
      Min: 0 (0)
      Max: 230 (0.901961)
      Mean: 95.6456 (0.375081)
      Standard deviation: 76.2262 (0.298926)
  Colors: 129361
  Rendering intent: Undefined
  Resolution: 180x180
  Units: PixelsPerInch
  Filesize: 3.75mb
  Interlace: None
  Background color: white
  Border color: #DFDFDF
  Matte color: grey74
  Page geometry: 900x900+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: JPEG
  Quality: 100
  Orientation: Undefined
  JPEG-Colorspace: 2
  JPEG-Sampling-factors: 1x1,1x1,1x1
  Signature: 96917f0c1730a2cbcee7372e0fec0c39e47d60f583c84ba92dffff6d5bba5797
  Profile-exif: 8518 bytes


jmarcv
Posts: 26
Joined: Sun Nov 07, 2010 4:21 pm

Re: BUG? No scaling after rotate

Post by jmarcv »

Was this bug fixed in 2.9?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: BUG? No scaling after rotate

Post by support »

Please share your image - Drop an email with the link to support(at)jfileupload(dot)com

Post Reply