Loading ...
Sorry, an error occurred while loading the content.

Re: [ploticus] Re: image map on the fly creation

Expand Messages
  • Stephen C. Grubb
    No.. you still can t do what you were describing w/ PNGs. The issue is that SVGs imbed the map info directly into the graphic result (hence only ONE stream is
    Message 1 of 5 , Aug 31, 2004
    • 0 Attachment
      No.. you still can't do what you were describing w/ PNGs.

      The issue is that SVGs imbed the map info directly into the graphic result
      (hence only ONE stream is required), while with PNGs the map info is
      separate from the graphic result (requiring TWO streams). And there's no
      way to get back two streams from a direct CGI process, as far as I know.

      Steve



      On Tue, 31 Aug 2004, Weazil wrote:

      >
      > since the new change of 230 and doing the output of csmap to stdout
      > would it be possible now to have it include using pngs in the fashion
      > i was trying? or is that basically for svg's?
      >
      >
      > --- In ploticus@yahoogroups.com, "Stephen C. Grubb" <scg@j...> wrote:
      > >
      > > Weazil,
      > >
      > > I think the problem is that your php <? include> statement is
      > executed at
      > > the time of php page generation, while /cgi-bin/pl is executed at
      > the time
      > > of page display on the browser (since it's within an <img> tag).
      > >
      > > the problem is that image content and map info are two separate
      > streams
      > > (unless you're using SVG), and in direct CGI mode, there's only one
      > > channel available (standard output). I can't see a way to get this
      > to
      > > work, other than to use SVG, or to execute pl via php shell(). I
      > should
      > > probably make a note of this on the direct cgi manual page, unless
      > someone
      > > can suggest a way for this to work.
      > >
      > > it would be nice if someone with some expertise in that area could
      > put
      > > together a PHP wrapper for libploticus, this would help.
      > >
      > > Steve
      > >
      > >
      > > On Thu, 19 Aug 2004, Weazil wrote:
      > >
      > > > ok I have php running pl thru the cgi-bin directly so all my
      > graphs
      > > > are done on the fly with data from a db by dumping the data to a
      > file.
      > > >
      > > > the graphing part works great, my question is how to get the
      > mapping
      > > > to work right.
      > > >
      > > > <img src="/cgi-bin/pl?cgi=1&csmap&sql.php" border='0'
      > usemap="#test">
      > > > <map name="test">
      > > > <? include("sql.map"); ?>
      > > > </map>
      > > >
      > > > what i have ran into is when you change the chart the map seems
      > to be
      > > > the last chart's map. but if your sitting on the page and dont
      > > > change the chart and just hit refresh it reads the map correectly.
      > > >
      > > >
      > > >
      > > >
      > > >
      > > >
      > > >
      > > > Yahoo! Groups Links
      > > >
      > > >
      > > >
      > > >
      > > >
      > > >
      > >
      > >
      > > Stephen C. Grubb scg@j...
      > > Scientific Software Engineer, The Jackson Laboratory
      > > 600 Main Street Bar Harbor, Maine 04609 USA
      >
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >
      >


      Stephen C. Grubb scg@...
      Scientific Software Engineer, The Jackson Laboratory
      600 Main Street Bar Harbor, Maine 04609 USA
    Your message has been successfully submitted and would be delivered to recipients shortly.