Re: display(), ImageInfo->server_name;

[email protected] Sun, 12 Jun 2011 22:24:17 +0000
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
On Sun, Jun 12, 2011 at 10:40:33AM -0500, Bob Friesenhahn wrote:
> On Sun, 12 Jun 2011, [email protected] wrote:
>>
>> I'm delving into ImageInfo, and trying to work with server_name attribute,
>> but not getting desired effect. What I think should happen, is if
>> I've set server_name to point to a string like ":2.0", or "fu:0.0",
>> that should be honoured as the DISPLAY to attempt to display on with
>> DisplayImages(). This doesn't appear to be happening (just defaulting
>> to :0.0?).
>>
>> What am I missing?
>
> I am not sure.  On a remote Solaris system, I did
>
>   gm display -display foo:0.0
>
> with DISPLAY unset and it did display locally as expected.  As far as I 
> am aware, -display simply copies its argument into  
> ImageInfo->server_name, so this should be a useful test.  I am unsure  
> about ordering requirements.  Perhaps there is a point beyond which the 
> value is no longer used?
>
> Permutations of invalid display arguments produce error messages which  
> show that this value is being used.  I also tested with the DISPLAY  
> environment variable set.
>
> 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.

So, gm(1) works as one would expect, buy my lib is failing. What I'm doing
at this point is packing ImageInfo around w/ it's Image, so these values
are persistent, and always available. "quality" is another attribute that
I'm handling in same way, and it is working as I'd expect (on writing a
file out; interestingly, when I display Image obj to screen, the "quality"
setting has no effect.) So, there are signs that my ImageInfo is properly
storing the values, and that it works, at least partially...

> 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