PDA

View Full Version : Image Issue - Please Help



TalonKaine
September 27th, 2009, 22:57
Hello there,

I have a small image of the Red Wizard from D&D which is about 2.8 inches Height and about 1.80 Width. Yet when I bring the image up in FG's it cuts off half the picture and blows the photo up super large. I've tried holding the Shift Key while Mouse scrolling to reduce the size but it will only allow me to make it larger. As you can see below, the bottom half of this image is gone and it's all out of focus the picture itself should be much smaller then the Chat Box Frame.

https://i140.photobucket.com/albums/r25/talonkaine/Screenshot-Temp.jpg

What is the issue here that is making the images go this way?

Xode
September 28th, 2009, 03:18
My best guess is that the image is actually a lot higher resolution than you think it is..

I would suggest taking it back into your image editing program and reduce its size so that its only a 300 or so pixels wide, save a copy of it under a different name, and load it again to see if that fixes the problem.

if FG itself is blowing up the image, then i dunno what the problem could be.

Sorontar
September 28th, 2009, 11:12
Also try dragging the bottom right corner of the window (ctrl+click/drag) so that the window is narrower and close to the native shape of the image. This may well zoom it out again as the whole image can then fit in the window.

Answulf
January 6th, 2010, 08:40
I'm having the same issue - I have an image that is 220x300 and when it first loads up it is huge and zoomed in. If I monkey around with ctrl-dragging the window and zoom I can eventually get it to look OK, but if it were a small map this would be a bigger issue. Why doesn't it just load at actual size?

I'm a bit rusty with FG - has it always done this or do I need to do something I'm not doing? I vaguely remember something about 700x700...

Foen
January 6th, 2010, 13:04
FG won't display empty space on the sides or top/bottom of an image window, so it zooms the image to fill the window along the narrow axis and then crops it along the wide axis.

You can resize the window to adjust the aspect ratio and/or size, but it unhelpfully 'remembers' the size of the last image loaded with that database reference: if you delete an image (because your campaign has moved on from one adventure) and then add an image (because the players have moved into a new area) FG re-uses the database reference and you get stuck with the old image size.

To prevent the 'remembering' you can either edit the ruleset to disable this feature (see below) or you can delete your campaignregistry.lua file.

Preventing the window size from being remembered in code, is relatively easy if you have an editable ruleset. The file scripts/windowmanager.lua needs to have the contents of the onInit function commented out as follows:


function onInit()
-- Interface.onWindowOpened = onWindowOpened;
-- Interface.onWindowClosed = onWindowClosed;
end


Hope that helps

Foen

ddavison
January 6th, 2010, 14:30
We plan to improve the handling of rectangular images in FG. This can be quite a pain with rectangular maps especially.

Answulf
January 6th, 2010, 16:23
Interesting. So for now just make all maps and images square, eh?

drahkar
January 6th, 2010, 16:29
Or be aware of the need to cleared. But an easy answer is just to add some white/black space to fill in the difference. Just be aware of how that affects file size.

Bidmaron
January 9th, 2010, 13:46
While you are talking about image improvements, can we get the ability to put images into story windows? Can we get the ability to edit picture links programatically? This is a major roadblock to mimicking PDFs, as any graphics have to be in a separate window currently (workarounds are challenging at best).