Developer notes · Sebastian Krosic

Cloud ideas. Practical code.

I'm Sebastian Krosic. I write about cloud services, useful APIs and the code that connects them. Explore hands-on tutorials, one problem at a time.

Browse articles

Latest articles

RSS

Cheapest and Reliable way of rendering HTML into PDF format

One of the necessary task in working with web pages is saving these pages in PDF format. We call it as html rendering. Since web pages may contain texts, images, embedded fonts, hyperlinks, signatures etc, a reliable renderer must maintain layout in PDF format. Also a renderer shall convert a large number of web pages at once. Web Renderer (WR) is a cloud service allows you to successfully, quickly and easily render your HTML documents into the PDF document or PNG image. Personally I’ve been actively using it for more than 10 years, thanks to reliability of service. WR provides both synchronous and asynchronous methods to developers. I strongly suggest using asynchronous approach due to nature of conversion lifecycle and to bypass connection timeout limitation of gateway platform. ...

2 min · Sebastian Krosic

Convert Any Image to WebP by using C#

In this tutorial we will cover how to implement asynchronous approach of Image Converter. You only need to send source image to SubmitWebPConversionTask or any other submission API methods like SubmitBmpConversionTask, SubmitDicomConversionTask etc. to receive task identifier as response. After receiving task identifier you need to check task status by calling GetConversionTaskStatus method. You need to call same method after a few seconds delay as long as task status equals to “Waiting”. Once you receive “Completed” from GetConversionTaskStatus method you can call DownloadResult method to download final image. You can use the C# implementation below. ...

2 min · Sebastian Krosic

Convert Any Image to WebP by using Go Lang

In this tutorial we will cover how to implement asynchronous approach of Image Converter. You only need to send source image to SubmitWebPConversionTask or any other submission API methods like SubmitBmpConversionTask, SubmitDicomConversionTask etc. to receive task identifier as response. After receiving task identifier you need to check task status by calling GetConversionTaskStatus method. You need to call same method after a few seconds delay as long as task status equals to “Waiting”. Once you receive “Completed” from GetConversionTaskStatus method you can call DownloadResult method to download final image. You can use the Go Lang implementation below. ...

3 min · Sebastian Krosic

Convert Any Image to WebP by using Java

In this tutorial we will cover how to implement asynchronous approach of Image Converter. You only need to send source image to SubmitWebPConversionTask or any other submission API methods like SubmitBmpConversionTask, SubmitDicomConversionTask etc. to receive task identifier as response. After receiving task identifier you need to check task status by calling GetConversionTaskStatus method. You need to call same method after a few seconds delay as long as task status equals to “Waiting”. Once you receive “Completed” from GetConversionTaskStatus method you can call DownloadResult method to download final image. We have used Apache HTTP Client libraries in this tutorial. You can add dependencies below in your pom.xml file. ...

3 min · Sebastian Krosic

Convert Any Image to WebP by using Python

In this tutorial we will cover how to implement asynchronous approach of Image Converter. You only need to send source image to SubmitWebPConversionTask or any other submission API methods like SubmitBmpConversionTask, SubmitDicomConversionTask etc. to receive task identifier as response. After receiving task identifier you need to check task status by calling GetConversionTaskStatus method. You need to call same method after a few seconds delay as long as task status equals to “Waiting”. Once you receive “Completed” from GetConversionTaskStatus method you can call DownloadResult method to download final image. You can use the Python implementation below. ...

2 min · Sebastian Krosic

Convert Any Image to WebP by using Visual Basic

In this tutorial we will cover how to implement asynchronous approach of Image Converter. You only need to send source image to SubmitWebPConversionTask or any other submission API methods like SubmitBmpConversionTask, SubmitDicomConversionTask etc. to receive task identifier as response. After receiving task identifier you need to check task status by calling GetConversionTaskStatus method. You need to call same method after a few seconds delay as long as task status equals to “Waiting”. Once you receive “Completed” from GetConversionTaskStatus method you can call DownloadResult method to download final image. You can use the Visual Basic implementation below. ...

2 min · Sebastian Krosic