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.
Pattern Shift
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Pattern Shift
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.
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/
https://imagemagick.org/Usage/
Re: Pattern Shift
Add -density 400 to your command line.
Re: Pattern Shift
Thank you for the suggestion. But it does not work for GIF, JPG and PNG.magick wrote:Add -density 400 to your command line.
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
Yes, post a URL to your PDF. Its possible the problem is in your version of Ghostscript.
Re: Pattern Shift
I need to upload the file somewhere. I don't have a server that is out side of a firewall.magick wrote:Yes, post a URL to your PDF. Its possible the problem is in your version of Ghostscript.
I am using Ghostscript 9.01, which displays the image correctly.