Skip to content
forked from fathyb/carbonyl

Chromium running inside your terminal

Notifications You must be signed in to change notification settings

jiali6943/carbonyl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html2svg

Convert HTML and <canvas> to SVG or PDF using Chromium.

Usage

# export to SVG
$ docker run fathyb/html2svg https://google.com > google.svg
$ docker run fathyb/html2svg https://google.com --format svg > google.svg
# export to PDF
$ docker run fathyb/html2svg https://google.com --format pdf > google.pdf

Development

  • Building Chromium for ARM on Linux or Windows is not officially supported, cross-compile from x64 instead.

Docker

$ docker buildx build . --platform linux/arm64,linux/amd64

Local

  1. Fetch dependencies:
    $ yarn
  2. Clone Electron.js and Chromium using gclient:
    $ yarn gclient
  3. Configure the build system using gn using one of these commands:
    # for local developement
    $ yarn gn testing
    # or for releasing
    $ yarn gn release
    # add --ide=xcode if you'd like to generate an Xcode project on macOS
    $ yarn gn release --ide=xcode
  4. Build using ninja using one of these commands:
    # make a testing build
    $ yarn ninja testing
    # make a release build
    $ yarn ninja release

About

Chromium running inside your terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 75.3%
  • C++ 19.1%
  • Shell 4.3%
  • Other 1.3%