comicpress-manager-1.4/test/selenium/convert_cmyk_to_rgb.php

14 lines
252 B
PHP
Raw Permalink Normal View History

2010-04-02 23:03:58 +00:00
<?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));
?>