MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
I am trying to convert EPS files in JPG images. It is working, except the output is very low quality. The colors are blotchy lines are blurry. It looks like the image is being upsampled.
Here is the code I am using - am I doing something wrong? I get the feeling I must be missing a key step.
I don't actually call MagickReadImage() - I call MagickReadImageBlob(). I still tried inserting MagickSetResolution($new_wand, 300, 300) as you suggested, but it did not seem to make any difference. The result still appeared upsampled.
You note in your example that MagickSetResolution() would reference $new_wand - however, $new_wand is not declared until well after the image is read. So this confuses me a little bit further.
Thank you for the reply. No, unfortunately it still looks the same as before.
I think the best way to describe the image is "blotchy". The color areas should be smooth and uniform, but instead they are faded and have patterns through them. The lines should be smooth and crisp, but instead are made up of jagged edges. I would post a sample, but unfortunately all the images are copyrighted.
Do you have any other ideas what might possibly be the problem, or solution?
[root@Server6482 temp]# convert -density 300x300 test.eps test.jpg
sh: gs: command not found
sh: gs: command not found
convert: Sorry, can not handle image with PhotometricInterpretation=4. `test.eps'.
[root@Server6482 temp]# convert -density 300x300 -colorspace rgb test.eps -quality 92 test.jpg
sh: gs: command not found
sh: gs: command not found
convert: Sorry, can not handle image with PhotometricInterpretation=4. `test.eps'.
Does that make any sense to you? I have only ever used ImageMagick through PHP MagickWand, so I am completely unfamiliar with it on a command line level.
I had my hosts reinstall ImageMagick and Ghostscript and they both work properly now - the images are appearing as I could expect. Thanks for all your help!