
You can instruct the API to save the optimized images directly in your Amazon S3 or Google Cloud Storage buckets. For PNG images the copyright information can be preserved. You can choose to preserve copyright information, the GPS location and the creation date in the compressed JPEG images. Convert images to WebP, JPEG or PNG (new)Ĭonvert your images to another format, or ask the API to give you the smallest image format! Images with a transparent background can be filled with a color you specify. You can either upload images directly or specify a URL to the image you want to compress. Upload directly or provide a URL to the image You only have to upload your source image and download the result. The API compresses WebP, JPEG and PNG images. curl -user api: YOUR_API_KEY \įeatures Same API for WebP, JPEG & PNG images The server will compress your image and respond with a URL where you can grab the result. You can also create your own integration with any HTTP(S) client. The community has also created a large number of third-party add-ons using the Developer API. You can also use the WordPress plugin to compress your JPEG and PNG images. Official client libraries are available for Ruby, PHP, Node.js, Python, Java and. Once you retrieve your key, you can immediately start shrinking images. Now you can see why you should be compressing those images, let's take a look at how you can get it done.Go straight to the reference and view the examples how to use the API in your own code. As well as bandwidth, smaller images take up less storage space on your web server, meaning you can downgrade your web hosting plan and save a bit of change over the year.Less bandwidth also frees up more resources to ensure your server response time is fast. This means you won't be penalized by your web hosting provider for exceeding any bandwidth limits. Smaller website files take up less bandwidth.Creating backups of your website will be faster as your website files will be smaller.Loading many large image files during render can cause your site to feel slow, and if it doesn't load within 5 seconds, both Google and your website users will be less than impressed. Compressed image files can improve your SEO because the page load speed is considered to be a ranking factor.So if you want your website to reach the top of the SERPs (search engine results pages) and keep visitors returning for more, you need to keep image size low.Ĭompressing your images can have plenty of benefits: A badly performing website will be penalized by both visitors and search engines. Large images can cause your website to slow down, creating a poor user experience. Why You Should Compress Your Website Images
