Use GrabzIt’s HTML-to-image API to render a purpose-built share card, publish the resulting image at a public HTTPS URL, and set that URL as the page’s og:image. A 1200 × 630-pixel canvas is a useful landscape starting point, not a size mandated by the Open Graph Protocol; check the destination platform’s current guidance before publishing.
Choose HTML rendering or URL capture
GrabzIt documents both rendering supplied HTML into an image and capturing an existing webpage. Use HTML-to-image when you want precise control over a standalone social card; use URL capture when the graphic already exists as a page and capturing that page is convenient. See GrabzIt’s HTML-to-image documentation and its REST API reference for the applicable methods and options.
As an Amazon Associate I earn from qualifying purchases.
This guide uses the HTML route: the image is a separate asset, and the page that will be shared must still declare its Open Graph metadata.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsBuild a card that renders reliably
Keep the composition intentional
Create a compact HTML document or a dedicated card element with the page title, brand, and visual elements meant to appear in the preview. Keep important text within the chosen canvas and inspect the layout at the output dimensions. A 1200 × 630-pixel (1.91:1) canvas is a practical general-purpose starting point, with safe margins around text. The Open Graph Protocol does not require this size; destination-specific recommendations can change. A secondary guide lists 600 × 315 pixels as a Facebook minimum, but verify current Facebook guidance before relying on it: og-image.org’s image-size guide.
#1 Best Overall
Make external assets accessible
If the HTML refers to external stylesheets, web fonts, or background images, use absolute URLs so the renderer can locate them. GrabzIt also suggests embedding images as data URLs. Relative paths that work on your own site may not resolve as expected when the HTML is submitted separately.
Select an output format
GrabzIt lists JPG, PNG, BMP, WEBP, TIFF, and SVG for HTML-to-image conversion. Its guidance describes PNG as a quality-oriented choice and JPG as preferable when file size matters. Choose based on the artwork, then check that the destination platform accepts the format you publish.
Render the HTML with GrabzIt
Use GrabzIt’s documented HTML-to-image method in your chosen client and provide the markup and image options. For example, the Node.js reference names the method html_to_image(html, options). The REST reference describes format, browser and output dimensions, and a CSS target selector for capturing one element. Consult the REST API and client documentation for the current request shape, authentication, and package-specific limits; do not assume a numeric limit without checking the account tier and current docs.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Rank #2
- Intuitive interface of a conventional FTP client
- Easy and Reliable FTP Site Maintenance.
- FTP Automation and Synchronization
Keep browser viewport dimensions distinct from output image dimensions: they are separate capture considerations in the REST API. Set the viewport to suit the layout being rendered, and set the output dimensions to the image you intend to publish. If using a target selector, point it at the card element rather than the whole document.
Publish the image and add Open Graph tags
Once rendered, store the file somewhere stable and publicly reachable over HTTPS so link-preview crawlers can request the image. Then add the required Open Graph properties to the HTML head of the page being shared: og:title, og:type, og:image, and og:url. The Open Graph Protocol also describes optional image metadata such as MIME type, width, height, secure URL, and descriptive alt text. See the Open Graph Protocol documentation.
<meta property="og:title" content="Your page title">
<meta property="og:type" content="website">
<meta property="og:url" content="https://example.com/page">
<meta property="og:image" content="https://cdn.example.com/images/share-card.png">
<meta property="og:image:secure_url" content="https://cdn.example.com/images/share-card.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="A description of the share card">
Replace the example values with the real page URL, public image URL, actual format, dimensions, and a concise description of the image. Keep structured image properties with the image declaration they describe. The protocol permits multiple values for a property; if values conflict, the first tag from top to bottom has preference.
Rank #3
Verify the published result
- Open the final image URL directly and confirm it loads without authentication.
- Check that the file’s actual dimensions and format match the metadata and the destination’s current requirements.
- Inspect the page source or rendered head to confirm the four required Open Graph properties refer to the intended page and image.
- Check the preview on the platform where the link will be shared. Different platforms may handle previews differently; the Open Graph Protocol does not guarantee a uniform display across them.
Troubleshoot common problems
The image is blank or missing assets
Check that external CSS, fonts, and background-image URLs are absolute and accessible to the renderer. For image assets, try embedding the content as a data URL, as GrabzIt suggests. Confirm that essential text and graphics are actually inside the chosen card or selected element.
Free tools Windows power users keep installed
One-click scans. No signup required.
The image has unexpected dimensions or cropping
Review the browser viewport, output dimensions, and any CSS sizing on the card; these are distinct capture considerations. If capturing an element, verify the target selector matches the intended element. Compare the resulting file’s actual dimensions with the values you plan to put in metadata.
The social preview does not show the new image
Make sure og:image points to the published, publicly reachable file, not to local HTML or a private asset. Confirm the page also has og:title, og:type, and og:url. Then inspect the destination platform’s preview for that URL; the protocol documentation does not establish a universal cache-refresh mechanism or identical behavior across platforms.
Rank #4
A request fails or hits an account limit
Check the current GrabzIt API reference and your account tier for the relevant method, request options, and package-dependent limits. The documentation consulted here does not establish one numeric limit that applies to every package.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup
If you need a screenshot of a webpage rather than a custom HTML share card, ScreenshotNeo is an alternative website screenshot API and MCP server. A single GET request can return PNG, JPEG, WebP, or PDF. Its clean-shot steps accept cookie/consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Only clean shots are billed: bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and responses identify the page verdict and billing status. Its MCP server lets Claude, Cursor, and other MCP clients use screenshot tools.
For example, this cURL request captures a webpage (not supplied HTML) as WebP. See the ScreenshotNeo API documentation for authentication and options.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo’s free plan.
Best Value
Frequently Asked Questions
Does the Open Graph Protocol require a 1200 × 630 image?
No. That is a practical landscape canvas recommendation, not a protocol requirement. Check the current guidance for the platform where you plan to share the page.
Can I use a page URL instead of submitting HTML to GrabzIt?
Yes. GrabzIt documents URL-to-image capture as well as rendering supplied HTML; URL capture suits a graphic that already exists as a webpage.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




