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:
Wednesday, June 4th, 2008 04:54 am (UTC)
Bummer!

http://www.babcom.com/public/xv-dpi-patch.diff either doesn't exist any more, has been moved someplace else, never existed in the first place, or has been abducted from its bed by grey-skinned aliens who are at this moment performing horrific medical experiments on it as it lies paralyzed but fully aware, strapped to a cold metal table, screaming in helpless agony and terror.

Then again, maybe all web pages exist in a superposition of quantum states like Schrödinger's cat, and you were just dead unlucky on this one. You should never have opened the box.

(Or maybe you just mistyped it... but that would be boring. Wouldn't it?)
Wednesday, June 4th, 2008 10:46 am (UTC)
Oops. Actually, I was the one who mistyped it. ;) Color me sheepish....
Wednesday, June 4th, 2008 10:09 pm (UTC)
It was a luck mistype because that 404 is hilarious!
Wednesday, June 4th, 2008 10:21 pm (UTC)
It's a random-generator CGI. :) I add new variations as I think of them.

(Feel free to suggest themes.)