imagerotate() function is not working for me. See the code below
$source = imagecreatefromjpeg($filename);
// Rotate
$source = imagerotate($source, 90, 0);
// Output
imagejpeg($source);
// Free the memory
imagedestroy($source);
This is what is get from phpinfo regarding gd
GD Support enabled GD Version bundled (2.1.0 compatible) FreeType
Support enabled FreeType Linkage with freetype FreeType Version
2.3.11 GIF Read Support enabled GIF Create Support enabled JPEG Support enabled libJPEG Version 6b PNG Support enabled libPNG
Version 1.2.49 WBMP Support enabled XPM Support enabled libXpm
Version 30411 XBM Support enabled
I searched a lot for the answer, but didn't get the correct answer for this.
can any suggest a solution for this? any help will be appreciated
header("Content-Type: image/jpeg");- Joachim