1. Registry
  2. Packages
  3. HTML/CSS to Image
Viewing docs for HTML/CSS to Image v0.2.0
published on Tuesday, Sep 29, 2026 by htmlcsstoimage

HTML/CSS to Image

html-css-to-image logo HTML/CSS to Image
Viewing docs for HTML/CSS to Image v0.2.0
published on Tuesday, Sep 29, 2026 by htmlcsstoimage

    The HTML/CSS to Image provider for Pulumi manages HTML/CSS to Image images, reusable templates, API keys, storage destinations, proxies, and Open Graph configurations alongside your application’s infrastructure.

    Installation

    npm install @html-css-to-image/pulumi
    
    pip install pulumi-html-css-to-image
    
    go get github.com/htmlcsstoimage/pulumi-html-css-to-image/sdk/go
    
    dotnet add package HtmlCssToImage.Pulumi
    

    Maven:

    <dependency>
        <groupId>com.htmlcsstoimage</groupId>
        <artifactId>pulumi</artifactId>
        <version>0.2.0</version>
    </dependency>
    

    Gradle:

    implementation 'com.htmlcsstoimage:pulumi:0.2.0'
    
    pulumi package add html-css-to-image
    

    The SDK or package installation downloads the matching provider plugin automatically.

    Example Usage

    Set your organization credentials in your Pulumi project:

    pulumi config set html-css-to-image:apiId YOUR_API_ID
    pulumi config set --secret html-css-to-image:apiKey YOUR_API_KEY
    
    import * as hcti from "@html-css-to-image/pulumi";
    
    const card = new hcti.ImageHtmlCss("card", {
        html: "<h1>Hello from Pulumi</h1>",
    });
    
    export const imageUrl = card.imageUrl;
    
    import pulumi
    import pulumi_html_css_to_image as hcti
    
    card = hcti.ImageHtmlCss("card", html="<h1>Hello from Pulumi</h1>")
    pulumi.export("imageUrl", card.image_url)
    
    package main
    
    import (
        hcti "github.com/htmlcsstoimage/pulumi-html-css-to-image/sdk/go"
        "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
        pulumi.Run(func(ctx *pulumi.Context) error {
            card, err := hcti.NewImageHtmlCss(ctx, "card", &hcti.ImageHtmlCssArgs{
                Html: pulumi.String("<h1>Hello from Pulumi</h1>"),
            })
            if err != nil {
                return err
            }
            ctx.Export("imageUrl", card.ImageUrl)
            return nil
        })
    }
    
    using System.Collections.Generic;
    using Pulumi;
    using Hcti = Pulumi.HtmlCssToImage;
    
    return await Deployment.RunAsync(() =>
    {
        var card = new Hcti.ImageHtmlCss("card", new Hcti.ImageHtmlCssArgs
        {
            Html = "<h1>Hello from Pulumi</h1>",
        });
        return new Dictionary<string, object?> { ["imageUrl"] = card.ImageUrl };
    });
    
    import com.htmlcsstoimage.pulumi.ImageHtmlCss;
    import com.htmlcsstoimage.pulumi.ImageHtmlCssArgs;
    import com.pulumi.Pulumi;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(ctx -> {
                var card = new ImageHtmlCss("card", ImageHtmlCssArgs.builder()
                        .html("<h1>Hello from Pulumi</h1>")
                        .build());
                ctx.export("imageUrl", card.imageUrl());
            });
        }
    }
    
    name: hcti-image
    runtime: yaml
    resources:
      card:
        type: html-css-to-image:index:ImageHtmlCss
        properties:
          html: '<h1>Hello from Pulumi</h1>'
    outputs:
      imageUrl: ${card.imageUrl}
    

    Run pulumi up, then open the returned URL to render the image. Creation saves an image definition; changes to image inputs replace that definition.

    Configuration

    NameRequired?Secret?Description
    apiIdYes, through configuration or environmentNoYour organization API ID. Falls back to HCTI_API_ID.
    apiKeyYes, through configuration or environmentYesAPI key with permissions to manage your stack’s resources. Falls back to HCTI_API_KEY.
    baseUrlNoNoAPI origin, including scheme; defaults to https://hcti.io.

    Further reading

    html-css-to-image logo HTML/CSS to Image
    Viewing docs for HTML/CSS to Image v0.2.0
    published on Tuesday, Sep 29, 2026 by htmlcsstoimage

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial