- Affected version
- 2.2 Beta 1
I'd like to change the options (image quality) for media gallery thumbnails.
However, the methods of
So as far as I can see there are only two options to achieve this, but both feel kinda ugly & hacky
If the methods of
However, the methods of
\XFMG\Service\Media\ThumbnailGenerator do not pass the quality parameter to $image->save().So as far as I can see there are only two options to achieve this, but both feel kinda ugly & hacky
- Override the affected methods of
\XFMG\Service\Media\ThumbnailGeneratoreffectively duplicating a lot of code - Override method
save()in the image classes and somehow override the settings there if applicable
If the methods of
\XFMG\Service\Media\ThumbnailGenerator did take optional parameters $format and $quality and pass them down to [ICODE$image->]save()[/ICODE], changing the options would be much cleaner.