03-07-2006, 09:55
|
|
|
|
חבר מתאריך: 17.09.05
הודעות: 6,023
|
|
א. אין לי מושג למה התכוונת , מה זה Content-type מתאים ? איפה בדיוק הבעייה ?
ב. בתור משתמש ותיק אתה אמור לדעת שאפר לעשות לחצן ימני- הצג מקור ...
בכל מקרה ההנה הקוד :
קוד PHP:
<?php $url="http://fcp.web.lsrv.co.il/logo.jpg" $logo="http://fcp.web.lsrv.co.il/images/down.jpg";
function watermark($url,$logo){ $bwidth = imagesx($url); $bheight = imagesy($url); $lwidth = imagesx($logo); $lheight = imagesy($logo); $src_x = $bwidth - ($lwidth + 5); $src_y = $bheight - ($lheight + 5); ImageAlphaBlending($url, true); ImageCopy($url,$logo,$src_x,$src_y,0,0,$lwidth,$lh eight); } ?>
Usage: <?php //$current_image would be your image the watermark is overlayed onto. Make sure it's imagecreatefrom*** to work. watermark($current_image,$watermark_image); ?>
קבעתי בהתחלה שני משתנים - זה לא עזר
_____________________________________
|