tinyimg icon indicating copy to clipboard operation
tinyimg copied to clipboard

Support for webp

Open sorenmalling opened this issue 1 year ago • 3 comments

Reading the code

https://github.com/schmitzal/tinyimg/blob/main/Classes/Service/CompressImageService.php#L80-L85

Only jp(e)g and png mimetypes are sent to compression.

TinyPNG mentions the following files in there faq

WebP, JPG, PNG and APNG (animated PNG)

So the list can be extended with image/webp and image/apng

sorenmalling avatar Nov 28 '24 15:11 sorenmalling

@schmitzal what do you think about the requested mime types? :)

Support of image/avif would be great as well.

Mainbird avatar Jun 03 '25 08:06 Mainbird

I'm sorry for the late reply. Was really busy with moving to Spain by end of 2024. I'll review and maybe extend the PR on thursday.

Thank you!

schmitzal avatar Jun 03 '25 09:06 schmitzal

No problem, that would be great. Thank you :)

Mainbird avatar Jun 03 '25 09:06 Mainbird