AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2010.01.29 13:10 "Re: [Tiff] tiff2ps, rotation", by Hans Werner Strube
2010.01.29 17:29 "[Tiff] Rotation in tiff2ps", by Richard Nolde

2010.01.29 13:10 "Re: [Tiff] tiff2ps, rotation", by Hans Werner Strube

The option -r of tiff2ps does not work properly, both in tiff 3.8.2 and 3.9.2.

In 3.8.2, this only shows up with Option -p and PS-Level >1. This results in an inconsistent PS file, causing a bus error with ghostscript. I found a strange switch between x and y related quantities (lines 604 and 610), as if there were a 90 or 270 degrees rotation instead of the actual 180 degrees; but fixing only this did not remove the inconsistency.

In 3.9.2, rotation by 180 degrees seems to be o.k., but with 90 and 270 degrees the page shape is not rotated, only the content is, which is then deformed to match the page shape. This might be due to the fact that p[s]x and p[s]y are switched both in calling PSHead() and again within PSHead(). But simply changing this is insufficient, because the aspect ratio of the content remains wrong.