Page 1 of 1

Pattern Shift

Posted: 2011-08-12T08:42:59-07:00
by elisegev
Hi,

I have a PDF file that has a red and white pattern. When the image is converted to any Raster format, the pattern shifts and is in a wrong place. The issue seems to be coming from the step of converting the Postscript file to Raster. In other words, Ghostscript seems to be able to convert the PDF file to a correct Postscript file. But the second step of converting from Postscript to Raster shifts the pattern. I can provide the PDF file if needed.

Re: Pattern Shift

Posted: 2011-08-15T18:32:13-07:00
by anthony
The PDF to postscript is a simple vector image conversion. The change to raster is much more involved.

More than likely the problem is a resolution or density issue. Try using a much higher resolution.

Re: Pattern Shift

Posted: 2011-08-15T18:37:07-07:00
by magick
Add -density 400 to your command line.

Re: Pattern Shift

Posted: 2011-08-16T06:54:50-07:00
by elisegev
magick wrote:Add -density 400 to your command line.
Thank you for the suggestion. But it does not work for GIF, JPG and PNG.

Is it possible that something goes wrong with coordinates system of the pattern?

If need be, I can provide you with the PDF file.

Re: Pattern Shift

Posted: 2011-08-16T07:45:46-07:00
by magick
Yes, post a URL to your PDF. Its possible the problem is in your version of Ghostscript.

Re: Pattern Shift

Posted: 2011-08-16T08:26:13-07:00
by elisegev
magick wrote:Yes, post a URL to your PDF. Its possible the problem is in your version of Ghostscript.
I need to upload the file somewhere. I don't have a server that is out side of a firewall.
I am using Ghostscript 9.01, which displays the image correctly.