Color Difference Between JPG and EPS rendered.
Posted: 2008-11-14T08:53:39-07:00
Someone pointed this out to me:
Generated from EPS:
Generated from a JPG (created by Illustrator):
The code I use for making the thumbnail from a EPS:
Any ideas why there is the color difference between the two methods? I assume the JPG version is the "correct" one. Any insight would be much appreciated!
Generated from EPS:
Generated from a JPG (created by Illustrator):
The code I use for making the thumbnail from a EPS:
Code: Select all
$blob = file_get_contents("test.eps");
$magick_wand=NewMagickWand();
MagickReadImageBlob($magick_wand, $blob);
$wand = NewMagickWand();
MagickSetResolution( $wand, 300, 300 );
MagickReadImageBlob($wand, $blob);
$new_wand = MagickTransformImage($wand, NULL, '50x');
MagickSetImageFormat($new_wand, 'jpg') ;
MagickWriteImage($new_wand, "file.jpg");
DestroyMagickWand($new_wand);
DestroyMagickWand($wand);