IMAGE toolbox : 5-July-96


kroutines libraries

ifiltdesign


igamut


igauss_func


igeowarp


igradient


imedian


ipostscr



Short Description:
vpostscr (K1.0.3) not computing width and height correctly in landscape mode - verify that ipostscr works correctly
Work-Around :
Severity : 2a- Incorrect behavior
Priority : 3 - Medium
Reported By : phi!mcaouett@uu4.psi.com
Date : 10-Mar-93
HW :
OS :
Widget :
C :
Fortran :
Perl :
X :
Win Mgr :
Display :
Original Rpt:
Subject: vpostscr bug ??? I found a problem with lvpostscr/vpostscr. vpostscr formats a Khoros image in Postscript format.

When I did " vpostscr -i imgfile -w 10.7 -h 6.56 -x 1.2 -y 0.125 \ -s 0 -l 1 > outfile I got the following error message lvpostscr: Requested image layout too large for page! lvpostscr Failed

The problem is in landscape mode, -w (width) and -h (height) refer to the width and height of the image before the 90 rotation. So, the maximum width is 11 while the maximum height is 8.5. There is a check in lvpostscr which check if xoffset + width <= maxpagewidth. In the landscape, it should check yoffset + width <= maxpagewidth instead. Or have y offset means something else in landscape mode (switch the meaning of x and y offsets).
Notes :
Keywords :
TB::oname : IMAGE::ipostscr


Short Description:
vpostscr (K1.0.5) does not support multi-outputs
Work-Around :
Severity : 4b- Minor inconvenience
Priority : 3 - Medium
Reported By : jogl@tolkien.imsd.rwth-aachen.de
Date :
HW :
OS :
Widget :
C :
Fortran :
Perl :
X :
Win Mgr :
Display :
Original Rpt:
thanx to this news-group, our printing-problem is solved: multi-outputs from vpostscr could be done by adding a line BEFOR the last one ("showpage"). here are two ways of doing it:

00aea79f928a898a848985858 ... 0000000000000000000000000 ... restore 3 { copypage } repeat <<<<< gives 4(!) copies. showpage or 00aea79f928a898a848985858 ... 0000000000000000000000000 ... restore /#copies 3 def <<<<< showpage

works, too.

to the KHOROS-Group: could THIS be a new feature for KHOROS 1.0 PL 6: vpostscr :

Format a Khoros image in Postscript, suitable for a LaserWriter

-i input image filename (infile)

[-n] number of copies (integer) [1] <<<<< ?

jogl@tolkien.imsd.rwth-aachen.de Inst. f. Med. Stat. & Doku. (IMSD)
Notes :
Keywords :
TB::oname : IMAGE::ipostscr


Short Description:
vpostscr (K1.0.5) output will not allow having several images on one page
Work-Around :
Severity : 3a- Major inconvenience
Priority : 3 - Medium
Reported By : ENGEL@hula.huji.ac.il
Date : 15-Jan-92
HW :
OS :
Widget :
C :
Fortran :
Perl :
X :
Win Mgr :
Display :
Original Rpt:
Subject: color postscript - vpostscr command I have not succeeded in having several images on one page. In a csh file: vpostscr -i g.01 -p 0 -x 0.5 -y 0.5 -w 2 -h 2 -s 0 -c > out1 vpostscr -i g.02 -p 0 -x 0.5 -y 2.5 -w 2 -h 2 -s 0 -c > out2 vpostscr -i g.03 -p 0 -x 0.5 -y 4.5 -w 2 -h 2 -s 0 -c > out3 cat out1 out2 out3 > outend ghostscript outend (here g.01, g.02 and g.03 are xv images)

By ghostscript I see only one picture in the lower left corner. (not in the upper one) Then I have to click "RETURN" so as to get the second frame, but on a new page... Moreover the file so produced is very very large and truncated before printing! So I cannot lpr -Plw1 outend

More problem: Is there a command scaling several postscript files and putting all of them on one page?

Thanks, Michael 15 I 92. bitnet: ENGEL@HUJIVMS (internet: ENGEL@HULA.HUJI.AC.IL ) fax: (972)2-527349
Notes :
Keywords :
TB::oname : IMAGE::ipostscr


Short Description:
vpostscr (K1.0.5) - xoffset and yoffset do not work properly in landscape mode
Work-Around :
Severity : 2a- Incorrect behavior
Priority : 3 - Medium
Reported By : V.G.Prakash, vprakash@cs.uml.edu
Date : 09-Aug-93
HW :
OS :
Widget :
C :
Fortran :
Perl :
X :
Win Mgr :
Display :
Original Rpt:
xoffset and yoffset in lvpostscr.c do not work properly in landscape mode.

Solution: in line 212: -********************************************************** OLD CODE: -**********************************************************

if ((xoffset + width) > maxpagewidth || (yoffset + height) > maxpageheight) { (void) fprintf(stderr, "\n\nlvpostscr: Requested image layout too "); (void) fprintf(stderr,"large for page!\n\n"); return(0); }

-********************************************************** NEW CODE: -**********************************************************

if(landscape) { if ((yoffset + width) > maxpagewidth || (xoffset + height) > maxpageheight) { (void) fprintf(stderr, "\n\nlvpostscr: Requested image layout too "); (void) fprintf(stderr,"large for page!\n\n"); return(0); } } else { if ((xoffset + width) > maxpagewidth || (yoffset + height) > maxpageheight) { (void) fprintf(stderr, "\n\nlvpostscr: Requested image layout too "); (void) fprintf(stderr,"large for page!\n\n"); return(0); } }

V.G.Prakash Ph: off: 508-934-3613
Notes :
Keywords :
TB::oname : IMAGE::ipostscr

irotate


itexture


kimage_proc