Original link: https://blog.xiaoz.org/archives/18626
Recently, when using Wails to develop the ImgURL client, it is necessary to compress the image before uploading it. In order to improve efficiency and save time, this time I directly let ChatGPT help me complete this requirement. I made the following request to ChatGPT: Please help me write a Golang function that can receive the image path and compress it. This function needs to support pictures in jpg and png formats, and will check MIME
This article is transferred from: https://blog.xiaoz.org/archives/18626
This site is only for collection, and the copyright belongs to the original author.