[Gimp-user] pcx export
- From: Jenny_222 <forums gimpusers com>
- To: gimp-user-list gnome org
- Cc: team gimpusers com
- Subject: [Gimp-user] pcx export
- Date: Fri, 01 Nov 2013 18:26:44 +0100
It was a 5 minute fix, the entire resolution handling was already
there, just not connected to the image:
commit 3508079dcf3dfbfc337f838f9771681d661f009e
Author: Michael Natterer <mitch gimp org>
Date: Fri Nov 1 13:51:31 2013 +0100
plug-ins: add loading and saving of the image's resolution in
file-pcx
plug-ins/common/file-pcx.c | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
****************************
**************
Thank you Michael, I see your changes:
- pcx_header.hdpi = GUINT16_TO_LE (300);
- pcx_header.vdpi = GUINT16_TO_LE (300);
+ gimp_image_get_resolution (image, &resolution_x, &resolution_y);
+
+ pcx_header.hdpi = GUINT16_TO_LE (RINT (MAX (resolution_x, 1.0)));
+ pcx_header.vdpi = GUINT16_TO_LE (RINT (MAX (resolution_y, 1.0)));
--
Jenny_222 (via www.gimpusers.com/forums)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]