This api helps you to resize, compress, and convert images.
Authentication for this API is done using an x-api-key
header.
x-api-key: YOUR_API_KEY
image
(required) - The image URL (e.g., https://goonlinetools.com/logo.png).quality
- The image quality (1 - 100): A lower number results in higher compression.height
- The image height (numeric). To make this work, you must also provide the width.width
- The image width (numeric). To make this work, you must also provide the height.format
- The image format (webp, png, jpeg).x-api-key
(required) - Your API Key.Rendered Image
const axios = require('axios');
const FormData = require('form-data');
let data = new FormData();
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://goonlinetools.com/api/image-transformation?image=https://goonlinetools.com/logo.png&format=webp&height=500&width=500&quality=90',
headers: {
'x-api-key': 'Your API Key',
...data.getHeaders()
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Each successful request to the API consumes 1 credit.
This API is manually enabled for your domain. Please contact us to enable