-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request #1
Comments
There was a great but unsupported image library: https://packagist.org/packages/kosinix/grafika |
This class using Imagick to manipulate animated GIF, you can call to Or once you have done image manipulation with this class, you can use another image library that is able to optimize to do it. |
I don't understand what "unsupported image library" is in your meaning. |
It makes no sense to use a library for the optimization, because currently none exists that can handle animated gifs. For example, you adjust the size of an animated gif file with the library from you, and then lose the animation through "optimization"? Grafika is still no longer maintained. Means for over 5 years there was nothing more adjusted there. It has bugs for which even pull requests are already open, but are not merged and also in terms of code maintenance towards PHP 8 and further nothing will happen anymore with Grafika. That's what I mean by unsupported. |
This class maybe not working on PHP 8 because PHP Imagick don't publish the version for Windows yet. I don't have PHP Imagick extension for PHP 8 on Windows to work with. (Reference 1 2) I'm not sure does
https://www.php.net/manual/en/imagick.optimizeimagelayers.php
I'm not tested with the code above but I hope that the result will be better compare to the code below.
Now, I understand that you want animated GIF optimization but that seems to very hard for me because If I can do that, I should be able to make resize animated GIF with GD too. |
Such a solution only with a little more optimization I have already written, but unfortunately there is currently a problem with imagick and the installation via pecl at PHP8+. |
Yes, I've just tested and it is the same or did not much help. Sorry, animated GIF optimization is over my limit, I'm not that smart to create something awesome like that. |
You set your own limits - There is only in fact one limit and that is time. But all good 👍🏼 |
Can you add a optimization possibility like https://packagist.org/packages/spatie/image-optimizer
The main problem for every image library is the part with animated gifs - well, yours support animated gifs BUT have no possiblity to optimize the image itself :(.
The text was updated successfully, but these errors were encountered: