Questions tagged [gdkpixbuf]
93 questions
1
vote
2 answers
how do I initialize a Guchar Gtk3
I'm trying to display an image in a Gtk window I have the image stored in memory as a std::string and I'm trying to display it but I cant seem to get the image into a GdkPixbuf*.
This is my Function that gets the image data i know it works because…

Ican'tThinkOfAName
- 25
- 5
1
vote
2 answers
GTK - Python Pixbuf From List
I got icon data into a Python list. How could I get this icon data into pixbuf? I could not find it in this source.
Here is the code I get icon data:
from gi.repository import Gio
apps = Gio.AppInfo.get_all()
icon =…

demirod
- 81
- 15
1
vote
0 answers
Can't load svg with base64 image inside with node-canvas
I have an issue when load svg ( with base64 image inside ) file using function loadImage I get exception:
GdkPixbuf-CRITICAL **: 13:03:49.842: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
Here is my code & test svg file:
const…

Tho Bui Ngoc
- 763
- 1
- 11
- 36
1
vote
0 answers
Python3 Gtk3 Appending a GdkPixbuf to a Gtk.ListStore
I'm trying to add a custom GdkPixbuf into a ListStore in order to print a diferent image (if the model provides one) or a default .
listmodel = Gtk.ListStore(str, str, str, GdkPixbuf.Pixbuf)
datos = model.Workouts
myDir = os.getcwd()
…

Alex Batista
- 13
- 3
1
vote
0 answers
GdkPixbuf Linux dependencies
GdkPixBuf.pixbuf_get_from_window() does not work on my Linux Manjaro (Cinnamon) machine. The code below (only the screenshot part) did work perfectly to grab a screenshot in my old Manjaro installation, but recently I reinstalled, and now the same…

Hultan
- 119
- 1
- 10
1
vote
1 answer
Pickle a GdkPixbuf.Pixbuf object in Python3
I want to pickle and unpickle a GdkPixbuf.Pixbuf in Python3. To be more specific the multiprocessing package of Python3 need to do it because I share such objects between process via a Queue.
The problem is that the object changes…

buhtz
- 10,774
- 18
- 76
- 149
1
vote
1 answer
Saving a GdkPixbuf from a DBus client/server result in different files
I have a DBus service that creates a Variant type for a Pixbuf file that when saved on either side gives two different files, despite the data being the same. The image saved from the server side is correct, the one on the client side shows the top…

geoffjay
- 413
- 4
- 13
1
vote
1 answer
Can't find GDK::InterpType members in gtkmm
I'm trying to make a Gtk::Image widget display a picture from a file, but prevent the widget from expanding in size, so I'm loading it from a Gdk::Pixbuf and then scaling the picture. I'm using Gdk::Pixbuf instead of GdkPixBuf because the latter one…

rusins
- 309
- 4
- 8
1
vote
0 answers
Is there a more resilient alternative to GdkPixbuf for getting pixbufs in Gtk?
I've been using GdkPixbuf for displaying downloaded images in a program, which works well, but occasionally encounter JPEGs with non-fatal corruption (eg. "Application transferred too few scanlines") that GdkPixbuf can't handle. I can usually…

andy.holmes
- 3,383
- 17
- 28
1
vote
1 answer
Issue with gdkpixbuff
I'm working on a iMX6, with Yocto, and I'm trying to use a Gstreamer plugin : gdkpixbufoverlay on my board, but I got the following error:
gst-launch-1.0 autovideosrc ! gdkpixbufoverlay location=image.png ! autovideosink
(gst-launch-1.0:441):…

PierreOlivier
- 1,387
- 9
- 23
1
vote
1 answer
Drawing through GdkPixbuf draws at wrong pixel coordinates
This is my current code:
static void put_pixel (GdkPixbuf *pixbuf, int x, int y, guchar red, guchar green, guchar blue, guchar alpha)
{
int width, height, rowstride, n_channels;
guchar *pixels, *p;
rowstride = gdk_pixbuf_get_rowstride…
user8137082
1
vote
1 answer
Adding GtkButton to GtkListStore with text in GTK+
I want a button with text on it for a GtkListStore. I read another answer using an image as a button, but I really need the title to be text. How can I do this? I'd be fine with a solution that renders text onto a GdkPixbuf as well.
I've tried…
user7537486
1
vote
1 answer
GDK cross compilation error
I have cross-compiled libpng 1.6.28, libjpeg-turbo 1.5.1 and GLib 2.50.3 for MS Windows with i686-w64-mingw32 on Debian Stretch to a special folder, but still can't get gdk-pixbuf working. My commandline used for configure is:
./configure…

Maju
- 13
- 5
1
vote
1 answer
playing a video by retrieving and manipulating frame by frame: is creating a new pixbuf at every frame the way to go or is there an easier way?
using python3, gtk3. I am working on a computer vision application that needs to manipulate and display (playback) the frames from a video.
Currently, I create a new Pixbuf with the static method new_from_data, fed by a sequence of bytes created…

fstab
- 4,801
- 8
- 34
- 66
1
vote
1 answer
is there some documentation on all methods of PixBuf, especially replace_data? (gtk3)
I was wondering where I can find the documentation from all of the methods that are implemented in PixBuf (found via dir, python3):
['__class__', '__copy__', '__deepcopy__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__',…

fstab
- 4,801
- 8
- 34
- 66