Bug 702522

Summary: Write resolution to image files
Product: MuPDF Reporter: c_a
Component: mupdfAssignee: MuPDF bugs <mupdf-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: robin.watts, sebastian.rasmussen
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

Description c_a 2020-06-28 21:26:38 UTC
When mutool writes a PNG, e.g. through

    mutool draw -o page1.png file.pdf 1

the resolution (dpi) of the rendering is not saved to the PNG file.

I request to change this behavior, not just in mutool but in the underlying library.

It is important because generated images may be automatically included in documents, e.g. via LaTeX, and this way the display size of the image can be controlled programmatically.
Comment 2 Sebastian Rasmussen 2021-02-02 15:08:53 UTC
Fixed in

commit f8ce62bc61d0be39b04f8757647833c50d0c6fd8
Author: Robin Watts <Robin.Watts@artifex.com>
Date:   Fri Sep 25 17:18:24 2020 +0100

    Bug 702522: Add resolution to output PNG files.