Profile

unixronin: Galen the technomage, from Babylon 5: Crusade (Default)
Unixronin

December 2012

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Expand Cut Tags

No cut tags
Tuesday, June 3rd, 2008 11:27 am

Well, a bug, actually.  In XV.  Who else out there still uses XV?  Sure, it's old, but it still works as well as it ever did.¹

When you go to print an image, though, XV's calculation of the as-printed image resolution in dpi is, uh ... well, let's be polite and call it imaginative.  Or we could be impolite and say the dpi value is calculated by a crack-smoking monkey playing with a Ouija board.  It certainly doesn't bear much resemblance to reality.  It calculates different as-printed resolution (different by about a third) for the same image printed with the same margins on the same paper on the same printer, depending whether image and page are in portrait or landscape orientation.²

This patch fixes that and makes the dpi figure pretty accurately (i.e, ±1dpi) reflect reality.  If you don't already know how to apply it, you probably shouldn't be messing with it, and probably don't use XV anyway.

[1]  OK, so it doesn't scale images as cleanly as, say, the Gimp does, and it has never displayed GIF animation.³  Nobody said it was perfect.

[2]  Or, more clearly, with either both image and page portrait or with both landscape.

[3]  And besides, you have Xanim for that.  Right?  :)

Tags: