alejandro Posted August 17, 2016 Share Posted August 17, 2016 Hello, I can´t upload an animated gif into an image field, when using "Choose file" or dropping the file onto the field it keeps spinning but doesn´t finish, and when saving the page it's not uploaded. Any idea why? Thanks in advance, Alejandro. Link to comment Share on other sites More sharing options...
horst Posted August 17, 2016 Share Posted August 17, 2016 (edited) Just to be safe: which version of PW? I assume PW 3+ or 2.8+ But regardless of that, you need to install this: http://modules.processwire.com/modules/image-animated-gif/ EDIT: For the record: We want to implement an equivalent of the above module into the PW 3+ / 2.8+ core. But I first need to modify / write it. Edited August 17, 2016 by horst 6 Link to comment Share on other sites More sharing options...
alejandro Posted August 18, 2016 Author Share Posted August 18, 2016 Version 3.0.25, and I already installed that module. The thumbnail is ok but it's not saved, ... Link to comment Share on other sites More sharing options...
alejandro Posted August 18, 2016 Author Share Posted August 18, 2016 Well there is something weird going on, I tested the same file in another site, same version 3.0.25, (even animated gif module not installed) and it worked perfectly. Same setup for the image field in both sites. Link to comment Share on other sites More sharing options...
alejandro Posted August 18, 2016 Author Share Posted August 18, 2016 Finally I found it. It seems a conflict with the module Image Extra, which I installed previously, once uninstalled the animated gif is uploaded without problem. 2 Link to comment Share on other sites More sharing options...
kuba2 Posted August 25, 2016 Share Posted August 25, 2016 Hi there I have a 6 MB gif...is that too big? Should that work nonetheless? It's endlessly saving... Thanks Kuba Link to comment Share on other sites More sharing options...
horst Posted August 25, 2016 Share Posted August 25, 2016 Endless saving events are a sign that the ajax upload resulted in returning some PHP notice, warning, error via AJAX. That prevents the imagefield from updating correctly. You need to use the browsers Webtools and see what you get returned from the AJAX upload. ALso useful is to check manually in the assets/files/{12345}/ folder what files are there. (Your original file? A thumbnail? Nothing?) 2 Link to comment Share on other sites More sharing options...
kuba2 Posted August 25, 2016 Share Posted August 25, 2016 A small gif worked perfectly...maybe it's just the big size...? Can the gif be faulty? Thanks Link to comment Share on other sites More sharing options...
horst Posted August 25, 2016 Share Posted August 25, 2016 what is returned via the AJAX request? what is in the logs? have you turned $config->debug to true? 1 Link to comment Share on other sites More sharing options...
kuba2 Posted August 25, 2016 Share Posted August 25, 2016 Console : http://diabeu.com/processwire/page/image/resize?id=1&file=skull.gif&width=505&height=727&hidpi=0 Failed to load resource: the server responded with a status of 500 (Internal Server Error) The file is in the assets/files folder Link to comment Share on other sites More sharing options...
kuba2 Posted August 25, 2016 Share Posted August 25, 2016 this happens with $config->debug true XHR Loaded (resize - 500 Internal Server Error - 7.216459000002942s - 754B) VM5639:3 http://diabeu.com/processwire/page/image/resize?id=1&file=skull.gif&width=505&height=727&hidpi=0 VM5640:3 Time over 1000ms VM5641:3 Object {startedDateTime: "2016-08-25T17:16:39.149Z", time: 7216.459000002942, request: Object, response: Object, cache: Object…} Link to comment Share on other sites More sharing options...
horst Posted August 25, 2016 Share Posted August 25, 2016 Don't understand enough from the server responses, but it's clearly no PW issue. You may investigate more into max_upload sizes, max_memory, etc. This isn't apache, or? 1 Link to comment Share on other sites More sharing options...
kuba2 Posted August 25, 2016 Share Posted August 25, 2016 Hej thanks! Well, there is apache running on the server... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now