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

Enable gif support #8

Open
almeric opened this issue Apr 10, 2024 · 0 comments
Open

Enable gif support #8

almeric opened this issue Apr 10, 2024 · 0 comments

Comments

@almeric
Copy link

almeric commented Apr 10, 2024

AWS Serverless Image Handler supports gif since v6.1.0

Could you update this transform to allow format: 'gif' and disable the fallback to png?

See:

if ($format === 'gif') { // If format is `gif`, we have to deal with it...
if (!empty($settings->autoConvertGif)) {
if (is_string($settings->autoConvertGif)) {
$format = $settings->autoConvertGif;
} else {
$format = 'png';
}
} else {
$message = 'The AWS Serverless Image Handler does not support converting images to GIF. Please use `autoConvertGif` or add conditionals to avoid passing in GIFs.';
Craft::error($message, __METHOD__);
throw new ImagerException($message);
}
}

Thanks in advance!

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

No branches or pull requests

1 participant