cairo Questions
3
Solved
Question: Which reproducible process can enable Windows Python users to render a SVG image into PNG?
Many questions/answers (such as Convert SVG to PNG in Python and Server-side SVG to PNG (or som...
8
Solved
I'm having some trouble running a python script on my Windows 7 platform. I've installed Python and also cairo, last one using "pip". I'm running the script using this command:
C:\Python34>pyth...
4
Solved
I'm getting the following error when I run shiny:
Error: Graphics API version mismatch
Listening on http://127.0.0.1:3774
Warning: Error in Cairo: Graphics API version mismatch
[No stack trace a...
7
Solved
I'm writing a CAD application that outputs PDF files using the Cairo graphics library. A lot of the unit testing does not require actually generating the PDF files, such as computing the expected b...
Roxy asked 12/1, 2011 at 19:11
2
I have a function on nodejs that generates an image from many images and then generate a pdf file from that. Im trying with just one image but i need to add more, but this doesnt seems to work
fun...
Littrell asked 6/1, 2014 at 18:37
4
For the life of me I can't figure out how to install cairo on Windows!
I need it for Haskell Charts, but when I follow setup instructions and get to running:
cabal install gtk
I get this error...
4
Solved
I have been trying to put the image from https://betacssjs.chesscomfiles.com/bundles/web/favicons/safari-pinned-tab.f387b3f2.svg into a Tkinter frame. I found from the post here that it is possible...
Agraphia asked 1/5, 2019 at 22:45
6
Solved
Trying to get this code working:
import cairosvg
import os
path = "D:/PyProjects/Bla/Temp"
os.chdir(path)
cairosvg.svg2pdf(url='Pic.svg', write_to='image.pdf')
but get errors along similar to ...
9
Solved
When I run the Django server, I see this problem !!
OSError: no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so': error 0x7e
cannot lo...
4
Solved
I want to generate high-quality diagrams for a presentation. I’m using Python’s matplotlib to generate the graphics. Unfortunately, the PDF export seems to ignore my font settings.
I tried setting...
Stereoisomerism asked 9/5, 2010 at 11:46
16
Solved
How do I convert an svg to png, in Python? I am storing the svg in an instance of StringIO. Should I use the pyCairo library? How do I write that code?
2
Solved
I want to test weasyprint but it has a problem with the installation of pangocairo.
I successfully installed weasyprint:
pip install weasyprint
I installed gtk using this tutorial, downloading ...
Audreyaudri asked 2/7, 2016 at 15:1
3
Solved
When rasterizing svg file, I would like to be able to set width and height for the resulting png file. With the following code, only the canvas is set to the desired width and height, the actual im...
10
Solved
I am having a problem installing installing the canvas module in node..It seems to be something with cairo I am getting this error...
npm http GET https://registry.npmjs.org/canvas
npm http 304 ht...
1
I have to fill the ffmpeg AVFrame->data from a cairo surface pixel data. I have this code:
/* Image info and pixel data */
width = cairo_image_surface_get_width( surface );
height = cairo_image_...
Neile asked 6/12, 2021 at 15:3
2
I'm running weasyprint project on ubuntu 18.04 and I try to create a a pdf.
The problem started when I try to set a footer image. I'm running on python 3.6.7
This is my code invoking weasyprint:
...
Fingernail asked 19/2, 2019 at 9:48
2
I'd like to save the following plot:
library(ggplot2)
myplot <- ggplot(iris) +
geom_point(aes(x = Sepal.Width, y = Sepal.Length)) +
ylab(expression(~delta^13*C~"[\211]"))
ggsave(my...
3
Solved
I am running into this warning message that will stop execution.
Saving 8.04 x 5.67 in image
Warning messages:
1: In dev(file = filename, width = dim[1], height = dim[2], ...) :
unable to load sh...
2
Solved
I'm testing an R package with GitHub Actions, and it succeeds on Windows and Linux.
However, it fails on Mac OS, as you can see on the logs:
Warning in grSoftVersion() :
unable to load shared obj...
Machinate asked 29/8, 2020 at 15:19
5
On Mac OS X 1.7.5 / Lion
I am trying to install cairo package using homebrew
brew install cairo => PASSED
==> Downloading http://cairographics.org/releases/cairo-1.12.16.tar.xz
Already dow...
5
Solved
I want to use Cairo graphics library whith Qt, but I can't find any documenattion. I just want to make the GUI whith Qt and use Cairo for drawing graphics in a Qt window.
Thanks.
Neveda asked 28/10, 2009 at 20:24
3
Solved
I have problem when trying to run a website in Django:
OSError: no library called "libcairo-2" was found
cannot load library 'libcairo.so.2': /lib/x86_64-linux-gnu/libfontconfig.so.1: undefined sy...
Ambroid asked 19/2, 2020 at 20:53
9
I am struggling with the following issue. I need to generate reports that consists of a collection of charts. All these charts, except one, are made using Matplotlib default backend (TkAgg). One ch...
Motorcycle asked 19/7, 2010 at 21:20
0
I am using {ggtext} and I noticed that there are gaps in the font spacing when I am using smaller font size.
library(tidyverse)
library(ggtext)
ggplot() +
annotate(
"richtext",
x = 0,...
2
Solved
There are many advantages to using Cairo to save R graphics (see here, for example). When saving PDFs, for instance, the cairo_pdf device correctly embeds custom fonts.
Using the cairo_pdf graphic...
Dalessandro asked 5/3, 2019 at 18:27
1 Next >
© 2022 - 2024 — McMap. All rights reserved.