Discussion:
FVWM: ImageMagick display style option?
Walter Alejandro Iglesias
2013-03-25 17:21:29 UTC
Permalink
Hello everybody,

I've noted that when I open with (ImageMagick) display command
an image larger than the screen the window geometry doesn't take
in care borders and title, then right and bottom window borders
are hidden outside the limit of the screen. Somebody knows a
style option or another workaround for this?


Thanks in advance

Walter
M***@gmx.de
2013-03-25 19:45:36 UTC
Permalink
Post by Walter Alejandro Iglesias
Hello everybody,
I've noted that when I open with (ImageMagick) display command
an image larger than the screen the window geometry doesn't take
in care borders and title, then right and bottom window borders
are hidden outside the limit of the screen. Somebody knows a
style option or another workaround for this?
Thanks in advance
Walter
I have this with XV too, but I like this behavior, because this is
exactly what I want: Seeing an unscaled image (watching down-scaled
Screenshots is not nice; it is always perfect when FVWM shows the
plain screenshots and hides the window borders and titles outside
of the screen).

I have configured FVWM in a way that, when I hold down the
WIN key, click with the left mouse button into the XV image and
move the mouse, then the whole XV image starts moving according to
the moving of my mouse.

When I have a case in which I do not need this behavior, then I
open a Web Browser to view the image within that.

Oh yeah, for XV, I have another FVWM hotkey: WIN + RETURN.
When I hit WIN + RETURN, my XV window maximises like every other
window. If XV shows a picture larger than the screen, it shrinks
of course, to screen size.

Perhaps, you should configure your FVWM in a way that it
recognizes that ImageMagick starts and automatically maximizes
ImageMagick when it is larger than the screen.

Or you adapt my config together with my habit as described above.
Though I hit very often WIN + RETURN when I deal with windows, but
I have full control, and you will familiarize very fast with it :-)

- Michael -
Walter Alejandro Iglesias
2013-03-25 20:18:47 UTC
Permalink
Hi Michael,
Post by M***@gmx.de
Post by Walter Alejandro Iglesias
Hello everybody,
I've noted that when I open with (ImageMagick) display command
an image larger than the screen the window geometry doesn't take
in care borders and title, then right and bottom window borders
are hidden outside the limit of the screen. Somebody knows a
style option or another workaround for this?
Thanks in advance
Walter
I have this with XV too, but I like this behavior, because this is
exactly what I want: Seeing an unscaled image
By default the display command doesn't scale the image but
resizes the frame and open the little window with a thumbnail
where you click and scroll. The problem is Imagemagick
considers the size of the physical screen without resting the
width of the window frame and title.

For example if you remove borders and title:

Style display !Title, !Handles, !Borders

and open an image larger than the screen you can scroll the
whole image using the thumbnail mini-window. With the borders
and title you can't (unless you scroll along the screen with the
pager).
Michael Großer
2013-03-25 20:59:14 UTC
Permalink
Post by Walter Alejandro Iglesias
Hi Michael,
Post by M***@gmx.de
Post by Walter Alejandro Iglesias
Hello everybody,
I've noted that when I open with (ImageMagick) display command
an image larger than the screen the window geometry doesn't take
in care borders and title, then right and bottom window borders
are hidden outside the limit of the screen. Somebody knows a
style option or another workaround for this?
Thanks in advance
Walter
I have this with XV too, but I like this behavior, because this is
exactly what I want: Seeing an unscaled image
By default the display command doesn't scale the image but
resizes the frame and open the little window with a thumbnail
where you click and scroll. The problem is Imagemagick
considers the size of the physical screen without resting the
width of the window frame and title.
Style display !Title, !Handles, !Borders
and open an image larger than the screen you can scroll the
whole image using the thumbnail mini-window. With the borders
and title you can't (unless you scroll along the screen with the
pager).
Hi Walter,

in both of your messages, you described what you get, but you
didn't describe what you want instead.

Please describe in detail which behavior you exactly want.
Tastes of people are very different, and it is hard to guess
your taste in your case.

- Michael -
Walter Alejandro Iglesias
2013-03-25 22:03:31 UTC
Permalink
Post by Michael Großer
Post by Walter Alejandro Iglesias
Hi Michael,
Post by M***@gmx.de
Post by Walter Alejandro Iglesias
Hello everybody,
I've noted that when I open with (ImageMagick) display command
an image larger than the screen the window geometry doesn't take
in care borders and title, then right and bottom window borders
are hidden outside the limit of the screen. Somebody knows a
style option or another workaround for this?
Thanks in advance
Walter
I have this with XV too, but I like this behavior, because this is
exactly what I want: Seeing an unscaled image
By default the display command doesn't scale the image but
resizes the frame and open the little window with a thumbnail
where you click and scroll. The problem is Imagemagick
considers the size of the physical screen without resting the
width of the window frame and title.
Style display !Title, !Handles, !Borders
and open an image larger than the screen you can scroll the
whole image using the thumbnail mini-window. With the borders
and title you can't (unless you scroll along the screen with the
pager).
Hi Walter,
in both of your messages, you described what you get, but you
didn't describe what you want instead.
Please describe in detail which behavior you exactly want.
Tastes of people are very different, and it is hard to guess
your taste in your case.
Probably xv (I haven't it on Debian) doesn't do exactly the same
than display command that's why you don't understand me. The
behavior expected is the same you get when you maximize a
window. Imagine that you maximize a window but the program
forces the real screen size on the dimensions of the buffer (not
the real size of the content, the image in this case). The
result is, if the external +0+0 corner of the title frame is
placed on +0+0 of the physical screen the right and bottom
borders are drawn out of the screen. Remember that what the
program tries to do is to *resize* the frame to fit on the
screen, the frame doesn't respect the real size of the image.
What you obviously want is to see the whole title and frames on
the screen, like any maximized window.
Post by Michael Großer
- Michael -
Jaimos Skriletz
2013-03-25 23:46:09 UTC
Permalink
Post by Walter Alejandro Iglesias
Hello everybody,
I've noted that when I open with (ImageMagick) display command
an image larger than the screen the window geometry doesn't take
in care borders and title, then right and bottom window borders
are hidden outside the limit of the screen. Somebody knows a
style option or another workaround for this?
Have you tried the using the -geometry option for display. Make the geometry just small enough that by the time fvwm adds the borders and title bar i it fits on teh full screen like you want?

When I tested I was able to set the geometry to make it work out correct. This isn't perfect but almost fits my screen.

Native geometry is 1920x1080, so to deal with borders/titlebar I ran

display -geometry 1910x1050 IMGP2657.jpg

And it almost worked like you want. The thumbnail image was slightly off, but since it is it's own window you can isolate it with a style command and put use position position or the likes to put it where you want it.

the nice thing about display is if the image is smaller than the geometry you request, it will resize and only make it as big as the image.

jaimos
Walter Alejandro Iglesias
2013-03-26 08:48:17 UTC
Permalink
On Mon, Mar 25, 2013 at 08:45:36PM +0100,
Post by Walter Alejandro Iglesias
Hello everybody,
I've noted that when I open with (ImageMagick)
display command an image larger than the screen the
window geometry doesn't take in care borders and
title, then right and bottom window borders are
hidden outside the limit of the screen. Somebody
knows a style option or another workaround for this?
Have you tried the using the -geometry option for display.
Yes, I'd tried that. I asked here to know if it exists a better
way.


Thanks Jaimos

Loading...