Commit ba833b0c authored by Patrick Storz's avatar Patrick Storz 🦄

Fix opacity of bitmap images in PDF export

This is a follow-up to 1e31c41a.
As it turns out the same issue also applied to bitmap images
embedded in the SVG.

Replacing 'cairo_paint_with_alpha()' -> 'cairo_paint()' prevents
reducing opacity when rendering the bitmap onto a cairo surface.

Opacity should already be properly handled in

(cherry picked from commit 1a1d84bd)
parent eeee5c32
Pipeline #28897546 failed with stage
......@@ -1631,7 +1631,7 @@ bool CairoRenderContext::renderImage(Inkscape::Pixbuf *pb,
cairo_paint_with_alpha(_cr, opacity);
return true;
......@@ -392,7 +392,7 @@ static void sp_image_render(SPImage *image, CairoRenderContext *ctx)
Geom::Scale s(width / (double)w, height / (double)h);
Geom::Affine t(s * tp);
ctx->renderImage(image->pixbuf, t, image->style);
ctx->renderImage(image->pixbuf, t, image->style);
static void sp_symbol_render(SPSymbol *symbol, CairoRenderContext *ctx)
......@@ -528,9 +528,7 @@ static void sp_asbitmap_render(SPItem *item, CairoRenderContext *ctx)
if (pb) {
//TEST(gdk_pixbuf_save( pb, "bitmap.png", "png", NULL, NULL ));
ctx->renderImage(pb.get(), t, item->style);
g_slist_free (items);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment