Re: display(), ImageInfo->server_name;

[email protected] Sun, 12 Jun 2011 23:30:40 +0000
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
On Sun, Jun 12, 2011 at 06:14:06PM -0500, Bob Friesenhahn wrote:
> On Sun, 12 Jun 2011, [email protected] wrote:
>>> Does the command line -display option work for you?
>>
>> Heh -- I'll get the habbit sooner or later... I tried setting to foo:0.0,
>> and it's stalling (I'm sure it'll fail eventually)... yup, just failed.
>
> Hmmm.  X11 is supposed to be a standard.  What operating system are you 
> using, and what X11 libraries?

NetBSD on amd64. Xorg 1.9.2.

> If you built GraphicsMagick from source code, are you sure that X11  
> support was configured in?

Oh, I can get things to show up on screen. What I'm working with is the
graphicsmagick lib, as a shared object, being loaded into my app. So, I
can: "magick::image myimg; myimg read -file test.jpg; myimg display", and
get a picture on the screen. And I can set the quality, and have it behave
like I'd (sort of) expect: "myimg infoset -quality 2; myimg write -file
test2.jpg", then view that file, and it's low-quality. What I can't do is
"myimg setinfo -display fu:0.0", and seem to have that take effect. A
subsequent "myimg display" happily just displays it on my local display.

> Use
>
>   gm convert -version to see all the details.

...
X11                      yes
...

> Also,
>
>   gm convert -list formats

kamloops$ gm convert -list formats | grep "X Win"
        X S  rw-  X Window System
      XBM S  rw-  X Windows system bitmap (black/white)
      XPM S  rw-  X Windows system pixmap (color)
      XWD S  rw-  X Windows system window dump (color)


> should include this line somewhere in its output:
>
>         X S  rw-  X Window System
>
> If all this is ok, then perhaps something about how you are building and 
> linking your program is breaking the X11 support.

X11 is not fully broken, but setting options is failing somewhere. Again,
wouldn't be suprised if PEBKAC, but setting the ImageInfo->server_name
is not working like I'd expect.

> Bob
> -- 
> Bob Friesenhahn
> [email protected], http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

-- 
Brad Harder
Method Logic Digital Consulting
http://methodlogic.net/
http://twitter.com/bcharder


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev