How to change quality for an image using the base64 encode (or sharp) ? #436
-
What is your question? How to change quality for an image using the base64 encode ? Hello, Could you please help me with a JSON example on how to add the quality parameter for an image using the new base 64 encoding? I've tried
and
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@rapgodnpm I am moving this to the Discussions/Q&A as it is more appropriate in that section Quality changes are associated with the image format and the following is the correct way to specify it in a request. This was tested using quality values of 100 and 50. The results can be compared using Preview on Mac with Tools->Adjust Color. The color palette that appears shows a difference between the two along with the returned image file size being smaller for lesser quality values.
|
Beta Was this translation helpful? Give feedback.
-
Yes, it works if I put
Thank you very much for your help and patience, you saved my day. |
Beta Was this translation helpful? Give feedback.
@rapgodnpm I am moving this to the Discussions/Q&A as it is more appropriate in that section
Quality changes are associated with the image format and the following is the correct way to specify it in a request.
This was tested using quality values of 100 and 50. The results can be compared using Preview on Mac with Tools->Adjust Color.
The color palette that appears shows a difference between the two along with the returned image file size being smaller for lesser quality values.