Pattern Shift

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Pattern Shift

Post by elisegev » 2011-08-12T08:42:59-07:00

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.

User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Pattern Shift

Post by anthony » 2011-08-15T18:32:13-07:00

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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

User avatar
magick
Site Admin
Posts: 11078
Joined: 2003-05-31T11:32:55-07:00

Re: Pattern Shift

Post by magick » 2011-08-15T18:37:07-07:00

Add -density 400 to your command line.

elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Re: Pattern Shift

Post by elisegev » 2011-08-16T06:54:50-07:00

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.

User avatar
magick
Site Admin
Posts: 11078
Joined: 2003-05-31T11:32:55-07:00

Re: Pattern Shift

Post by magick » 2011-08-16T07:45:46-07:00

Yes, post a URL to your PDF. Its possible the problem is in your version of Ghostscript.

elisegev
Posts: 50
Joined: 2005-09-28T07:47:13-07:00
Contact:

Re: Pattern Shift

Post by elisegev » 2011-08-16T08:26:13-07:00

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.

Post Reply