Minify file from URL
https://api.minify.monster
{
'apikey': 'ApiKey',
'url': 'https://site-url.com/image.jpg',
'from_url': true,
'images': [
{
'mode': 'auto',
'width': 1920,
'height': 1920,
'extension': 'webp',
'quality': 'auto',
'method': 'LANCZOS',
'background': '#ffffff',
'watermark': 'https://site-url.com/watermark.png',
'watermark_position': 'br',
'watermark_size': 10
},{
'mode': 'fill',
'width': 300,
'height': 300,
'extension': 'webp'
}
]
}
Response
{
'success': true,
'images': [
https://storage.minify.monster/optimized-image-one.webp,
https://storage.minify.monster/optimized-image-two.webp
],
'extra': [
'white': 80
]
}
Upload file to our server and then minify
https://upload.minify.monster
{
'apikey': 'ApiKey',
'file': '/var/www/path-to-file/image.jpg',
}
Response
{
'success': true,
'row': 9,
'fingerprint': '8ha2knyoi2gsivuz'
}
Request
https://api.minify.monster
{
'apikey': 'ApiKey',
'row': 9,
'fingerprint': '8ha2knyoi2gsivuz',
'images': [
{
'mode': 'auto'
}
]
}
Response
{
'success': true,
'images': [
https://storage.minify.monster/optimized-image-one.jpg
]
}
Download minified files from our storage to you. Generated images are accessible only for few hours.