Questions tagged [svgtopng]
13 questions
1
vote
0 answers
Convert SVG to PNG with Arabic characters
I'm creating family tree using d3 and in the front-end I convert my SVG into string
if(document.querySelector('svg')){
const svgString = new XMLSerializer().serializeToString(document.querySelector('svg'))
…

Ahmed Abdelrahman
- 117
- 1
- 9
1
vote
3 answers
azure-devops extensions do not accept SVG files
I am using a pivot table tool (webdatarocks) in an azure DevOps extension project. The tool icons in an SVG file, but azure DevOps extensions projects do not accept SVG file types and gives the following error in the publishing stage.
Error…

husnu
- 354
- 3
- 15
1
vote
0 answers
PHP IMAGICK - Conversion from SVG to PNG results in broken images
I am trying to convert svg images to png through Imagick. I did it "successfully" and images were converted but they seems broken with different colors. Here is my code sample and image examples before and after conversion.
$image = new…

Denis2310
- 939
- 1
- 15
- 41
1
vote
1 answer
Use custom font with nodeJs and svgToPng
I'm trying to convert an SGV to PNG using the library svgToPng
This works great, other than the custom Google font I am using does not display properly.
What should look like this
Instead instead looks like this
Here is the complete code which…

user3284707
- 3,033
- 3
- 35
- 69
0
votes
0 answers
Converting SVG String to PNG with codeigniter
How can I convert a svg image string into png image with Codeigniter 3?
I tried to use imagick, but its not available.
public function convertSVGtoPNG($svgString, $outputFile) {
$imagick = new Imagick();
…

Raffi95
- 47
- 2
0
votes
0 answers
Updated inkscape version stooped running my code
This is my code using for converting svg to png and return it on browser.
svgchart = chart_pygal.render()
inkscape_process = subprocess.Popen(['inkscape', '-z', '-e', '-', '-'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,…

Faizan Naeem
- 433
- 4
- 13
0
votes
0 answers
Converting SVG TO PNG are doing abnormal Behavior in other languages than English
I want to export image by converting svg to png for the following purpose I am using CairoSvg
It is working fine when I am svg that exists in English.
For Example :
But when I am exporting any svg in which arabic charcater exists it is not…

Faizan Naeem
- 433
- 4
- 13
0
votes
1 answer
Converting SVG to PNG without knowing the width and height
I am trying to convert an SVG to a PNG image using the canvas as the "proxy". I can get it to work in Chromium, but not in Firefox. It seams that I need a width and height defined in the SVG, but in my case the SVG does not have width and height…

Ngọc Nguyễn
- 339
- 4
- 16
0
votes
1 answer
How to convert existing woff / ttf / otf files to a font file supported by report lab?
Understanding The Problem
I've run into a problem. I have a need to convert an svg file with multiple custom fonts into a png. This is supported by svglib. I actually was able to convert one of the fonts into a proper format for svglib to properly…

Shmack
- 1,933
- 2
- 18
- 23
0
votes
0 answers
Facing issue while generating pdf with jspdf in react ? svg image not render
I am using jspdf in my reactjs project to convert the website in to the pdf and using the html function to convert the element in to pdf, but I am facing issue with svg as it is not get printed on the pdf. Pls provide me a solution.
const content…

Tanveer Sheikh
- 1
- 1
0
votes
0 answers
SVG is not correctly rendered with canvg
I need to convert svg to png and I'm using currently canvg to do this. But it's not working properly. As for example, using the demo app on https://canvg.js.org/demo/index.html with the svg:
0
votes
1 answer
Odd transparency issues with SVG converting
I'm trying to convert SVG images to jpeg or png (quality doesn't matter)
I'm using a NuGet package named SVG.
Here's my vb code
Dim svgDocument = Svg.SvgDocument.Open(TextBox2.Text & "\" & filename & ".svg") ' Replace with correct FileName …

Kerem Ömer Şahin
- 5
- 3
0
votes
0 answers
Imagic SVG to PNG gives blank image PHP
SVG content comes as json data from a service. Here is my svg file
$data =