bugGNU Octave - Bugs: bug #57029, printing as jpeg should support...


bug #57029: printing as jpeg should support setting quality to match undocumented Matlab behavior

Submitted by:  Andreas Weber <andy1978>
Submitted on:  Thu 10 Oct 2019 08:14:11 AM UTC  
Category:  Octave Function Severity:  1 - Wish
Priority:  1 - Later Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 10 Oct 2019 03:12:09 PM UTC, comment #1: 

The Octave Maintainer's usually don't find it worthwhile to chase Matlab compatibility when the behavior is undocumented.  It could change at any time, and in this case there is an acceptable solution using imwrite which will work with either Octave or Matlab without re-coding.

I've lowered the severity and priority.  If a changeset is contributed that addresses the issue I'm pretty sure it would be reviewed,  But I don't think core maintainers will work on this.

Rik <rik5>
Project Administrator
Thu 10 Oct 2019 08:14:11 AM UTC, original submission:  

The other software product apparently allows to set the jpeg quality when printing:

print('foo.jpg', '-djpeg100');

but this appears to be a undocumented feature, see https://stackoverflow.com/a/58305927/3811887

It would be easy to implement this (perhaps we should add it to the "little project" page on our wiki):

  • Parse and validate the quality in _print_parse_opts_.m
  • add it to the call of imwrite around line 707. imwrite already supports the "quality" option.
Andreas Weber <andy1978>
Project Member


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

Attach Files:

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)
  • -email is unavailable- added by andy1978 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-10-10 rik5 CategoryPlotting => Octave Function
        Severity3 - Normal => 1 - Wish
        Priority5 - Normal => 1 - Later
        StatusNone => Confirmed
        Summaryprinting as jpeg should support setting quality => printing as jpeg should support setting quality to match undocumented Matlab behavior

    Back to the top

    Powered by Savane 3.5