Skip to content
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

support animated gif #466

Merged
merged 1 commit into from
Aug 19, 2014
Merged

support animated gif #466

merged 1 commit into from
Aug 19, 2014

Conversation

plandolt
Copy link
Contributor

This PR prepares LiipImageBundle to support animated GIF in the future. Next on my todo list is a PR on Imagine.

Imagine PR php-imagine/Imagine#348

@makasim
Copy link
Collaborator

makasim commented Jul 29, 2014

should not we take the value from config, like we do for the quality. It makes it possible to configure this value.

@plandolt
Copy link
Contributor Author

updated the code to support animated value from config. default value is false.

@plandolt
Copy link
Contributor Author

squashed commits and rebased on top of master

));
);

if ($binary->getFormat() === 'gif' && $config['animated']) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we force it? what if we set it for no gif images, what would be get?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by "force it"? I have no idea if its working with non-gif-images...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the idea is to get the value from the config, here for the gif you always force it to be true. I think has to be taken as is from the config and any assumptions are done.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah got it. fixed with the latest push.

animated value from config
makasim added a commit that referenced this pull request Aug 19, 2014
@makasim makasim merged commit a479a3b into liip:master Aug 19, 2014
@plandolt plandolt deleted the animated-gif branch August 19, 2014 10:46
@plandolt
Copy link
Contributor Author

Its waiting for php-imagine/Imagine#348 to get merged. Or did I misunderstood your question?

@Rbn3D
Copy link

Rbn3D commented Jan 16, 2015

It not works for me. My setup is: scuben/Imagine:dev-resize-animated-gif and liip/imagine-bundle:dev-master. I have set animated option to true in my config. Is this supposed to work?

@trsteel88
Copy link
Contributor

Would love to get this implemented. Would be good if everyone could bump the imagine PR ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants