[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49698] Setting PNG output resolution and size
From: |
Lukas |
Subject: |
[Octave-bug-tracker] [bug #49698] Setting PNG output resolution and size in print command overwrites resolution |
Date: |
Fri, 25 Nov 2016 14:40:12 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #2, bug #49698 (project octave):
Thank you. I quickly tested it, the result is as attached: Now resolution is
correct, but canvas size is not the original input size.
In my example code below (and on my Windows machine), the original canvas size
of [800,500] is changed to
[800,500]/600*72 = [96,60]
Instead, I'd prefer to keep [800,500].
Suggestion: Only change resolution if not specified as input:
E.g.
if ~any(cellfun(@any,strfind(varargin,'-r'))) % add: if '-r' option is set,
do not overwrite
arg_st.ghostscript.resolution = 72;
end % add
(file #39069)
_______________________________________________________
Additional Item Attachment:
File name: test.png Size:32 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49698>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/