Will you have an API to Smush.it so that my tool can automatically smush images as they are published?
Yes, in fact the API came before the tool and our tool is using the API you can use yourself. The documentation is lacking but if you point your browser to a script called ws.php (as in “Web Service”) you should be able to figure it out. Some examples: http://smush.it/ws.php – gives a help message http://smush.it/ws.php?img=http://smush.it/css/skin/screenshot.png – example smushed response http://smush.it/ws.php?img=http://smush.it/css/skin/logo.png – image that cannot be further smushed All responses are in JSON format. The only required parameter is img. There are two optional parameters: • id – something that will help you identify the response if you send requests in a batch • task – something that will allow you to group together a bunch of images if you want to get the zip file after that. Make that as unique as possible. Here’s a scenario. You upload two images with the same task identifier: http://smush.it/ws.php?task=mytask&img=http://example.org/image1.png http://smush.it/ws.
Related Questions
- IF THE SUBMITTED DIGITAL IMAGES DO NOT CONFORM TO THE SPECIFICATIONS, THE PROCEDURES STATE THAT THE SYSTEM WILL AUTOMATICALLY REJECT THE E-DV ENTRY FORM AND NOTIFY THE SENDER. DOES THIS MEAN I WILL BE ABLE RE-SUBMIT MY ENTRY?
- Will you have an API to Smush.it so that my tool can automatically smush images as they are published?
- What tools does Smush.it use to smush images?