<?php $destination = 'slika_cmyk.jpg'; chmod($destination, 0755); $create = imagecreatefromjpeg($destination); imagejpeg($create, 'slika_rgb.jpg', 100); imagedestroy($create); ?>