Generated from EPS:
![Image](http://s3.amazonaws.com/s.thumbs.canstockphoto.com/canstock1312578.jpg)
![Image](http://s3.amazonaws.com/s.thumbs.canstockphoto.com/canstock1312538.jpg)
Generated from a JPG (created by Illustrator):
![Image](http://s3.amazonaws.com/s.thumbs.canstockphoto.com/canstock1067876.jpg)
![Image](http://s3.amazonaws.com/s.thumbs.canstockphoto.com/canstock0917684.jpg)
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);