Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@framv/image

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@framv/image

Image export component for framv — render HTML/SVG to PNG, JPG, WebP, SVG as a declarative custom element

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

@framv/image

<framv-image> — renders HTML/SVG content to a static image (PNG, JPG, WebP, SVG).

Install

npm install @framv/image

CDN

<script src="https://cdn.jsdelivr.net/npm/@framv/core/dist/bundle.iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@framv/image/dist/bundle.iife.js"></script>

<framv-image width="800" height="600" format="png">
  <div style="background:linear-gradient(135deg,#667eea,#764ba2);width:800px;height:600px;display:flex;align-items:center;justify-content:center">
    <h1 style="color:white;font-size:64px">Hello</h1>
  </div>
</framv-image>

Attributes

AttributeDefaultDescription
width800Output width in pixels
height600Output height in pixels
formatpngpng, jpg, webp, svg
quality0.95Quality 0–1 (jpg/webp only)

Features

  • Toolbar with format badge and Export button
  • Supports nested HTML or SVG content
  • Downloads with correct file extension

FAQs

Package last updated on 23 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts