Jump to content
alejandro

Can't upload animated GIF

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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 by horst
  • Like 6

Share this post


Link to post
Share on other sites

Version 3.0.25, and I already installed that module. The thumbnail is ok but it's not saved, ... 

Screen Shot 2016-08-18 at 08.30.47.png

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

  • Like 2

Share this post


Link to post
Share on other sites

Hi there

I have a 6 MB gif...is that too big? Should that work nonetheless?

It's endlessly saving...
 

Thanks

Kuba

Share this post


Link to post
Share on other sites

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?)

  • Like 2

Share this post


Link to post
Share on other sites

A small gif worked perfectly...maybe it's just the big size...?

Can the gif be faulty?

 

Thanks

Share this post


Link to post
Share on other sites

what is returned via the AJAX request?

what is in the logs?

have you turned $config->debug to true?

  • Like 1

Share this post


Link to post
Share on other sites

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…}

Share this post


Link to post
Share on other sites

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?

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...