We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I upload an animated gif in media collection the crops created lose the animation.
I have to add specific options in crop definition to handle it?
const Media: CollectionConfig = { slug: "media", fields: [ { name: "title", type: "text", localized: true, required: true, } ], upload: { staticDir: path.resolve(__dirname, "../../media"), imageSizes: [ { name: "squareSmall", width: 480, height: 480, position: "centre", withoutEnlargement: false }, ], adminThumbnail: ({ doc }: { doc: any }) => { const url = doc.sizes.squareSmall.url || doc.url; return url; }, mimeTypes: ["image/*", "application/pdf"], } };
2.12.1
"@payloadcms/bundler-webpack": "1.0.6", "@payloadcms/db-mongodb": "1.4.4", "@payloadcms/plugin-cloud-storage": "1.1.2", "@payloadcms/plugin-form-builder": "1.2.1", "@payloadcms/plugin-nested-docs": "1.0.12", "@payloadcms/plugin-seo": "2.3.0", "@payloadcms/richtext-lexical": "0.8.0", "@payloadcms/richtext-slate": "1.5.0",
The text was updated successfully, but these errors were encountered:
Reported this here with some workarounds: #2181 (comment)
Sorry, something went wrong.
No branches or pull requests
Link to reproduction
Describe the Bug
When I upload an animated gif in media collection the crops created lose the animation.
I have to add specific options in crop definition to handle it?
To Reproduce
Payload Version
2.12.1
Adapters and Plugins
The text was updated successfully, but these errors were encountered: