bugGNU Octave - Bugs: bug #54282, Document all image types (such as...

 
 

bug #54282: Document all image types (such as "tiff") that print accepts

Submitter:  None
Submitted:  Tue 10 Jul 2018 02:57:35 PM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 13 Jul 2018 04:15:38 AM UTC, comment #5: 

Rock on - thank you for your response!

Anonymous
Wed 11 Jul 2018 04:32:31 PM UTC, comment #4: 

I pushed a changeset that allows 'tif' to work for saveas as print (https://hg.savannah.gnu.org/hgweb/octave/rev/0df6454f58ea).  Because this is a new feature, rather than a bug fix, it went on the development branch which will be released as Octave 5.0.0 at the end of the year.

If you need the fix sooner you can just grab the .m files I modified from the Mercurial web interface and put them in your local distribution.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Wed 11 Jul 2018 03:22:10 PM UTC, comment #3: 

Thanks for testing.  Without any information, I would also guess that 'tif' would be the correct extension so I'll take a look at implementing that in print.m.

Rik <rik5>
Group administrator
Wed 11 Jul 2018 03:56:49 AM UTC, comment #2: 

Yes I use MATLAB 90% of the time. MATLAB definitely accepts 'tif'. I know you guys hate adding the non-documented stuff :(


Anonymous
Tue 10 Jul 2018 03:33:35 PM UTC, comment #1: 

Do you have access to Matlab?  It would be useful to know if they accept the shortened form 'tif'.  Their documentation doesn't suggest that (see http://www.mathworks.com/help/matlab/ref/saveas.html#buou9ii-formattype).

Certainly Octave should document more of the types that it can save data under.

Rik <rik5>
Group administrator
Tue 10 Jul 2018 02:57:35 PM UTC, original submission:  

I hit a problem with saveas not accepting .tif format.

>> imagesc(rand(55));
>> saveas(gcf,'image','tif');
error: print: unknown device tif
error: called from
    __print_parse_opts__ at line 265 column 5
    print at line 316 column 8
    saveas at line 105 column 3

The error message is kind of scary but it looks like print does not accept tif... and the documentation confirms this is not listed as a supported "device" type under "help print".

By chance I tried .tiff format and that worked great! A couple of requests please :)

1) Can you document .tiff as a supported device for print.m.
2) Can you allow print.m to accept .tif as well as .tiff. (Note that jpg and jpeg are both considered acceptable).

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-07-11 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
        Release4.4.0 dev
    2018-07-10 rik5 CategoryNone Documentation
        Item GroupNone Matlab Compatibility
        StatusNone Confirmed
        Release4.2.2 4.4.0
        Summarysaveas and print don't accept .tif as format Document all image types (such as "tiff") that print accepts

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code