Skip to content

dimarusyy/svg2raster

Repository files navigation

Descritpion:
	* svg2raster app converts svg file to png/jpeg depending on given paramaters
	* graphicsmagick is used to make svg->png or svg->jpeg convesion

Dependencies :
	* boost
	* graphicsmagick (prebuild x86/x64 binaries and headers are available in 3rdParty.zip)

Building :
1. Requirements 
	* have vcpkg configured and boost installed
2. Windows
	Option #1
		a. Extract 3rdParty.zip to $(SolutionDir)
		b. Load to VS2017 and build
	
	Options #2
		a. cd svg2raster
		b. mkdir build_win32
		c. cmake .. -DCMAKE_TOOLCHAIN_FILE=D:\dev\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x86-windows-static
		d. cmake --build .
2. Linux
		a. cd svg2raster
		b. mkdir build_linux
		c. cmake .. -DCMAKE_TOOLCHAIN_FILE=/mnt/d/dev/vcpkg/scripts/buildsystems/vcpkg.cmake
		d. make 

Running :
	#svg2raster -u "https://localhost/test.svg?rasterize&fit=50x50" -f png -p E:\
	#svg2raster -u "https://localhost/test.svg?rasterize&fit=50x50" -f jpeg -p E:\

About

svg2raster command-line tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published