Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it L'avatar di gasmor
    Registrato dal
    Apr 2004
    Messaggi
    1,768

    salvare immagine ruotata

    Sto impazzendo per una cosa semplicissima

    ho questo codice:

    Codice PHP:
    $image 'myfile.jpg';

    //read orientation information from EXIF

    $exif exif_read_data($filename);
    $ort $exif['IFD0']['Orientation'];

    //then based on $ort you can determine the rotation degree,
    //check the link below for more info

    //rotation degree
    $degrees 180;

    // create "image object"
    $source imagecreatefromjpeg($image) ;

    // rotate
    $rotate imagerotate($source$degrees0) ;

    // set the header
    header('Content-type: image/jpeg') ;

    // output
    imagejpeg($rotate) ; 
    come faccio a fare questo:

    Codice PHP:
    sostituisci l'immagine $rotate al file 'myfile.jpg'; 
    Hai provato a creare un sito con Jaaxo Cms PHP5? new!

  2. #2
    Utente di HTML.it L'avatar di gasmor
    Registrato dal
    Apr 2004
    Messaggi
    1,768
    mi rispondo da solo:

    imagejpeg($rotate, 'myfile.jpg');

    Hai provato a creare un sito con Jaaxo Cms PHP5? new!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.