Forum archive 2000-2006

Šarūnas Burdulis - Hardcopy static image() problem

Šarūnas Burdulis - Hardcopy static image() problem

by Arnold Pizer -
Number of replies: 0
inactiveTopicHardcopy static image() problem topic started 4/6/2005; 8:54:06 AM
last post 4/14/2005; 12:05:40 PM
userarūnas Burdulis - Hardcopy static image() problem  blueArrow
4/6/2005; 8:54:06 AM (reads: 1145, responses: 3)
Hello,

We are using PG 2.1.1, WW 2.1.2 and we have a problem with image() macro while generating hardcopy (HTML rendering is fine).

Given there is a static image included in the problem:

BEGIN_TEXT

\{image("osu_in_20_1.gif", width=>143, height=>128)\}

END_TEXT

the string that ends up in TeX source for the hardcopy is:

{ par {bf image("osu_in_20_1.gif", width=>143, height=>128) } par }

It looks like the image() is not recognised as a macro while in hardcopy generation path. As I mentioned it works for on-screen HTML. We didn't notice the problem with PG 2.1/WW 2.1, but that doesn't mean it did not exist.

Has anybody had the same problem with image()? Any solution to this?

Thanks, Sarunas

<| Post or View Comments |>


userSusan Diesel - Re: Hardcopy static image() problem  blueArrow
4/6/2005; 11:36:16 AM (reads: 1342, responses: 0)
I am seeing something similar when I create a PDF, using v1.9 on webwork2.math.rochester.edu. Error messages are varied, and include:

Use of uninitialized value in concatenation (.) or string at (eval 145) line 1565.

Unable to create eps file: ww/webwork/system/scripts/png2eps

ERRORin old safe ev, PGbasicmacros.pl:

When the problems are viewed individually, all images and graphs display correctly with no errors.

<| Post or View Comments |>


userDavide P. Cervone - Re: Hardcopy static image() problem  blueArrow
4/14/2005; 7:52:39 AM (reads: 1314, responses: 0)
I am not able to reproduce the problems you report. I suspect that there is a directory permission error when the image is being converted to postscript to be used with the hardcopy output (this doesn't have to be done for viewing on line). you might check the server log file to see if there is additional information there about the error. Otherwise, check that the server has write permission to the temporary directories where the eps files will be stored. (I'm hoping the error log will tell you where they are.)

Good luck!

Davide

<| Post or View Comments |>


userarūnas Burdulis - Re: Hardcopy static image() problem  blueArrow
4/14/2005; 12:05:40 PM (reads: 1305, responses: 0)
The problem was an incorrect netpbm path in webwork/bin graphics conversion scripts. The default is /usr/local/bin/ and I had to change it to /usr/bin/.

Thanks, Sarunas

<| Post or View Comments |>