DPI "units" don't work in pagesize spec #27
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
By jbarlow83 on 2016-02-05T23:03:32.741Z
Using Python 3
However, other units do work, e.g. this is fine.
By josch on 2016-02-10T06:20:14.052Z
Ah, I knew there was something that I hadn't implemented yet before hitting the release button...
So, the story is, the
--help
output for the--imgsize
option talks about thedpi
and%
units but neither of them is implemented. The reason is, that with the current structure, it would be quite hard to support these types of unit.Would you be interested in having this feature?
Otherwise, I'll just remove them from the
--help
text.By jbarlow83 on 2016-02-10T07:49:15.584Z
It's definitely useful. In a lot of cases input images are missing DPI information or have the wrong DPI set. In these cases I wouldn't want to calculate the page size, I just want to set the DPI to something reasonable. As an example use case, I work with scanned maps that often have the wrong DPI set on the scanned image. Often the map with have a scale bar whose length in pixels can be measured, and from there the scanning DPI can be determined.
It's really just the input argument parser that's broken. The following currently works for setting DPI:
By josch on 2016-02-10T08:33:16.027Z
oh indeed - I'm impressed I implemented it this far! The parser should be fixed now. Thanks!
By josch on 2016-02-10T08:33:16.176Z
Status changed to closed
DPI "units" don't work in pagesize specto DPI "units" don't work in pagesize spec