Page 1 of 1
Bug in Edit >Set DPI
Posted: Sat Oct 16, 2021 7:34 am
by bar_foo
Subject: 0.99.1: Set DPI only allows range of 1-99; Cancel button non-functional
XnView: MP 0.99.1 64 bit
OS: Windows 10 64 bit
The "Set DPI" dialog only offers a range of 1-99 (higher numbers cannot be entered manually or with the arrows in the control), and the display area is too small even to display two-digit numbers. Since the value will often be 100+, such values should be permissible.
Also, the Cancel button does nothing (but the dialog can be closed).
Secondarily, the dialog is odd: it is resizable but the controls don't move; it probably shouldn't be resizable.
Effect: Unable to set values about 99 DPI.
To reproduce:
1. Open image file
2. Edit -> Set DPI
3. attempt to set value over 99
4. Click Cancel button
Actual behaviour (bug): Cannot enter value above 99; Cancel button does nothing
Expected behaviour: Any integer should be accepted; there should be enough space in the controls for longer values; Cancel button should close the dialog without changing the DPI
Re: Bug in Set DPI
Posted: Sat Oct 16, 2021 9:04 am
by cday
I requested a separate 'Set DPI' action, as in Batch convert, but missed it in the change list when 0.99 was launched: I've been continuing to use Image > Resize... and frequently forgetting to uncheck 'Resample' which has significantly slowed my workflow!
While I can see that it could be considered an Edit menu item, mightn't a more natural location be the Image menu with the other image actions...

Re: Bug in Edit >Set DPI
Posted: Mon Oct 18, 2021 6:45 am
by xnview

Thanks to your detailed description I can reproduce
the problem.
Re: Bug in Set DPI
Posted: Mon Oct 18, 2021 6:45 am
by xnview
cday wrote: Sat Oct 16, 2021 9:04 am
I requested a separate 'Set DPI' action, as in Batch convert, but missed it in the change list when 0.99 was launched: I've been continuing to use Image > Resize... and frequently forgetting to uncheck 'Resample' which has significantly slowed my workflow!
While I can see that it could be considered an Edit menu item, mightn't a more natural location be the Image menu with the other image actions...
You means 'keep print size'? you have it in 'Resize' dialog
Re: Bug in Set DPI
Posted: Mon Oct 18, 2021 8:23 am
by cday
xnview wrote: Mon Oct 18, 2021 6:45 am
You means 'keep print size'? you have it in 'Resize' dialog
I just need to change the DPI of images, a software I am using to join scanned images outputs all joined images at 72 DPI, which gives an incorrect page size.
I can do that using that directly using XnConvert's 'Set DPI' action, or 'MP's 'Image > Resize' provided I uncheck 'Resample', and will be able to do it more easily using the new Edit > Set DPI function when it is possible to enter a higher DPI value.
I also suggested that the new Set DPI function would probably be better located in the 'Image' menu rather than the 'Edit' menu.
Sidenote for anyone using Adobe Acrobat's Clearscan OCR option
Adobe Acrobat's Clearscan is an OCR option that converts an image of a text page to a searchable image that has been converted to vectorised text, resulting when used appropriately in both a high quality screen image and potentially a large reduction in filesize. The option has been renamed in recent Adobe Acrobat versions.
A issue that often arises for no obvious reason is an error message 'The image contains renderable text', for which online searches give no very clear explanation. One possible cause I discovered while making large pages that had been outputted from an image joining or 'stitching' software searchable is a page size that is too large: the image stitching software I was using MS ICE outputs all composite images at 72DPI, and changing the image DPI to the correct value allowed Clearscan to operate normally.
Possibly the well-known error message contains a typo, and should read 'The image does not contain renderable text' ? 
Re: Bug in Edit >Set DPI
Posted: Thu Dec 02, 2021 11:51 am
by xnview
This problem is supposed to be fixed in
XnView MP 0.99.4. Please check and confirm the bug fix here.
Re: Bug in Edit >Set DPI
Posted: Tue Dec 07, 2021 1:28 am
by Gwenael Q.
Hello,
Fixed :
- Set DPI function now allows entering values above 99
- Cancel button does what it has to do
- Set DPI moved from 'Edit' to 'Image' menu
One minor suggestion : a link icon between x and y dpi, or a checkbox, so that when a value is entered in x or y the other value is automaticaly the same
Thank you for listening
Re: Bug in Edit >Set DPI
Posted: Tue Dec 07, 2021 9:53 am
by xnview
Gwenael Q. wrote: Tue Dec 07, 2021 1:28 am
One minor suggestion : a link icon between x and y dpi, or a checkbox, so that when a value is entered in x or y the other value is automaticaly the same
ok i'll add it
Re: Bug in Edit >Set DPI
Posted: Tue Dec 07, 2021 10:28 am
by cday
xnview wrote: Tue Dec 07, 2021 9:53 am
Gwenael Q. wrote: Tue Dec 07, 2021 1:28 am
One minor suggestion : a link icon between x and y dpi, or a checkbox, so that when a value is entered in x or y the other value is automaticaly the same
ok i'll add it

Default 'Enabled'? [Y DPI = X DPI]
Re: Bug in Edit >Set DPI
Posted: Fri Dec 10, 2021 2:55 am
by Gwenael Q.
Hello,
Thank you for the improvement in "Set DPI" dialog (v0.99.5) :
link icon between x and y dpi makes x and y value automatically the same.