bugGNU Octave - Bugs: bug #65959, qt backend: should print with...

 
 

bug #65959: qt backend: should print with -rNUM set dpi related metadata for png, jpeg, etc.?

Submitter:  b3nmore <b3nmore>
Submitted:  Sat 06 Jul 2024 09:09:53 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 9.2.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 06 Jul 2024 09:09:53 AM UTC, original submission:  

I recently switched from the fltk to the qt graphics-toolkit and noticed, that the dpi related metadata is handled quite differently when printing to jpeg/png files with the resolution option "-rNUM".

Here are may findings:

  • the image size is calculated correctly by both backends
  • fltk backend: 'X Resolution'/'Y Resolution' (jpeg) and 'Pixels Per Unit X/Y', 'Pixel Units' (png) are set correctly
  • qt backend: jpeg: 'X Resolution'/'Y Resolutions' is always set to 72 dpi. png: no dpi related metadata is written at all


Not sure what would be the right approach (setting dpi related metadata explicitly or omitting it), but imo it should be handled consistently for all raster image files (at least where applicable).

Thanks

b3nmore <b3nmore>

 

(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 b3nmore (Submitted the item)
  •  

    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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code