problem for the ancients - headless cgi mode and images

Ben Rubinstein benr_mc at cogapp.com
Mon Apr 30 10:12:56 EDT 2012


On 29/04/2012 04:38, J. Landman Gay wrote:
> On 4/28/12 5:48 PM, Bryan McCormick wrote:
>> Folks,
>>
>> This is aimed at people who know the vagaries of the headless cgi mode
>> of old.
>>
>> I am trying to set an image in a headless stack and then get its
>> imagedata. In other words, setting it to "http://blurf.com/myremote.jpg"
>>
>> It does not appear to be working. Is this because the stack had no
>> access to http?
>
> I think it's because CGIs do not load the graphical interface, so they don't
> load or draw any images. I'm not sure there's a way around that, unless you
> can read in the raw binary file and work with it that way.

I'm not sure about CGI mode, but I have had some experience (scars) with 
headless mode (as you can tell, I'm not sure if there's a difference).  I 
think you can process images in headless mode - but you may have to do some 
trial and error to get past the various other hurdles of that mode.

Ben






More information about the use-livecode mailing list