Skip to content

Commit 199791a

Browse files
committed
Update doc for url to image. CSS now works
1 parent 74a875b commit 199791a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/htmlcsstoimage.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def create_image_from_template(template_id, template_values = {}, params = {})
105105
# @see https://docs.htmlcsstoimage.com/getting-started/url-to-image/
106106
#
107107
# @param url [String] The fully qualified URL to a public webpage. Such as https://htmlcsstoimage.com.
108+
# @option params [String] :css The CSS for your image. Gets injected into the webpage.
108109
# @option params [String] :selector A CSS selector for an element on the webpage. We'll crop the image to this specific element. For example: `section#complete-toolkit.container-lg`
109110
# @option params [Integer] :ms_delay The number of milliseconds the API should delay before generating the image. This is useful when waiting for JavaScript. We recommend starting with `500`. Large values slow down the initial render time.
110111
# @option params [Double] :device_scale This adjusts the pixel ratio for the screenshot. Minimum: `1`, Maximum: `3`.

0 commit comments

Comments
 (0)