Like many people, I have two monitors. The configuration may be a bit
different than most people's, though. The Acer monitor, placed on the left,
is the traditional 4:3 aspect ratio and runs at a res of 1280x1024; the
Samsung monitor, placed on the right, is the widescreen 16:9 aspect ratio
and runs at a res of 1680x1050.  The final oddity is this: the wider Samsung
monitor, although it is to the right of the Acer monitor, is actually
directly in front of me and is hence my primary monitor. Most people when
they have a second monitor put the secondary monitor to the right of their
primary; mine is to the left.  In coordinates, the secondary monitor is
therefore at (-1280,0).

What this means is that the traditional way of putting up widescreen
wallpapers (in Windows) to span the monitors won't work correctly; it always
puts the origin of the picture at 0,0 on the primary monitor, and therefore
wraps the picture as if the secondary was to the right of the primary
instead of at the left. The picture thus appears cut in half (well, more
like 3/5 than 1/2) and swapped.

So I wrote a little Windows batch file to use convert to make things right.
While it's doing that it also resizes whatever picture it is handed to the
full wallpaper size.

I would appreciate your comments. I realize that by using multiple converts,
it runs slower, but I wasn't totally sure of how to combine it into one.
Also, is there a pseudo-image type for wallpaper the way there is for
clipboard: ?

rem -- Makedouble.cmd
rem -- Convert picture for wallpaper for dual monitors with primary on right
side.
rem -- Resize, then cut rightmost section and put it on left.

rem -- move to our directory
cd %0\..

rem -- if argument passed, use it, otherwise look on clipboard
if .%1==. (
    convert clipboard: -geometry 2960x start.png
) else (
    convert %1 -geometry 2960x start.png
)

rem -- get right and left sections
convert start.png -crop 1680x1050+1280+0 right.png
convert start.png -crop 1280x1050+0+0 left.png

rem -- append them backwards
convert right.png left.png +append finish.png

rem -- use Irfanview to set wallpaper
y:\iview\i_view32.exe finish.png /wall=1 /killmesoftly
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to