plan2net / webp

Create a WebP copy for images (TYPO3 CMS)
GNU General Public License v3.0
60 stars 34 forks source link

Support for application/pdf MIME TYPE #34

Closed gregordonsky closed 4 years ago

gregordonsky commented 4 years ago

It should be possible to add application/pdf mime type support?

If i insert an Image Content Element; Pdf extension is supported, but the image it's not converted in webp format.

Adding 'application/pdf' to const SUPPORTED_MIME_TYPES seems to do it.... i don't know if there is any drawback applying this change

Thanks for your efforts! :)

wazum commented 4 years ago

Fixed in 3.1.0 via extension configuration (new option: mime_types)