[softwarelist] Re: with TIFF preview (Ovation Pro for RISC OS)

In message <4eab153825peter@xxxxxxxxxx>, P C Newble <peter@xxxxxxxxxx> writes
Grovelling apologies

All round, I had not realised that a referenced image was necessary. I'll look into it.

int eps_makeproxy(string & name,string & preview,int x0,int
y0,int x1,int y1,string & to)
{
return(osclis("wimptask <GhostScript$Dir>.gs -q -dBATCH
-dNOPAUSE -sOutputFile="+to+" -sDEVICE=spr -r150 -dEPSCrop
"+name));
}

<sotto voce> I don't like people calling osclis() with a literal string. The thing is that osclis() returns an error message in its string argument. I know that some of the code written by Beebug does the above, but I would write it:

string s="wimptask <GhostScript$Dir>.gs -q -dBATCH
>-dNOPAUSE -sOutputFile="+to+" -sDEVICE=spr -r150 -dEPSCrop
>"+name;

return(osclis(s));

</>


Mostly this seems to work, but I have run into (apparently)
memory-related problems when an EPS which GhostScript succesfully
converts without error in a taskwindow seems to fail to produce a

Perhaps the size of the -next slot - task manager or you could bracket the osclis() above with calls to increase and decrease its size.

The fact that once it goes wrong it keeps going wrong might be due to the string point above. Or if a machine boot really is needed, lost memory - eyeball the task manager, dynamic areas down at the bottom.


eps_makeproxy is used, so as it stands a referenced image using
the TIFF preview isn't possible.

Easy to fix though with the preview argument above:

if(preview=="") return(osclis(...))

return(1)

More elaborate would be a dialogue box to allow the proxy
resolution and type to be chosen, but I haven't done anything
that elaborate as an Ovation Pro script before . . .

Not very difficult, plenty of examples amongst the applets.


--
David Pilling
email: david@xxxxxxxxxxxxxxxxxxx
  web: http://www.davidpilling.net
 post: David Pilling P.O. Box 22 Thornton Cleveleys Blackpool. FY5 1LR UK
  fax: +44(0)870-0520-941



Other related posts: