fix DPI info in 16-bit PNG

Review Request #129988 - Created March 6, 2017 and submitted

Information
Alexander Trufanov
skanlite
master
Reviewers
skanlite

fix DPI info in 16-bit PNG

Skanlite tries to save 16bit PNG files on its own in its KSaneImageSaver class because KSaneWidget (part of libksane) uses QImage to save files and QImage doesn't support 16bit images. Related warning in libksane

But Skanlite doesn't add most of optional PNG headers to the exported png file. In particulary it misses pHYs (Physical Pixel Dimensions) info. Without it ScanTailor app can't detect scan's dpi and forces user to choose it manually while png file importing. Related issue in scantailor
I've fixed this by adding pHYs to 16bit png based on KSaneWidget::currentDPI() as KSaneWidget do it itself


  
Kåre Särs
Alexander Trufanov
Alexander Trufanov
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 9f1e7b3596b114ef23834810f661307ef49a38de by Alexander Trufanov to branch master.
Loading...