Image upload placed on shirt
Posted: 2016-07-02T02:21:36-07:00
we try on our website to uplaod a custom image and place this on a shirt. but the quality of the uploaded image is still not 100% good quality. here you find a snippet of our code
$im = new Imagick();
if ($file_format == 'eps') {
$im->setColorspace(Imagick::COLORSPACE_RGB);
}
$im->setResolution(150, 150);
$im->readImage($input_file);
$im->setImageUnits(Imagick::RESOLUTION_PIXELSPERINCH);
//$im->setImageResolution(150, 150);
$im->resizeImage(400, 400, imagick::FILTER_LANCZOS, 1, true);
$im->setImageFormat($output_format);
this is our result here (bad) http://www.shirtee.de/media/bad-result.png
here is the good result from other company site http://www.shirtee.de/media/good-result.png
here you find the original file http://www.shirtee.de/media/sailing.png
any idea? thanks!
$im = new Imagick();
if ($file_format == 'eps') {
$im->setColorspace(Imagick::COLORSPACE_RGB);
}
$im->setResolution(150, 150);
$im->readImage($input_file);
$im->setImageUnits(Imagick::RESOLUTION_PIXELSPERINCH);
//$im->setImageResolution(150, 150);
$im->resizeImage(400, 400, imagick::FILTER_LANCZOS, 1, true);
$im->setImageFormat($output_format);
this is our result here (bad) http://www.shirtee.de/media/bad-result.png
here is the good result from other company site http://www.shirtee.de/media/good-result.png
here you find the original file http://www.shirtee.de/media/sailing.png
any idea? thanks!