comicpress-manager-1.4/test/selenium/convert_cmyk_to_rgb.php
2010-04-02 19:03:58 -04:00

14 lines
252 B
PHP

<?php
$file = "1990-01-01-sample-comic-cmyk.jpeg";
$target = "1990-01-01-sample-comic-from-cmyk.jpeg";
var_dump(getimagesize($file));
$cmyk_data = imagecreatefromjpeg($file);
imagejpeg($cmyk_data, $target, 80);
var_dump(getimagesize($target));
?>