Webmaster Forumu

Geri git   Webmaster Forumu > Webmaster Genel > Programlama > PHP

PHP PHP & PHP Hızlandırıcılar


Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)   eTicaret 
Alt 2007-11-04, 19:34
 
Üyelik tarihi: Mar 2006
Mesajlar: 2.193
Blog Entries: 2
eTicaret: %100/11
Rep Puanı: 1
Cagatay has a spectacular aura about
Unhappy resim üzerine yazı olayında editleme için yardım lütfen

arkadaşlar aşagıda mevcut resim üzerine yazı yazacak kodlarım var bununla yazdırıyorum eklenen resimlerin üzerine yazıyı ancak yapmak istediğim
küçük resimlerde resmin üst tarafına ortalı şekilde 10px ile yazı yazmak
büyük resimlerde resmin sağ alt köşesine 20px mavi renkte yazı ve pembe renkte gölgeli olacak şekilde yazı yazdırmak istiyorum.

cok denedim ama bozdum yapamadım, ilgilenirseniz memnun olurum

şurdan yararlanmak istedim ama editlerken bozdum heralde ki çalışmadı :s : http://www.forumex.net/asp-perl-php-...grafik-gd.html
PHP- Kodu:
<?php


ob_start
();
session_start();
include 
"data.php";
$array = array("ı" ,"ü" ,"ç" ,"ö" ,"İ" ,"Ü" ,"Ğ" ,"ğ" ,"Ö" ,"Ş" ," ");
$hedefim "upload/galeri".$dosya;
############################################################################
if ( empty($_POST[radiobutton])  ) {
echo 
"<script> alert('lütfen Katagorinizi Seçiniz'); history.back(1); </script>";
exit();

#####################################################
if (empty($_POST["sayac"])){
$sayac ;
} else {
$sayac $_POST["sayac"];
}
#############  Dosya Uzantisi Kontrol ediliyor ##################
$var 1;

while ( 
$var <= $sayac ) {
$kaynak $_FILES["dosya_$var"]["tmp_name"];  
$dosya str_replace(" ""_"$_FILES["dosya_$var"][name]); 
$dosya str_replace($array'-',$dosya);
if (
file_exists($hedefim)) {
    
$hmz substr(md5(uniqid(rand())),0,8);
    
$hedefim "upload/galeri/$hmz-".$dosya;
    
$dosya "$hmz-".$dosya;
}
$hedefim strtolower($hedefim);
move_uploaded_file($kaynak,$hedefim);
$xxx getimagesize($hedefim);
$buyuk_en=$xxx[0] ;
$buyuk_boy$xxx[1] -;
$resim substr($_FILES["dosya_$var"][type], strpos($_FILES["dosya_$var"][type],'/')+1);
   switch(
$resim) {
       case 
'jpeg':
       case 
'pjpeg':
       case 
'tiff';
           
$resim imagecreatefromjpeg($hedefim);
           break;
       case 
'png':
       case 
'x-png':
           
$resim imagecreatefrompng($hedefim);
             break;
       case 
'gif':
           
$resim imagecreatefromgif($hedefim);
           break;
       default:
           return 
FALSE;
           break;
   }
$beyaz imagecolorallocate($resim255,255,255);
$siyah imagecolorallocate($resim000); 
imagettftext($resim3005$buyuk_boy$beyaz"2.ttf""$_POST[yazi]"); 

imagejpeg($resim,$hedefim,100);

#################################################

    
$h "150";
    
$w "150";
    
$eni explode("."$hedefim);
    
$yeni "$eni[0]-thumb.$eni[1]";

    
$tbumof $yeni;
    
$thumbresim explode("/"$yeni);
    
$yeni "upload/ufak/$thumbresim[2]";

    
$im imagecreatetruecolor ($w$h);

    
$xxx getimagesize($hedefim);
    
imagecopyresampled($im$resim0000$w$h$xxx[0], $xxx[1]); 

    
imagejpeg($im$yeni100); 
    
imagedestroy($im); 
    
imagedestroy($resim);
        
#######################################################
$ekle mysql_query("insert into resimler ( `buyuk` , `kucuk` ,`kat` ) values ( '$hedefim' , '$yeni','$_POST[radiobutton]')");

$var++;
}

?>
__________________
Düzelebilmek için başvurduğum her tedavinin sonu koma!

Konu Cagatay tarafından (2007-11-04 Saat 19:38 ) değiştirilmiştir..
Alıntı ile Cevapla
Ucuz ürün ihaleleri
Cevapla


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler
Stil


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Yazı editleme hakkında jackal Forum Hakkında 1 2007-10-27 13:09
resim scripti olan varsa lütfen yardım biqq Script Satış-Sipariş 22 2006-10-27 05:30
Online Resim Editleme werci PHP 4 2006-02-20 18:54
resim üzerine yazı karaduman PHP 2 2002-12-11 17:51


Bütün Zaman Ayarları WEZ +2 olarak düzenlenmiştir. Şu Anki Saat: 01:57 .


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
iyinet
Hosting sponsor Netinternet Datacenter
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241