From 608cd612df9cc7cb7f4c8d44df30995896c8006b Mon Sep 17 00:00:00 2001 From: Daniel Hedlund Date: Sat, 14 Dec 2013 15:06:02 -0800 Subject: [PATCH] Adjust PNG encoder color type to match what's read from gl2 This should fix images produced by the -o flag. --- src/components/main/compositing/run.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/main/compositing/run.rs b/src/components/main/compositing/run.rs index b8125665543..a7dac8dffd8 100644 --- a/src/components/main/compositing/run.rs +++ b/src/components/main/compositing/run.rs @@ -373,7 +373,7 @@ pub fn run_compositor(compositor: &CompositorTask) { let img = png::Image { width: width as u32, height: height as u32, - color_type: png::RGBA8, + color_type: png::RGB8, pixels: pixels, }; let res = png::store_png(&img, &path);