Skip to content

foolin/go-resvg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-resvg

convert SVG to PNG or image using resvg library

install

go get github.com/foolin/go-resvg

依赖: https://github.com/ungerik/go-cairo https://www.cairographics.org/

安装Cairo: For Debian and Debian derivatives including Ubuntu:

sudo apt-get install libcairo2-dev

For Fedora:

sudo yum install cairo-devel

For openSUSE:

zypper install cairo-devel

Mac OS X Using MacPorts, the port is called 'cairo', so you can just type:

   sudo port install cairo

And to upgrade to newer versions once installed:

   sudo port upgrade cairo

If you use fink instead, the command to install cairo is:

   sudo apt-get install cairo

Windows: Precompiled binaries for Windows platforms can be obtained in a variety of ways.

From Dominic Lachowicz:

Since GTK+ 2.8 and newer depends on Cairo, you can have Cairo installed on Win32 as a side-effect of installing GTK+. For example, see The Glade/GTK+ for Windows Toolkit.

From Daniel Keep (edited by Kalle Vahlman):

Go to official GTK+ for Windows page.

https://www.gtk.org/download/

In order to use vcpkg packages, you first need to clone the vcpkg repository,

git clone https://github.com/Microsoft/vcpkg
cd vcpkg
.\bootstrap-vcpkg.bat

You can then install the GTK packages with

vcpkg install gtk:x64-windows

About

convert SVG to PNG or image using resvg library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 62.9%
  • Go 37.1%