Gallery upload large images gives error #2015

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Gallery upload large images gives error #2015

Post 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
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Gallery upload large images gives error #2015

Post 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)
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Gallery upload large images gives error #2015

Post by paulbaker »

Thanks for the reply Jos, I fully understand. Thanks for a great module. 8)
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Gallery upload large images gives error #2015

Post 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.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: Gallery upload large images gives error #2015

Post by hexdj »

Thanks for the suggestion Johnny, this fixed the issue for me.
Locked

Return to “Modules/Add-Ons”