Page 1 of 1

Gallery upload large images gives error #2015

Posted: Wed Jul 03, 2013 10:36 pm
by paulbaker
CMSMS 1.11.7, Gallery 1.6.1 (Both latest).

I have a client who is trying (unsuccessfully) to upload an image 4.8MB in file size and 6144 x 4096 Pixels (25.17 MPixels). It is failing with Error generating resized image. Resizing: Error #2015. This error is coming from the SWFUpload code which is installed as part of Gallery.

I have spotted a bug report in the forge which deals with exactly this case.
http://dev.cmsmadesimple.org/bug/view/8802
The (closed) bug response gives a link to a Google post which explains a way of altering an Flash Action Script (.as) file to resolve the issue. This is OK if we had access to these files but we don't - they are (presumably) embedded in the swfupload.swf that is installed with Gallery.

Any ideas how I can overcome the #2015 error? ??? (Apart from reducing the size of the image before uploading - client would find that difficult).

As an aside, I notice that SWFUpload (used to upload images in Gallery) is no longer being actively developed and is considered insecure. WordPress have forked it to produce a more secure version which is available to download:
http://make.wordpress.org/core/2013/06/ ... swfupload/
That same post also mentions a different preferred upload plugin, http://plupload.com/

Are there any plans to upgrade Gallery to use either the secure version of SWFUpload, or something like http://plupload.com/ - or can it be integrated with the File Manager in OneEleven?

BTW I have quite a few clients using Gallery, it's a great module, thanks for making and updating it! ;D

Re: Gallery upload large images gives error #2015

Posted: Thu Jul 04, 2013 9:30 am
by Jos
I am not able to help you with error #2015. The various flash errors seem to have something to with server settings or other settings specific to ones configuration.

I am aware for a long time that SWFupload doesn't have an active developer anymore. For a year I have done some experiments with PLUpload.

There are no plans to update Gallery. A plan would implicit there is a timeframe. However I have the ambition to bring the Gallery module to a next level with a version 2.0, which will also include a solid upload function as long as the default FileManager does not contain a client-side resize function.

But we all know the story about CMSms 2.0; I don't want that to happen with Gallery, so no promisses at all 8)

Re: Gallery upload large images gives error #2015

Posted: Thu Jul 04, 2013 2:03 pm
by paulbaker
Thanks for the reply Jos, I fully understand. Thanks for a great module. 8)

Re: Gallery upload large images gives error #2015

Posted: Tue Nov 19, 2013 8:34 pm
by JohnnyB
I was able to confirm that the limitation is from Flash 10: http://help.adobe.com/en_US/FlashPlatfo ... pData.html

There is a 16,777,215 total pixel limitation (height * width). Newer versions of flash 11+ do not have this restriction. Maybe perhaps swfupload will be compiled with flash 11 in the future (maybe it has already been, I didn't check).

For CMS Made Simple users, we can upload photos that are about 16.6 Megapixels and smaller using the Gallery module.

For example, a 5430px by 3055px photo will upload (tested with Gallery 1.6.1) but a 5460px by 3072px will not. I'm assuming there is some overhead when uploading.

Larger photos can be uploaded using File Manager and FTP and other server based methods.

Re: Gallery upload large images gives error #2015

Posted: Sat Feb 15, 2014 12:58 am
by hexdj
Thanks for the suggestion Johnny, this fixed the issue for me.