Image Compression API

Hi,

Is there a way i can integrate TinyPNG API so that every image i upload is automatically compressed and then replaced with the uploaded image when completed?

Hi,

Wix is already using image compression and cdn for your images you upload to the media manager.
if you are talking about a dynamic data collection form submission to upload content by your users and kept in the db
please have a look at https://www.wix.com/code/reference/wix-data.Hooks.html#beforeInsert
you will need to use TinyPNG – API Reference using http calls, not java. our servers allow you to use javascript to write your own backend code, or use external api using http

good luck!
Shlomi

I wonder whether TinyPNG API can support any input format? Hence, I can upload my JPG format to get smaller file size. If it do no damage to original photo’s quality after compression, it will be much better to do it.
Actually, I have a trouble in dealing with my iPhone iOS 11 images, HEIC. Though it takes up less storage space, it is developed with limited compatibility. To enjoy all HEIC images on any other devices, I can only ask some heic converter offline tools for help. If TinyPNG API can support compressing images in high quality, then it will the special feature that only HEIC have.