• 13-03-2008, 16:28:51
    #1
    Meraba Arkadaşlar Aşağıda verdiğim kod resme logoyu ekliyor ama benim istediğim logo yu resime ekleyip logosuz resmi logolu resim ile değiştirmesidir. php bilgim fazla yok sizden yardım bekliyorum tşkler
    ben bunu upload ederken kullanacağım
    aşağıdaki kodun demo adresi
    http://depo.agi82.net/load/load.php
    <?php
    // watermark.php
    // Path the the requested file
    $path = $_SERVER['DOCUMENT_ROOT'].$_SERVER['REQUEST_URI'];
    // Load the requested image
    $image = imagecreatefromstring(file_get_contents("resim.jpg"));
    $w = imagesx($image);
    $h = imagesy($image);
    // Load the watermark image
    $watermark = imagecreatefrompng('logo.png');
    $ww = imagesx($watermark);
    $wh = imagesy($watermark);
    // Merge watermark upon the original image
    imagecopy($image, $watermark, $w-$ww, $h-$wh, 0, 0, $ww, $wh);
    // Send the image
    header('Content-type: image/jpeg');
    imagejpeg($image);
    exit();
    ?>
  • 22-03-2008, 18:12:25
    #2
    imagejpeg($image,resim1.jpg);

    yaparsan yeni resim dosyası oluşturması lazım
  • 22-03-2008, 18:25:59
    #3
    Yapmıştım Ama Teşekkürler Yinede Sağol