Closed guowei-gong closed 2 years ago
Hey did you found the fix on this ? i have the same issue as you, my image became larger when i put the compression
This issue closed without a solution @guowei-gong? Can u provide your solution?
This issue closed without a solution @guowei-gong? Can u provide your solution?
I changed the suffix of the picture of .png
to the suffix of .jpg
, which is effective
I changed the suffix of the picture of
.png
to the suffix of.jpg
, which is effective
I changed the suffix of the picture of .png to the suffix of .jpg, which is effective
go version go1.16.6 darwin/amd64 I installed other dependencies through brew install.
I use a picture in jpg format as the input source, everything works fine.Through the quality option, the image size has become smaller.
code:
result:
When I try to compress pictures in png format, its compression effect is very poor.
code:
result:
If I change the Compression option to 1, its image size becomes larger?
code:
result:
Thank you in advance for your help. My English is not very good.