The problem of WeChat Mini Programs uploading and compressing

but the problem I encounter when uploading compressed img is
. Before I uploaded compressed img, it was jpg, but after compressed, it was png?
and then there is the white background after the real img compression before I compress.
I don"t know why. Please give me some advice from the great god who knows. Thank you

.

can you compress it with canvas?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea4f00-1d16.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea4f00-1d16.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?