Originariamente inviato da jlsweb
si abbiamo un server linux con la gdlibrary attiva.
Mi potresti per favore fare un esempio compreso il codice php, magari quello che hai provato tu.
Ti ringrazio per la risposta.
guarda, io ho preso esattamente il codice che hai postato te, ho solo cambiato il nome dell'immagine:
Codice PHP:
<?php
// The file you are rotating
$image = 'mycd_logo.jpg';
//How many degrees you wish to rotate
$degrees = 180;
// This sets the image type to .jpg but can be changed to png or gif
header('Content-type: image/jpeg') ;
// Create the canvas
$source = imagecreatefromjpeg($image) ;
// Rotates the image
$rotate = imagerotate($source, $degrees, 0) ;
// Outputs a jpg image, you could change this to gif or png if needed
imagejpeg($rotate) ;
?>
e funziona...
prova a lanciare un file così
<?
phpinfo();
?>
sul mio server di test, dove funziona, la tabella gd mi dà
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled