Error #2015

1,175 views
Skip to first unread message

Piter

unread,
Jun 13, 2011, 3:24:44 PM6/13/11
to SWFUpload
Trying to upload image - http://img.if.ua/gja.jpg - through
"resizedemo", I got this error:
Error generating resized image. Resizing: Error #2015
But PHP with GD resizes this image successfully. What is this error
means?

SWFUpload_v250_beta_3_samples + swfupload.swf.v2.5.0.beta3.2

James Wright

unread,
Jun 13, 2011, 4:11:31 PM6/13/11
to Piter, SWFUpload
Is the image CMYK? If so that's your problem.


James.

Kevin Hicks

unread,
Sep 13, 2011, 11:14:01 AM9/13/11
to swfu...@googlegroups.com, Piter
James,
I am getting the same error code when attempting to resize a large image.  It is RGB.  Dimensions are 5908x4256.  It will upload if I don't resize it.  An thoughts?  I have include the image that can be download for testing.  Trying to resize is it to 300 width.

Kevin Hicks

unread,
Sep 13, 2011, 11:16:29 AM9/13/11
to swfu...@googlegroups.com, Piter

James Wright

unread,
Sep 13, 2011, 11:27:15 AM9/13/11
to swfu...@googlegroups.com, kev...@mjharris.com, Piter
I think this might be the problem:



In AIR 1.5 and Flash Player 10, the maximum size for a BitmapData object is 8,191 pixels in width or height, and the total number of pixels cannot exceed 16,777,215 pixels. (So, if a BitmapData object is 8,191 pixels wide, it can only be 2,048 pixels high.) In Flash Player 9 and earlier and AIR 1.1 and earlier, the limitation is 2,880 pixels in height and 2,880 in width.


HTH

James.

Kevin Hicks

unread,
Sep 13, 2011, 11:37:16 AM9/13/11
to swfu...@googlegroups.com, kev...@mjharris.com, Piter
Looks like that is the problem.  Thanks for the quick response and direction!

Tom McQuarrie

unread,
Jan 26, 2012, 8:51:42 PM1/26/12
to swfu...@googlegroups.com, kev...@mjharris.com, Piter
Hi Kevin,

Just wondering if you found a work around for this error?  Obviously the whole point of using the resize option in swfupload is so clients don't have to know how to resize a photo (as most of them have no idea).  With the megapixel rating of most digital cameras these days this will become more of a problem as time goes on.

Don't know much about the image objects in actionscript but maybe the solution is to cut the photo up into multiple smaller photos, resize individually, then recombine them before sending to the server, if they're over adobe's awesome pixel limit.

KBorders01

unread,
Mar 18, 2012, 8:56:12 PM3/18/12
to SWFUpload
Hey All, I just found this post today and have been trying to find a
work-around so that users of our site can upload photos over 16 MP. It
turns out that I have isolated the problem. The issue is not the size
by itself; flash can load a large image if it is resized immediately.
The problem is that SWFUpload applies a blurFilter before downsizing
the image, which is where this error is thrown. I wrapped the
blurFilter code in loaderComplete() in ImageResizer.as with the
following if statement and now everything works like a charm:

if (bmp.width * bmp.height < 0x01000000) {
// existing blur if statement and code
}

Hope this helps!

Cheers,
Kevin Borders

Kevin P. Hicks

unread,
Mar 18, 2012, 10:32:48 PM3/18/12
to KBorders01, SWFUpload
Thanks for the post. I will give this a try tomorrow.

Sent from my iPad

The contents of this e-mail, including any attachment(s), are confidential to the addressee and intended solely for the use of the intended recipient(s). Promptly notify the sender via return email if you are neither the intended recipient nor an authorized representative thereof. Recipients receiving this email in error should not save, retain, print, copy, distribute, or disclose its content in any form. Promptly destroy this email, including any attachments, if you are not an intended recipient.

James Wright

unread,
Mar 19, 2012, 4:15:55 AM3/19/12
to KBorders01, SWFUpload
Yes Kevin,

This is an awesome post, thanks for looking into it more!

A question though... How have you found the quality of the images after removing the blur?

Should the blur be applied AFTER the resample?

Once again, good work :)

James.

Kevin Borders

unread,
Mar 19, 2012, 8:50:39 AM3/19/12
to James Wright, SWFUpload
Hi James,

They are so big if over 16 MP that it doesn't seem to be an issue not
doing the blur when you downsize. I could notice no difference going
from 17 MP down to 1.5 MP. I haven't tried doing the blur afterward,
but it might make the photo just look blurry and bad.

Kevin

Message has been deleted

Jordan Hammond

unread,
May 16, 2012, 8:44:36 AM5/16/12
to swfu...@googlegroups.com, James Wright
Hi, do you have a compiled swf of this change? 
I don't have any Flash software installed to change the action script and recompile.

lu.malagrino

unread,
Jul 31, 2012, 2:30:01 PM7/31/12
to swfu...@googlegroups.com
Hi! Do you have a compiled swf with these changes you made? I've been trying to change, but I can't find a software to decompile swf with the .ac archives..
Really appreciate if you could send me the compiled version of swfupload. 
Thanks!

lu.malagrino

unread,
Aug 1, 2012, 11:23:16 AM8/1/12
to swfu...@googlegroups.com
Could you explain me how do I change that? I've been triyng for a while, but no success at all... And I really need this to work.
Thanks!

lu.malagrino

unread,
Aug 1, 2012, 11:31:16 AM8/1/12
to swfu...@googlegroups.com, KBorders01
Hi! I would like to know if you made the changes suggested by Kevin. I'm trying to do it, but I don't know at all flash .. Sorry to bother, but I really need this to work...
Thanks!  
Reply all
Reply to author
Forward
0 new messages