MadDog
March 5, 2008, 3:56am
1
OK, here I am trying to make another module - its been a while since I did my previous ones.
I have an at-start forces card. Originally, I used a .GIF file, and when I play the module, the at-start card looks exactly like it should (7" across).
When I instead use the same fie, but in a PNG format, something odd happens when I go back into the game. The at-start card is now about twice as big as it was before ! I checked, and both the PNG and GIF files are the same size (7" across according to photoshop).
Not sure why this is happening…
Mad Dog
Thus spake “MadDog”:
OK, here I am trying to make another module - its been a while since I did my
previous ones.
I have an at-start forces card. Originally, I used a .GIF file, and when I p
lay the module, the at-start card looks exactly like it should (7" across).
When I instead use the same fie, but in a PNG format, something odd happens w
hen I go back into the game. The at-start card is now about twice as big as
it was before ! I checked, and both the PNG and GIF files are the same size
(7" across according to photoshop).
Not sure why this is happening…
Mad Dog
You need to compare the dimensions in pixels, not inches.
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com )
MadDog
March 6, 2008, 3:00am
3
Thanks, that did the trick.
Mad Dog
Thus spake Jeffrey Brent McBeth:
Sure, GIF doesn’t hold DPI information, so Photoshop is making up a DPI
number for the file to report to you 7" (probably 72 DPI, which is a crappy
choice, but hey). That would lead me to believe that your image is about
500 pixels across. The PNG can hold DPI information, and I would guess that
that particular file is either 120 or 150 DPI (common scanning resolutions),
and so somewhere around 1000 pixels across. I would also assume (not having
looked at the image code lately) that VASSAL ignores useful information like
DPI and is just again making up a number like 72 and so rendering the file
too big. I would try to get both images so they are the same number of
pixels across and see if you still have the problem.
What VASSAL is doing is mapping one pixel in the image to one pixel on
your screen, as both are just arrays of pixels.
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com )