Free Online Tools: Image Converter Subtitles Converter Subtitles Finder Imgur Downloader
c
This function compresses PNG images using lossless compression. Please note this function takes quite a lot of time. You may also consider using `png_lossy` beforehand.
Requests can be performed using HTTP GET or POST methods. Response is always in JSON format.
parameter value description
either one
required
file File to upload. Use POST method
url URL to upload

request

response

Click POST or GET to see response

possible errors

R7ERR_UPLOAD_FAILED Upload failed R7ERR_NO_UPLOAD No file specified R7ERR_OVER_2MB Uploaded file was bigger than 2 MB R7ERR_NOT_PNG Not a PNG file R7ERR_CONV_FAILED Conversion failed

code samples

Below code samples update automatically when you change parameters above
curl
wget
aria2
php
javascript

curl, method POST


	
	

curl, method GET


wget, method POST


	
	

wget, method GET


aria2, method GET

		

php, method GET



	

php, method GET, using curl


	
	

php, method POST, using curl


javascript, method GET, using XMLHttpRequest

			
			
	

javascript, method GET, using jquery