Closed tworzenieweb closed 11 years ago
ok i found allowed_extensions
and similar for mime. Problem solved.
gif image can't be resized
I don't need to resize it, just upload into specific gallery. Why gif cannot be resized? it's limitation of this bundle ?
From memory, animated gif cannot be resized with GD or image magick
That is also what I remember but not all gif's are animated so there shouldn't be any problem with them right?
@tworzenieweb, can you provide an example of how you were able to use allowed_extensions
in your config?
Sure, it was something like this:
sonata_media:
providers:
image:
allowed_extensions: ['jpg', 'png', 'gif', 'jpeg']
allowed_mime_types: ['image/pjpeg','image/jpeg','image/png','image/x-png', 'image/gif']
So obvious now that I see it. Thanks for posting that!
I know that this is old thread but anyway Can I except all gif-files from re-sizing? For instance, using specific provider with dummy re-sizer only for gif-files Any examples? Thanks
I know that this is old thread but anyway Can I except all gif-files from re-sizing? For instance, using specific provider with dummy re-sizer only for gif-files Any examples? Thanks
still have an issue, anybody ?
This issue was created almost 10 years ago. Please open a new issue with your concrete issue, make sure you fill the whole issue template.
Hi,
today i was trying to made some gallery of advertisements for my page. I have installed this bundle as always with Symfony 2.1. I was a little surprised that image validator didn't allow me to send any gif files. Only jpeg files pass. Is there any special config parameter that controls this?
I have checked provider.xml file for any hints but
This definition is rather straightforward with image provider constructor
public function __construct($name, Filesystem $filesystem, CDNInterface $cdn, GeneratorInterface $pathGenerator, ThumbnailInterface $thumbnail, array $allowedExtensions = array(), array $allowedMimeTypes = array(), ImagineInterface $adapter)
so my question is based on which parameter set of allowed extensions and mime types is fetched?