Bug 702522 - Write resolution to image files
Summary: Write resolution to image files
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: PC Linux
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-28 21:26 UTC by c_a
Modified: 2021-02-02 15:08 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.