Posted Jan 26, 2005 in PHP.
I have started playing with the GD Library functions available to PHP for the first time. One of the things I would like to do is rotate a JPEG through 270 degrees, and then save it.
Performing the rotation itself was easy:
$filename = "test.jpg"; $source = imagecreatefromjpeg($filename); $rotate = imagerotate($source,270,0); imagejpeg($rotate);
I thought I would be able to save the file (actually overwrite the old file) by simply altering the
Unfortunately, this does not work. Does anyone know how this seemingly simple task might be accomplished?
Update: The technique I described does seem to be working now. I am not exactly sure what I screwed-up before, but it seems that there was an error in my testing example. My bad.