- App
- WoltLab Suite Forum
Animated gif does not load in post.
Animated gif does not load in post.
You cannot can barely process animated images using PHP because it is unaware of the different frames.
There are work-arounds by splitting the image into the individual frames, resize each one of them and assemble it again. The downside of this is the massive memory and CPU consumption which causes an out-of-memory error even for smaller images.
You cannot process animated images using PHP because it is unaware of the different frames.
There are work-arounds by splitting the image into the individual frames, resize each one of them and assemble it again. The downside of this is the massive memory and CPU consumption which causes an out-of-memory error even for smaller images.
It works here without issue
http://sociallyuncensored.eu/threads/animated-gif.19819/
If xenforo can do it... So can you.
To be more precise, it is possible, but just relying on the GD library (imagemagick is available almost nowhere) raises the memory issues I have noted above. In general we try to avoid features which will only work on a small fraction of installation, simply because it requires special extensions or higher system resources.
Does XenForo really support it? Looking at the link it seems to display the original file (which is left untouched), while our software attempts to create thumbnail images based upon the set limit in the ACP. If you set the dimension limit high enough, the software will not create thumbnails and instead return the original file which is then untouched and working.
Does XenForo really support it? Looking at the link it seems to display the original file (which is left untouched), while our software attempts to create thumbnail images based upon the set limit in the ACP. If you set the dimension limit high enough, the software will not create thumbnails and instead return the original file which is then untouched and working.
In fact, if you click on the gif image is displayed correctly and shows the movement.
(imagemagick is available almost nowhere) raises the memory issues I have noted above
Can't you just check whether ImageMagick is enabled in ACP (and available in php ofc) and then scale gifs the correct way so they are still animated? Users who rely on GD will get the non-animated image while users who have enabled ImageMagick get the animated image.
@Alexander Ebert I know WBB 4.0 supports imagemagic. Are you telling me you've removed this in 4.1?
I have A LOT of bloggers. They actually outnumber my forum members at this point.
Which is why I'm really looking forward to what happens with Woltlab Blog. I find more too often, even the case with IP.Board Blog, that blogs are often overlooked.
My issue is my bloggers post things with large fancy photos such as this.
Water-Heart-Animated-hearts-24033694-500-500.gif
So they need to be able to show those photos working and in a responsive design. Without having to click on the photo to view it.
Does XenForo really support it? Looking at the link it seems to display the original file (which is left untouched), while our software attempts to create thumbnail images based upon the set limit in the ACP. If you set the dimension limit high enough, the software will not create thumbnails and instead return the original file which is then untouched and working.
How they do it? I don't care... It works and thats the point.
imagemagick is not dropped in WBB 4.1....
Alexander just said that most webspaces do not offer this application.
imagemagick is not dropped in WBB 4.1....
Alexander just said that most webspaces do not offer this application.
Well I'm panicking at the moment.
This is one of those things that I should have asked about from the start, but didn't, because I automatically assumed WBB 4.1 would have, because hell, everyone else has this even phpBB... So why wouldn't Woltlab.
Add this as a request
Full animated gif support in responsive design
I've tried a few things and I would like to share my observations:
I have used the GIF with the number on it (as uploaded by you) and tried two different things, for each one I have ran the tests 10 times and used the average execution time
It gets slower with each additional frame, because … well image resizing is a CPU-insensitive process, no matter which library you use.
I've tried a few things and I would like to share my observations:
- Using the built-in GD library is a no-go, it's painful slow and requires so much memory that it would never going to work on simple webhost packages (GD memory usage counts towards PHP's memory_limit)
- ImageMagick actually works pretty smooth (internally invokes an external process, completely unaffected by PHP's memory_limit)
I have used the GIF with the number on it (as uploaded by you) and tried two different things, for each one I have ran the tests 10 times and used the average execution time
- Create a 100px x 100px thumbnail using the first frame only (non-animated): 0.40 seconds
- Create a 100px x 100px thumbnail with all frames (animated): 1.79 seconds
It gets slower with each additional frame, because … well image resizing is a CPU-insensitive process, no matter which library you use.
On XF it doesn't resize the image and rather the image is displayed responsibly.
http://sociallyuncensored.eu/threads/animated-gif.19819/
^You'll notice that you can resize your browser window and the image adjust accordingly.
This isn't something you can do with GD and I don't expect GD. But there should be an option for Imagemagick.
However XF does it, it does it without using much resources. I'm confident and hopeful you can apply this in WBB. I can't upgrade without this.
I've run some more tests and I will add support for GIF thumbnails when using ImageMagick. Supporting this along with the GD library isn't an option because it is too slow, consumes to much memory (likely to hit the memory_limit) and does not have proper built-in support for this task, while ImageMagick supports GIF processing out of the box.
I've run some more tests and I will add support for GIF thumbnails when using ImageMagick. Supporting this along with the GD library isn't an option because it is too slow, consumes to much memory (likely to hit the memory_limit) and does not have proper built-in support for this task, while ImageMagick supports GIF processing out of the box.
Woot Woot !!
This is good news.... Now please tell me that I'll be able to have then display responsively like shown here
http://sociallyuncensored.eu/threads/animated-gif.19819/
Because right now, attachments are these small little things, that you can't see unless you click on them. I can't be dependent on an overlay.
35c0cdf5af76cd0d4991344e0292dbba.png
^ The above photo I can't tell what's in there.
Because right now, attachments are these small little things, that you can't see unless you click on them.
Just as I told you earlier, you can setup the maximum dimensions of the thumbnails, if you want bigger thumbnails go ahead and raise the limit in your ACP (Thumbnail Width in Pixel & Thumbnail Height in Pixel). It's that easy.
Just as I told you earlier, you can setup the maximum dimensions of the thumbnails, if you want bigger thumbnails go ahead and raise the limit in your ACP (Thumbnail Width in Pixel & Thumbnail Height in Pixel). It's that easy.
Alright, I run a demo later today...
I'll set it to the maximum screen size possible which is 4096 x 2160. That is exactly what I have it on my site now (using XenForo). And I can upload an image in 4096 x 2160
http://sociallyuncensored.eu/threads/animat…19/#post-290816
And it is fully responsive to fit even a mobile phone, without breaking the width.
Ich hab gesehen du hast nun das mit den animated gif eingebaut:
https://github.com/WoltLab/WCF/co…45e4eb62caf8b2d
Kann es sein dass das allerdings nur im image viewer geht nicht im editor selbst?
Die Änderungen wirken sich nur auf neue Bilder aus und ich weiß außerdem auch nicht, ob die Änderungen schon hier hochgeladen wurden.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!