HTM to JPG API
The API for converting HTML files to JPG images.
Integer
Delay in seconds before page load and PDF creation. Sometimes useful to let web page fully load.
Default: 0
Range: 0 .. 30
Show all
String
Element selector string of the DOM element. Converter will wait for this element to appear in DOM before conversion begins.
String
Element selector string of the DOM elements that needs to be hidden during conversion.
String
Use CSS media type in conversion process. The default screen and print media types are supported but not limited to these. The custom media type, like convertapi can be used too.
Default: screen
Show all
String
Element selector string of the DOM element that should be converted. Element will be cropped from the document.
Snippets are autogenerated according to converter parameter choices above. Please select file in "File" or "Files" parameter before using code snippets.
Code snippet is using ConvertAPI JavaScript Client
Code snippet is using ConvertAPI Node.js Client
Code snippet is using ConvertAPI PHP Client
Code snippet is using ConvertAPI Java Client
Code snippet is using ConvertAPI C# Client
Code snippet is using ConvertAPI Ruby Client
Code snippet is using ConvertAPI Python Client
Code snippet is using ConvertAPI Go Client
Code snippet is using command line utility program
For conversions with the multiple file result please refer to the example