[gthumb] webp: set width and height



commit 8e4f54e3e81aee9be5bfbd46f7cc084c90824bdd
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Mar 20 12:49:08 2022 +0100

    webp: set width and height

 extensions/cairo_io/cairo-image-surface-webp.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/extensions/cairo_io/cairo-image-surface-webp.c b/extensions/cairo_io/cairo-image-surface-webp.c
index 4f5e12ae..702cbcdf 100644
--- a/extensions/cairo_io/cairo-image-surface-webp.c
+++ b/extensions/cairo_io/cairo-image-surface-webp.c
@@ -107,6 +107,8 @@ _cairo_image_surface_create_from_webp (GInputStream  *istream,
        config.output.u.RGBA.stride = cairo_image_surface_get_stride (surface);
        config.output.u.RGBA.size = cairo_image_surface_get_stride (surface) * height;
        config.output.is_external_memory = 1;
+       config.output.width = width;
+       config.output.height = height;
 
        idec = WebPINewDecoder (&config.output);
        if (idec == NULL) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]