ID: | 2474 |
From: | Cyril Hrubis <me...@gmail.com> |
Date: | Wed, 21 Nov 2018 21:04:42 +0100 |
Subject: | [pcb-rnd] [PATCH] Fix png exporter to write correct DPI |
replies: | 2476 from ge...@igor2.repo.hu , 2482 from ge...@igor2.repo.hu |
--J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi! Attached patch fixes the PNG exporter to write correct DPI for the image, without it the image defaults to 92 DPI which causes the image to have incorrect print size. -- Cyril Hrubis --J/dobhs11T7y2rNN Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="png_export_fix_dpi.patch" diff --git a/src_plugins/export_png/png.c b/src_plugins/export_png/png.c index 90ad4b0..ebc8504 100644 --- a/src_plugins/export_png/png.c +++ b/src_plugins/export_png/png.c @@ -893,6 +893,8 @@ static void png_do_export(pcb_hid_attr_val_t * options) return; } + gdImageSetResolution(im, dpi, dpi); + master_im = im; parse_bloat(options[HA_bloat].str_value); --J/dobhs11T7y2rNN--
Reply subtree:
2474 [pcb-rnd] [PATCH] Fix png exporter to write correct DPI from Cyril Hrubis <me...@gmail.com>
2476 Re: [pcb-rnd] [PATCH] Fix png exporter to write correct DPI from ge...@igor2.repo.hu
2478 Re: [pcb-rnd] [PATCH] Fix png exporter to write correct DPI from Peter Stuge <pe...@stuge.se>
2482 Re: [pcb-rnd] [PATCH] Fix png exporter to write correct DPI from ge...@igor2.repo.hu
2499 Re: [pcb-rnd] [PATCH] Fix png exporter to write correct DPI from ge...@igor2.repo.hu