Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Nov 2006
    Messaggi
    2

    Aggiungere bordo e sfondo a questo script

    Ciao a tutti volevo sapere se qualcuno poteva aiutarmi ad aggiungere 1 bordo ed il colere di sfondo nero a questo script e se era possibile anche a centrare la foto che esce in anteprima
    Grazie

    <?php

    /**
    * Smart, easy and simple Image Manipulation
    *
    * @author Alessandro Coscia, Milano, Italy, php_staff@yahoo.it
    * http://www.codicefacile.it/smartimage
    * @copyright LGPL
    * @version 0.8.9
    *
    */
    include "SmartImage.class.php";


    $resize = stripslashes($resize);
    $nome = stripslashes($nome);


    // Settings
    $src = "images/$nome";
    $waterMark = "images/smartimage.gif";
    $destination = "newimages/";

    // Start!
    $img = new SmartImage($src);
    // Resize and save to file
    $img->saveImage($destination."new01.jpg");

    // Put a Water Mark and save to file
    $img->addWaterMarkImage($waterMark);
    $img->saveImage($destination."new02.jpg");

    // save the image with 76% resolution in Jpeg
    $img->saveImage($destination."new03.jpg", 76);

    // output image
    $img->printImage();

    //convert and save it in gif and png and close the file
    $img->saveImage($destination."new04.gif");
    $img->saveImage($destination."new05.png");
    $img->close();

    ?>

  2. #2
    Dall'HTML in cui è contenuto.

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 © 2025 vBulletin Solutions, Inc. All rights reserved.