How can I "flip" an image using PHP?
        Posted  
        
            by learner
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by learner
        
        
        
        Published on 2010-06-09T10:54:53Z
        Indexed on 
            2010/06/10
            17:02 UTC
        
        
        Read the original article
        Hit count: 213
        
Here's what I've tried:
$image = "images/20100609124341Chrysanthemum.jpg"; 
$degrees = 40; 
// Content type 
header('Content-type: image/jpeg'); 
// Load 
$source = imagecreatefromjpeg($filename);
// Rotate 
$rotate = imagerotate($source, $degrees, 0);
// Output 
imagejpeg($rotate); 
...But I get no output. Can anyone tell me what's wrong with this?
© Stack Overflow or respective owner