网站只支持接收PNG格式图片,本地却是JPG格式图片,如何给图片转码呢?这次给大家演示,使用Java,转码图片格式。
你可能需要用到外部包
thumbnailator:https://github.com/coobird/thumbnailator
webp-imageio-core:https://github.com/nintha/webp-imageio-core
如果需要视频对应的图文教程:https://mintimate.cn/2021/01/19/JavaDealWithImage