Jump to content

[SOLVED] Help with a watermark


xalu
 Share

Recommended Posts

Hello,

 

I am trying to watermark an image by pasting a PNG (titled Banner2.png) onto a JPG. However, I am having a lot of trouble.

I am also watermarking the image with text after the image is watermarked with the image.

 

Here is what I have so far. The problem is the large3.jpg is not being created.

 

<?
// shrink image
   include('SimpleImage.php');
   $image = new SimpleImage();
   $image->load("/home/p24tnugh/public_html/modelprofiles/{$model}/large.jpg");
   $image->resize(250,300);
   $image->save("/home/p24tnugh/public_html/modelprofiles/{$model}/large2.jpg");
   
// watermark image with image

//Define
$watermark = @imagecreatefrompng('/home/p24tnugh/public_html/modelprofiles/Banner2.png');
$image = imagecreatefromjpeg("/home/p24tnugh/public_html/modelprofiles/{$model}/large2.jpg");
$DestinationFile = "/home/p24tnugh/public_html/modelprofiles/{$model}/large3.jpg";
//Function
function watermarkImageA ($SourceFile, $WaterMarkText, $DestinationFileA)  {
$width = ('250');
$height = ('300');
imagecopy($watermark, $image, 0, 0, 0, 0, 250, 300 );
imagejpeg($image);
// Saves File
   if ($DestinationFile<>'') {
      imagejpeg ($image_p, $DestinationFile, 100);
   } else {
      header('Content-Type: image/jpeg');
      imagejpeg($image_p, null, 100);
   };
   imagedestroy($image);
   imagedestroy($image_p);
};
//End watermark Image with image

// set definitions watermark with text
$SourceFile = "/home/p24tnugh/public_html/modelprofiles/{$model}/large3.jpg";
$DestinationFile = "/home/p24tnugh/public_html/modelprofiles/{$model}/largead.jpg";
$WaterMarkText = "Come Check Me Out At My website!!";
$WaterMarkText2 = "AdultPornMansion.com";
watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile);

// watermark with text
   function watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile) {
   list($width, $height) = getimagesize($SourceFile);
   $image_p = imagecreatetruecolor($width, $height);
   $image = imagecreatefromjpeg($SourceFile);  
   imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width, $height);
   $black = imagecolorallocate($image_p, 255, 255, 255);
   $font = 'arial.ttf';
   $font_size = 12;
   imagettftext($image_p, $font_size, 0, 3, 30, $black, $font, $WaterMarkText);
// Saves File
   if ($DestinationFile<>'') {
      imagejpeg ($image_p, $DestinationFile, 100);
   } else {
      header('Content-Type: image/jpeg');
      imagejpeg($image_p, null, 100);
   };
   imagedestroy($image);
   imagedestroy($image_p);
};


?> 

 

Thanks so much for any help

Link to comment
Share on other sites

Same errors I have been getting before...which are just being caused by the "watermark image with image " not creating the "large3.jpg" image.

 

Warning: getimagesize(/home/p24tnugh/public_html/modelprofiles/Ann/large3.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/p24tnugh/public_html/modelprofiles/watermark2.php on line 38

 

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/p24tnugh/public_html/modelprofiles/watermark2.php on line 39

 

Warning: imagecreatefromjpeg(/home/p24tnugh/public_html/modelprofiles/Ann/large3.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /home/p24tnugh/public_html/modelprofiles/watermark2.php on line 40

 

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/p24tnugh/public_html/modelprofiles/watermark2.php on line 41

 

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/p24tnugh/public_html/modelprofiles/watermark2.php on line 42

 

Warning: imagettftext() expects parameter 1 to be resource, boolean given in /home/p24tnugh/public_html/modelprofiles/watermark2.php on line 45

 

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/p24tnugh/public_html/modelprofiles/watermark2.php on line 48

 

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/p24tnugh/public_html/modelprofiles/watermark2.php on line 53

 

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/p24tnugh/public_html/modelprofiles/watermark2.php on line 54

Link to comment
Share on other sites

Sounds like your script can't find the file which is causing getimageresize. It fails and imagecreatetruecolor can't work either. It goes along the chain throwing up error after error until the end.

 

You might want to make sure that:

 

1) Your script has permission to access /home/p24tnugh/public_html/modelprofiles/Ann/large3.jpg

2) The file actually exists in that folder. Remember that most Linux hosts are VERY picky about case, so Ann is NOT the same as ann which is NOT the same as ANN which is not the same as AnN etc.

 

Double check that you have spelling and capitalisation correct and just double check that your folder has permission to be written to it.

 

Hope that helps!

Link to comment
Share on other sites

I just checked my code and I had a few mismatched labeling from all my changes.

Anyway now I am getting an out put of characters....I think may be the image.

 

 

This is the code I actually know is the problem. It's outputting weird characters

<?php
$watermark = @imagecreatefrompng('/home/p24tnugh/public_html/modelprofiles/Banner2.png');
$image = imagecreatefromjpeg("/home/p24tnugh/public_html/modelprofiles/{$model}/large2.jpg");
$DestinationFileA = "/home/p24tnugh/public_html/modelprofiles/{$model}/large3.jpg";
watermarkImageA ($image, $watermark, $DestinationFileA);
function watermarkImageA ($image, $watermark, $DestinationFileA)  {
$width = ('250');
$height = ('300');
imagecopy($watermark, $image, 0, 0, 0, 0, 250, 300 );
imagejpeg($image);
// Saves File
   if ($DestinationFileA<>'') {
      imagejpeg ($image, $DestinationFileA, 100);
   } else {
      header('Content-Type: image/jpeg');
      imagejpeg($image, null, 100);
   };
   imagedestroy($image);
}; ?> 

 

Heres whats outputting from the script.

 

ÿØÿà�JFIF������ÿþ�>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality ÿÛ�C� $.' ",#(7),01444'9=82<.342ÿÛ�C 2!!22222222222222222222222222222222222222222222222222ÿÀ�,�ú"�ÿÄ����������� ÿÄ�µ���}�!1AQa"q2‘¡#B±ÁRÑð$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ�������� ÿÄ�µ��w�!1AQaq"2B‘¡±Á #3RðbrÑ $4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚâãäåæçèéêòóôõö÷øùúÿÚ���?�êNr;�AíJ3×úSˆçœôÊ—ëK’÷žßÊ”Ïÿ�Z”{R…4žŸ8nP(ÛÏAO =�'×ò¥ÒJP=©€gÀüª­Á"h~§Š¸V¹–"G�Ó,™þªŽ,‰=½*ipNB‘LA”ñÚ²{š­PŽN >|¬ûúQ ÉÆ >Ü~ìäw¤cúÔù;ÓÒ¢UŒ~ìqÚ&|àsR9¦ ýèT®>´_ëWd–ÁçµAýòÕ’=©\‚GåQ>qÆ´“Œ|Ô¿ge3ŸÖ³©Z0WlÒå'b¼´*IíÅ’8?¥hÛÙ!„mК‚[FR8?¬á‹¥.£•§a±äÆ9íÞ…8~ ³ €l d:1%HϨ­Õh½™›ƒêE#³}ãŸ|W;â†eÒ—Ÿ½sÿ�ÇÅtN>S\¿ŒfŸf£øïàøõ]ɱÓ6í§ü*wš°Ã�ã¥Bïõ¡É%Nìr1YßðرÜCäóÖ´ÈàÔáFÑT$Ú9×a“Ø*UÓÏ$qØ*�èj‰Zv>”¸éJ̉÷˜îhm-ǾˆóŽHïO¢76ëÿ�-À©>Ûh½gSôæ¡Ô‡r•)ö'ÇJwn:US©ZãcôS@ÔíóÂÈ~‹Sí©®¥{ ŸÊ[�¯p¿<]>õ òäç§ËI$ÂR…c•²r(öôûЪ¾È÷Ø2íN2Î#Ê–5`åŒoùVN¬;—ìj%°ÙA Ô–ã÷'ëC)oàoÊŸ*„|çÒmàéO±ƒÛò«ùéQ>N~VÝML ùy š©ÔŸg.Äh§Í#Ž*2æ3¸ÆøíÛ5Yåšäàp£¨?>¦¦U¢Š=É‹ˆÙ[¹íNŠy%ç…ôãV,´Àã%Iõ8þ^•[W»ƒFŒyqªäŠâ©:¯VuSTÓå[šö±Fª†ÿ�zª_^Ò3Ÿ\sŠãÓP¿¾“Ìâ_LjGK˜¦ó„¤œc¯ZãtÜ÷:Õ;;šCY¾†]»[n};SßÄø dƒžN+> /eÎâzS¥Ey?{À䪞 '„‹Zåme¡±ñ\°%½Mn¬MZe*Gjò·Óî ¹Itû¬‚ÜFEz™o©Ë,ÒùC…þuPÂÊöG=esGB[›FŒ}ì×ã,Ÿìx¹;õ(°�ô5é±iê‹ÎX÷,rMek:µãÃ$°‡hIsò°ïÅzôyéÅsêq8ÆnÑz•XvÅD¹ Ç­9îP>ÉÆ÷ ÞJÖ3RØÊtå Ç‘òšœÁ¨ÏBEL­ò¥ic;œëgw°þTÆ@ òG®ò¥xª¥°¤žMgYÛɨ3\H V9A轪û h¤SÀe#4šEürÛ¬BÉîØQ\¸›èuá-v=4ØÆ�@*dÒPòV´ãŒš@ïÅqٜ4¨ç˜ÏÒ¦]61ÑåZaWñ ‘Ž*¹HseHôøð8{TËaþO󶎵š‚§%‡çOD“,8‡aNñp+"}qbçŽ=ë"ëÆ–Ðç|Ñ/±RæH&ÎÀ[Â?„R¬pr6­yÜß­#'lÊÇØý*ŒŸÔŸ–&>ý)©®Ãörîz‘Š×ø¶þ5Ïgü3Ö¼çGñ­æ¯ªGm%T’Y‰Î�®®Òo¦y$S庹ûÿ�ýj¾eØÎQqz²y-ßQ}ܬ_‘oþµM¤Pð»qØZÐŽÝÊ䔂£—ìöÈóÝ0X“ïSØTÉufNMè‰Å¥™™øô&¹[­Oϼ9!8ÆÐEO{>¯''Ë·v1Ú©Å6ïÝJÆRrgU*6W‘r;H¦pÛTaÅNºhfÉ�Ô¶ÎvdBÿ�÷Á«°$³r£ŠÓ’ûšórõ+d£÷ªré&0Äp=ë¢]:Š§¨1Ÿm¤|<Ÿxá^ÿ�ŸJ§bf™CÃd2Ë-ã€[qTvõ®Æ(•G¨iÖ«m¢ŒZkÒ·§#†¼ÛìTSFI©i’¸U5®ÈÁ^úιgZJØù€È>†¹ÝRóœ[Ì~pp ï[~'½Ø´Hs$§jã޸ء¾‡al—¹uçÐôæ¥ï«–§Q‘•ç­NÚ?Æ»O>Ç4Àîãü©G4­×§aü©Ãz²IŸ%¶úW¥ê gâi Ÿåœƒ]¸<Ž˜®3ÅÖúó+g#ŠÆ¼n®ta§i‘fâD ŒT“Z;/îåeoι¯k {dŒnž†»(˜0ëŠ×;^†­©Û€’¯±Úk2ãÄ2Ûq=¬ëŽ¤ÿ�*ì'„0qú× X|8Û³¸•AÞ¶­<¢Ã ne#»žµÒ©;œïosÊäñVìí&¹œGläú öÐô¸GÉan?à¯ÙXÄÈa‰¹UÝ+nÉúÊèŒoøf=>Ý¥‘ žAƒƒÛÒ½ÞÝP*…P1ŒUì¢ ‚ñØVŒCž§šI_C ÉÉÝ‹) qÏjãu»Á<©o¸lCœy«¨Õ®…µœ³2£îzW/™syæ98&³¯-RGF—7¼ú¢4{œü¿Îªë÷ï¢Z ­m<Ðdž?lÚ[æ�¦Iåh®"Fx ò)Òj/TmQÝ´™ÃY|LºiÚÝí$ó•Š”A¹³Œð1Ítz_‰W]B`‘¢™yÏCøÕ¨4‹[K¡ue‘8�'œŽ*$Óá³–Y …~Ñ)ùäŸÃ½tÔ”-î˜B½ÙÒYNÂÕÞë"î.;Š«`†iéÆ„=aT§–Qm ¡ ù„nú Ú¶M¨g~k Qå».Ä0*š¯¥´‰É-É€ª—R€‡š{¾*”íž´MÙNœ¾¬¾d3õtzW7¤ÜÇs««3±¹ zÖï‰.–ÞÎF$:šâ¼4$—UÈrÊn•Íi³^áêLALúŠ˜W@D Ú¬À®ëžmŽhðxôÊœ´$ƒùS³“Ò´3°Tõ;E¼²xÈÏtdö¥“WVvw<ËKÔ$Ð5c’±–æ½oIÔ–âÁÍyïŒ4LµÄ0G^:Š‡ÂZù‰–ÖI: î+‚K–G§NJq=‘X:Ôo}ê…ÒÌŠCEiš¥ffýÖPh¸#›yf£9®ãã¥Q™qŠå«I§Íµ9ßFbîÝÇB:Šd|Lµnâß-¸pÞµ]¼ÕÎ+Z8µ'ièÌjášÖhÚLÀîkFÞ±$Qõ?xÔPÀ$`IÂŽõ©m8ùOJÞnû%bhW&x©çCJq€3ÏéU3‰p£ÿ�ÕKª/™`èOßù IÙ ×g?ª^5Õ¬j!Æö÷ÏJ§ea‚dUØ Yå,1€p>•«¨QÚ°prw=TTãdI`¡Õr[xÈÜqQÇ)çäô®˜Å%c’nòº+È(òqèâ¨Gžá–I#ܼlFéZ$¬ä®A¨ëTo–!g+Çò2 õ¡ÅXÒ ìRQæê’AX¾E5» ;Ebhñ0ˆÉ<œúÖêVq ¾„èy©;Tjp)I$fµLåhd¦³î_j“VäjÁÕnÄ19ÏœÙÓJ78Ï]5Ã¥¬<³õ®øOGkpQ†'ž+N'Rפœ‚UNkÐm Pj)E=G‰©eȉÈã©ÀàsQsƒÅX¶–º¬pœÓ˜}ò zÒ’7qè?•( ô«3¸”à8¤Æ=)GN”�É­Òæ× Œ`×–øƒI—FÔ|ØÁU-•aØ׬ ¡«éqj–›VUió+›QªàÌo x“í!í•:ŠôkK¥‘G5óýͽև©ŒeÔW£øoÄ+y6îz0þé®[ò³ºII]‘à ­$\ž*½¥òȶdB…‰àu5M©#œY›P¼/zä<_©-âê[÷W2eS¼Ÿ-9_ͺL1V%·ÄG~µ‹¡ÜÉvÁÏ@1šÙº»òþ\géS5vnÓ‹±™5ŠÌ»[íƒÍUU’Ê@’.~Yo­kËî£#÷ªë¦4§¡‡¡Õ$öª­©§azŽFÀäZ±9UBU±õ5žš41.â Ï-ŒTR̃ÄZO¡ãÿ�¯[:Ž*ÌÅ(·t%åòE R68KM&f’F?31«É§ýä˜$rj†Ú?&âEÿ�k­f›nìѵk"ê¦ÚwAO�2ÐTãÕ1-„Š¯; LÃh㚥rçi57-#Ö$ 0íÍpš\M7Ä[ã!£rÒ»=RL#’x®[ÃÎ&ø—d£îÇi!ýjèÇVV%Ú™ëb�vEÚ7LS–&ºÖǘÉص0< ªÇƒS;E;Î7Þ÷ÀþTÍ!ûÀõàsøS‡­Q©Ã¯¥4S‡­�:œ)£×µ=@Ï9Çz`(§uÅ!ÇA¤8•£mk¸‰§`pÍÝèt«õÒßåŽ+BTÛ´ø¢ô’'˜ŠYÝØÓ"Ú[bA<×®@ofU€î–FÃ7®kwÄ÷..a·Bv¢î`;šÍ°ýÔ‚y†éz"Žƒÿ�¯XÔwjŽÌ<´îli–1éz|pñ>cS„VK'Ê™ùr9?Aýj)$'i|nêôÔû «5ñ-”~Šf Rœ`fܤÍÕöÀØ“Ï&-ÌvèB€µbCyå@ÄÉÀɤmóJØî<•ôô{}43öZê>f¸½—%=; ¹gdªÄŽHïLŽPß»Œ�£©ëRÚ0¨8¥N*r»*R厰*r;VaƒœrNsë[3ôªÒÇ“]3‰9cÊœT¤zô¦0)&{˜à¥dŠÎ@ëY—oÁô­ Î3Xz„»Aæ¢æð9ÝY2+™ðC ¾%»n%«>¢®x—Qû5¤¬9p¤€+ŸøC+\øÆêWl·ÙØþdWMèÛ2ÆOÝQ=ÄŸJ­5›¨¾lw­nqXàŠ˜ÅWcÖ¬àQp9“Áèr�ãð¥ ǧ֣cóÜþÔ¡B3Z2 wSÁ&¢ã xoJX“$v§†è* ÀSÐ`ª»˜ô®$Ü�Ï¥>8Ô|ò ç‚œöå\DZS÷€þSEhdl„årUªÞ‘6„ì±f†s¼®<ZÙŠ#¸g¯ ªÊc·p9è UÈñ{Û†oZ•aÉé Û‰v.ÑÀïQDåU¦—å‰ï@ŒÏ)f? MakZª00D؉:‘üU.V¼™P‡7ºŠ7÷?i¼y ž3ØRÁ“Hª£�óÓš«oÜI’¼º¾µÐø–ÚïuVQXÇ»:êO•(!eŽ+h3.^CÆ+1¢c&ö 6>U사BÁ¸—çs÷sÐûý2C¸’2Aî:šÊnìÎ*Âù‚FyÎ¥…oUl’pÌyÉô¤Š?-^B0yþ”¶ë„=î泓w±~eûH0zñZñƒŠ©l˜}êúrwБÉVZ‰ŠŠEæ§*he¾õÓc"„Ñn¦íÂâ­2Œb«ÈBŠÍ£¢2¹•|ÁA®KU»T‰‹¶�Ÿ¥okwÑÄ–•ç\sUkC7—lŠ^WÇ` ÇãŠÆêçlJæ¹4“Ø]\l!v¤úzÒ|B|QxÜãìßÖ®ë1ð®£qÝíxè3U¾ÈǨ?ãÜ:ë£ð³‡ï4{YScàœ{àÍ26ÆjŒ‡±8éSÀâ fÏ5dIÀàQp9bÜçØ*})¬C70?•*’ Y”rðj0pzÓ‹m]ÄŒR`L¨ËÕtoy#2}ÒÃú{Vr^¤,1ƈu5aÝ­áÝ#6BJ¯¥rW«uS§Õš0,a‚ò–cëZ&H­b,ÍÀûÇÔûVu“l…BüÌÜÖ„žk,“}Õ9PzzÅ7m ,–ã­#iˆ»œmQ÷öýòÝÜm\¬kIq#Ë„Lc ©guÓtâÙùÈÀÏ­RŽ‚µµê̽sU[x´ Èûì?•s–±=ˉ$$©?"zÕK˃qxbbMu:MšÀ‰3Œ9t¿áQ¬ÝÙÒíJ[—--#°·óçÛæã…ì*›o¸”ÜÜgnx_éW^á÷¹ØR<;Ý/+úTNòסŠó ÃÈŒÌp:gú UB±d€qÏÓüúTÌ:&Ö:ûÑ3’¥v€ƒ°¨z+²ÕØØ¢/i†8i'éÚ§™p>è§[2²äƒœ`U…\’qŠ#Ù’Ý´%!qëW¥CŒ Ÿ¦+¾œlŽY»Ši¤Ò1=©¤Ö¤¤5Ï™r°ÆN{Uéœ*žk×µ�ŠÀƬ¬´:¨A¶qþ-ÕˆFD$»  ÂÓ;r"Ýû×?3{4·R5ö²ÞH†âG­Km]EX‘Æ1ï\ÞG{i+¼ce2øâÞÞ2òHP`wæ±þé÷Vš®¥%Ä-˜”{ó]‡ˆuTÒôX§x–a¹Wiüj/kqëÝl¶ÀÎsšôaofy/Ï©Ù³Dgƒš‹ S£aõ°öl ˜?§åP1Îp*`8ÌnÁöÊœ¬zb¡'‘ƒØ*rŸJØ‚uo_åP]H~EUÜIéëéO�ç"«ÀÈ÷o<„AµTzÔTv‰QZ—|¯±[Å$€_,Ì{éUíçmJé¤vcž C­^‹‹n«¶3ªävîjÕ™Ž!HÀ Ùcê~¿Î¼É;³²Ðé슪àÉ>µmî£jðµ›làB ;W:o½Àã°ªL\½M(ŠBžcc$p+žñ&¦VÝ‹£�VÅÆÔù›Þ¸]^èjÄ6ÁÎÌḢRoCJTÒ|ÌÑð嘘µìùò÷àïžÀZí#@NÀO?<‡ÐzW5jp?r„¤,(:Ÿç޺ňÅb2¸‘ÀÍi‡C͹]‘G f$‹R`súÔ+A»‘Ó5fÜÄ›¾ö2~´Ônˆ½ˆÝv¡�|Ç©ª¦Ü°�”}êܱ±8éS¬_ Ï\VR‡3+›”ŠÚ ƒëRýÑŽù©BãŽi̇=zÖ0±›•Ù,_v¤'åÍGùI§ùk¢;=X™ã4ÆaŠcI·8ªÓ\RAJV.0+j7B(Ûšòÿ�ë+òynÕÒx—ZKxï�דÉtúù•¹E|.{šå”®îz4¡Ê®khRIÔùïó9ÅmÛÚ«È®ºã5™gdðÞy„cpÍu61jFKbŠ\²fu[Z¡Ú†‹g®éqZÝI: !ÁLŸÊ› h~yÍ´³H';ÀãJÚƒ�,8â¤Â·\ôV±ç;Þã Òѹö§Çwž¸ü(؇µ …n(䈹¤J×Q±?=YÅ´|ãóªB°-“ŽH‚”»éb}ò§dc­C»,9ÀþTàæyª¹DÎqzb±¬ƒKv"'€rlaZ7ß’�è;ÕÙ4ÛëÇ7*=«“äiL©¨0}FVI7| ojžÛQ_98b€{W;ΖØÿ�–ŒsŸJÌ»ºžÚäI¼îN1ê+‹–çt,z´z‚²Ÿ•GÝÍ\†àÇX€íÉ•çÚf¨Óv9\p­oEvÒœ’O½%½Q¡¨ê-°ªžk“´‘Ž°ÎO$õ­¦ý쌧ñ¬]­o~[)¡•#Ðü7Ÿ:–8TäûúW^øyc ä<;&ËHdþ)71¸àZèEúŒÎºéÉ(Ùžudå=SB%À<®iê>ÔÄ“ru÷¦—ÆrkM7Fi7 H¹”Ò¦àñ튬-šp—$�yÏ5)®£i–@¨dûûW§sOi‚†$à ª× \{šwBŠeÄb ’uÉç¥E4Û+*I¤f%GÊÝé¹Ø¥ K³Ý„ÉÝÚ¹í_ZKx˜ïÆA¨ê~YqœÅy׈µ;‹é–Ú"Av­sÎWge:i+²ž©yuâóò`·j½¦iivိ½:ÊÞÎ;[]™¿9ÉïYº«ÜÛÎë*¤ôÇZÆmìZ•Ý‘³:¤+mŒ`’=ëFÁ:\µœ¯#¡œãœ×O¥È¡ŠwëZÑF5tGDŠ¸ååN1DO()ˆÛ†iÛ«ÐG@`Œÿ� g°?.y¥˜¬3ìèz3Un0>vüª,Õ Ü wâH=ð?•9d9Á?J„°sØ*]ÔN×!&ì3ŸÒ¥´û>£¦\ÂÙÂ8fQÔ­cÝ°FWìÓ¼-pòjÌ£dVR}±\u^¦°F}ãBˆæ%òÃòŽÃµsÚ¦e ·$Ž ïŠ××%Hµ T?SXË9˜„àãõ¬"ºP¾†ž› ª9Ç¥u¶‰åÁÍdé¶Â$­vl�½ë6îô:º³fñ½éf±ódluõ¨-Û$â·m1É8Í+².B žŸj3È‹ÿ�¯E½Ä’«¶ãr[o5P0>„TÖ†&S÷—•?ZÒKS•w7-n1j¤œnîM$ט|nšË!Ú§&@ZŠãsL Î[*å?vÈQŽ¦‡Û°›¹<Ô‰tÝxQŒóYF)6§N)%>\Oó3 eÌ_*±¬÷köpòäî8ôªs^¸@çå�U{yHå†sÀÐ.ížI9U92csbióøt¨L€Y<‡¬už×r ÇZQp†Ö}Í·¡õ«RMØ\½NSU¹U‰l�3“\•Š-ÕÓ^HA ÅTzc’¥Oâ-Ct¦Þ,r1Þ›¸‚ÒÞÙH$w'œÖMÛVußKp^<¥°3×ëŠÛ³µ¶ÔLW.ÆAÍ鲈ä]äþX©4­_Éànb=*o}Ìœ_Bg·æFN�cLf´t¶ÿ�IË‚+6ÒV›*ÝWŠÑ³lL¨�Êä“]4¬EM¬tÊF <;Ôž8©û±ß5Ú¶8‰sÍ.G­E»Ö€ÞƘn«A¸KvEYÍ0±ÁîË{åNÝéøÕO5C“À½©âE�ÝjoØ:”µJ�[N>‚™gs$%ã·ùÝÌsÚ™ªm*0èxÍQk'O¡aßA\Õ7†¨Ï»”LË#1fÁ'œóšŠòî`V€O5�VR1“S_Ÿ&{iñYòètÁÙœà¨5¢¿7Jæ4»Î£=k¥€î9æ¹öfÒlŸ&·¬äÜ¿-`̤qWôÉ°ûs@Zèì”fTÁÿ�–küªm‹”|ųU­œH#bÝPʯ ƒqZÅ]œ’Ñ­°IHÛÉ;²il‹&üe±À÷«y ¸ã“ÎhUÝ(cÚ©Å ICk¶»½S¸µÊcŽô­œp@ªnC–ÆZN h M™æ×cq‘EÔJ¨<ŠÐ•TÛFøç8¬«—-‘‘òö©’±Pw*5Ð@ÞF{Šå|A«´08ñ¼t¥\Õ¯|—“ òœ;àµûç‘•€Š„îo%©^7ms»#gµlǼF¥~f+ÔvRd··ù~ëà/zÓÒœL¤aã§zRÔm“YÛ»¤Žƒœ‚²çtþÓ„Â8dv­»{‰qƒ©ƒô= cAeŽá‡îÝð=êu}N‰ kiIaÄŸ5\´Ïž==* Bè\j‰Ê¢í«ömù­vRZÕ–¦²±+N ïQ¥Ýë]Hæ&-@aøÔ;½Å&üšXÝÁ«†ÑT‹qŠ´`sLgœ a†çÔ›ÛÎO½y¢j—ñà­Ü¿BÄÕ¨üI©'b·ûÊ+>h—ì™Ùj .#1€ŽKzûVD³ cò¯_Ʋϊ¯eZŽ{àŠµíèD–ã'¸4›‹êiÉ1ÙùQ)Yüß•C¯"¥¼¯’­“Ç­C§øŽËˆßaô¦jú¥Õ®Ød;÷”Š†»›L½£M™ô®ÚÒ@Á}«Îôis´MwV2‚s\³VgZzÏìóÚ¢ˆ43*d!‡^iÛ99¬ÙHÜÓ¯@@§>ÞÕµâI/�×! òñ×±gw±˜“–페«ƒ±H_c¦s¶2qÇJdl@Î*šÝ“5(ŸŒÖœÆ6±m¤ª Gqž¾ôžhõ¬ë‹½Ó9à`Rä8Ä»4ãìÊ3˜œÇš}ªy<tw "nn6äUÇ žõ2•Í!Öµ.ZUÛ×¾y®òDŸRÁ!R!Ûšê<äã5Ö[©Ò¹=<@‚­ÍuHØAÓ5ÙIYµ7,oçŠPàžõïSK¸“[\ÆÄ彨Îj ØÏÙ8§p'zÕÃÖ¨‡«`ü£‘Jácç,7ñéŠP)r>lñùR€Â¹ŽË WsQ•<ô§OZi\wÅ8�b›"nfœTN�z­} ±´ÏJï´ý¸ÎïóÍyÆ’Z69ëšï4©÷¨9¬ê­M)»Äè¢Èç<-³¦sQ*Œà✇iëIsRÞR[æ?hsšÅŠ@9«±Ì6õâ­J%Çc°ã=*£ÄV0›Ž•*Iǵ#8^sùÐÕÉEvO*2£¦+ùÙ²G§&´î¯í£yÑO¦kŸ½Ö4ðû@'¸-=‘´<ÎGÄÓJBƒÉ¬åÓŠÛŒ:ÖýÅ턯–“ƒÐÕK›¥Ï—o€£¾:ÒN[ Q±Î¼Ì’Ÿ3ÁêjÃȲ®ñÀp­)ô¸5B6«?UŸŸýßoÿ�Us·2<3D$)hô­ïuc½ú‘[Êznè:Š˜¶ù£UÝósLWUE#>[�Üõ`ÞiðÌŠò�r"„¯¡2÷UͨîšÒ¬‘îCÿ�-8°nüw­Å9V[xãÎD3üÍh]êv©ndŠh¦Àw"©ÜÏ jÀ²i}|¾×¢v8§m¤ìiøÇ]\¥®¡ç(F} C㬵 ¹}Þ9Ê…üZá.\-ÞÛo—kƒÏ«OJ·3o¾ºÌ»hÝߊ|ö0æ[\Í“XÔ¦“Þ]8<æ¶?néž:Ö,¶˜\F8Û0Ï^µyqR´pƈs’Àrj”+á¸=j›ÔÁK]ë¶^;Ò&´óne6òt1[ù º¼ÕV¼½™²¸ŒÁ'Š\…s#Ц×--ò<ÀÌ2p½ê”¾0bŸè°‚G9jáÐÉÕˆfì}*eR ù‡¿½>Tƒs£—ÅšŒÀ;nzl¬ùµû†ËÍ#g…äÖxr¹É©$¼#hT�“ƒNÀ<îKHY»’Ô¿a–r M@/$9#Žp*©‘Û’:,Á²Ù[H¥›sHnsñª¥0ú“FyéšiÉÛ1È#¨5&¦ñ1[÷\ùÊ í†î*©ä7=)Êò7´$)$4Y?ÅéøÓ²ÚµÄm*‚`{ ¯sl³Ç¸0è}*ݶèÕ£a‚8üi„„¸Ï5ÈÕY«3 Ã&cl©÷¤K’§Î:V½ËCq•(_1xG=qõ¬”¶3L°ð2z·AZ-w8±y}m¯")*+H…søVn«ZÝl„oþXõ¥h`´’ßȆ~vlóǧ§ZïVšÉöä›UÀõ†…sÍåå‘R)Êm˜(2«‚?*¨æRå‹ÏR*hg÷) o3Œ¸éjè´ÝGÃ`j²Ovxeƒ°9­ã7kÚÔ¶:´q…/È Ð× ¯ð }ð?½^}{5³_‰¬mÖ÷C1lûóVÄãhÌ‹Ÿ¥K¿CzR„U™XdTŠ€ýìgëIDZ£`ïÓÚ³¹Ü/–)¦#ØÒ€3KÓîµDf6õ¤(I�J”—=ÁÇ­E!$r¼Š´º`€t>µ©¦ÜÀ!XË‘›ÅOëùÖ8ÞûL‡jç¯z¿k2IŽqÿ�êëZt0Z3vK”òüב°«Ôž?\ÖdÚ™”áSÌýi›¤¸QîUHÝð>¤úUt\¶ÒȧûÄñR’/™ô--ñ� ¸b;½ù 1ÅfyYÉiTp�ç5RO=M "£7ÔÓW<iÍ6[<ô¬ãrXÇíA˜‚~`@î;Ôò–¤^7,N)F8äsTĹP0FG<õ©Dà §9éE;–·\ÿ�…=¸\î÷â«,Ï#­ #éÚ•‡tYfÉÏ?­3wÍÁ¨ƒÈåìM_^?,+’)#’xWÔPç2�Æ ÆsQ$õÂã4à ÆÑÏ=©Øw4³ö˜ÌÊ@‘~øëŸz®A`ß79ïUÅÇ’ÙB@úõ•fXÒ7V‰Ä‘H¡•±Ž{ŒTبÈλ#m'#š‰äh)Ðí9¦®Hýß0‚}*5· [¶ƒè ²¸¥m‰àðôzíлµ+dýà,J¹õÛó©î~ë/óFö“m9P²`ãñ´¼<æòŽ>Sù×ke?l⺣e{žUEi4Ï!›áç‰ÃJœì»¾òȧΦ·ð&¼M7lcïeãõ¯kIÙeîK(?Z¥<ß-jéy™?©øNûO·k™¶ù`ýÔm̾þ•Y-íÌj|ù: ïÆ%•OŽj…% ÚdV$Œt¿ýj”Û¼h䃞‹Ö¡Üc—åàméÛ­_Œy›]‰-¹»ú*f‘Õ\§äÌJ1ü)£qê¦*Ü“Iò€ÄÆ*%šMÇæ?3�}Å�™?'¡óý)Ûðsœðzf¬2«.â ž{S^(ÌlJŒ®�¢å$F²äç�zSÌ™\|¸õ§hÎz¡¦•GéEɹïòö5 åNAúÔCªý*@I“Ò†1Š\p*''Ÿ›=ªIŽ†¡eÐ÷[¸9ö5fÒèÆÞT™ÚÇ “÷O­S*1HªX’I¦Òz¤_º˜™cç)Æð?úÔB†3—F-÷ŽàGJ#@€¨±c×ó«7h"…öŸ¼ÁN@äVRzXÚž®å›+ ŽRæ<àf»-6úÞTeB{óƒ\l¤Ä°²pcÆßjêt§[ÛEiቺüë£ 'fŽl\2gB’!µ|8Îá›ØûÖuÔñ¨;¤QÇRÀU¸´‹ m›d žÙµ›w§Y m¶Ñþ#?κ9ú|§¯ßGrþLMæs†+ÈBª6—·÷…C©ÎÒjÂcS¨ÅI·ÜþuÍVNç]8ÙÿÙ

Sounds like your script can't find the file which is causing getimageresize. It fails and imagecreatetruecolor can't work either. It goes along the chain throwing up error after error until the end.

 

You might want to make sure that:

 

1) Your script has permission to access /home/p24tnugh/public_html/modelprofiles/Ann/large3.jpg

2) The file actually exists in that folder. Remember that most Linux hosts are VERY picky about case, so Ann is NOT the same as ann which is NOT the same as ANN which is not the same as AnN etc.

 

Double check that you have spelling and capitalisation correct and just double check that your folder has permission to be written to it.

 

Hope that helps!

 

The issue is the part of the script that creates large3.jpg. That is why I am trying to figure out how to get working. Once that works the second part of the final part of the script works fine.

 

Thanks for the suggestions. Anyone else know whats going on here.

 

The script is now creating large3.jpg....however it doesn't have the PNG image pasted onto it like I want.

Link to comment
Share on other sites

The script is working. It is pasting the image onto the other image saving it and then everything goes fine. The only problem is I am still getting the characters output on my page.'

 

ÿØÿà�JFIF������ÿþ�>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality ÿÛ�C� $.' ",#(7),01444'9=82<.342ÿÛ�C 2!!22222222222222222222222222222222222222222222222222ÿÀ�,�ú"�ÿÄ����������� ÿÄ�µ���}�!1AQa"q2‘¡#B±ÁRÑð$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ�������� ÿÄ�µ��w�!1AQaq"2B‘¡±Á #3RðbrÑ $4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚâãäåæçèéêòóôõö÷øùúÿÚ���?�ñÌ|¢” {/È)�¬™´E—Ó€ š³fñ=wÂÀ¿†4õŸÝ“£Ö’(ÙömëÍRðH á«/Ý0·͟½óÛšcóJ©çð˜™[5æÿ�3éèÔ´b¼Žní>03øÖUÌX¸5ÑÝFO)×?.~œÖUÌD1Rìõ­èÔ;£-vŒ�ŽIª®œô«²dž€Ußæêkº, §ü*¹=+Aâ\gp'8ÅU•�†£ÛéS2þìŸz`®¶xñô¥Æ Š^­PÍ¢zÿ�ƒ&á{@\¼1ÿ�5·$ÙcŒž8Û\Ÿ„n6x~ÝHè[œûšÝ{ƒÙ±íŠølU?ö‰ú³êhÂôâüùʪ“Ÿ˜õ¬‹’wƒžõaäR2Ø$tªWÇËž9ëN”ZgTUŒçÛŽ¼Õ<îŒUÙ@ žõU‡_^ÕèAèSdN˜»V5ÝÆ2ª~QÔÕëûªcžü×'ª^–cn‡â#ùW£…¢æÎ,N&4 äÊ÷×æRÑÄ~^çÖ³O5&3ÒEˆÏJö¡d|¥jÓ­>i-ÐT‚Ù›ŒÖŒ|²ã¢µ­´@$þ”¥Q!F”™Ë›g©>ÎÅw`⻕ÐW¡>§m6] vÍJ®ŠxyOÙÛÐ惜ó]úLÑ”ãéTÞÉÕÈ*yïVª&C¤ÑŠÑ²œB±CÇÿ�®´'´xÆYzU"‡=*“MgmXIÇË"ô\üµuìDJ&S¹s÷{ŠÀ³™á˜88À®†Îç+¶F$žA¬d¹Y²“‘kM¸h. 0%éꦭ_F›|Ø'Õ°i“Aæà F\äCg\’ÿ�Z†ÐZú•|á GÎAË©9§u¨ÛÜF­ìÅe ö·Lãrôœöe]e·¸"‡f%€‡–E÷{²HôÅfßNn.@p>•³R-Œ§�õ‰r¬%ed*è©–ÇEsÍ7Š”­7¥3±¢Ëq?Þ¨À«¿èÿ�AüuÖÏ!¶“4ê1PÍbw¾›f‰œ·ó­‡¹¸5Ïh.«¤B2sótúÖb[®~•ò˜šiÕ“ógØá£û˜ú"Ü“e85ZY7õoZ…ßûÔe˜ãÓÖ¢0±³BJÅ›žÝªÔ¢8ÉÍNì9Ë~U}>[`< ë¥fe6eê7f(™óóž•ÍõÎ~ñäš¹©\›‹¢ üŠqUÑ70P2O¥}Ÿ$”Çâ=µ[-G ~?:ÜÒôÑ1¯ÒªGMª0XœqÜ×]£Ø"Rãæ5U%daJdöšB¨ŒÖ´!F01ì*ä0¢­GÆÝÎÄV[O—RAÝF~•£Š”Æ1J㱋%„eNP`ûVdú,/ü8ÇN+©xò1PInéNöSˆ¾Ò#9îkÔ´ñ’¸Åz½Õ·ÊFr:æš61µiNvfS‚’8•aí[úqIâV=z­bOFäZÓÐ.+­Ž¡‘†5Õ-QÇŽŽxåád ³Ë­K§‚5ó‡ßQ o²( YwöÏ*ˆÓ=«š]ѪÕY‰l·Ž^0ϱª±æÆC™ëó~=­ØK¶ìÆç*ÝEX¾µùã›”qϧ¥8°zh"Ú·%HhÈäV&¥n¦ôF„¨?wØ×IÔ\ý“µ†acÜz}E:ûHŠå×!±•íƒíUaF\¬áÚ&FÚø™²´ïàxà"`z‘Ö³síXÉYž¥)sFå™Gú7åU½êìãÇðþuLwÉ®ÓƈPzRž) ©f±; âOg¡<~5~II 1“Ó"²4Y¶iŠžŒjðbr{v¯š¯íe~ç×á¥z1^H‘‹�}jÜ“CHG¡ËSš¹­±¹Ûû. ?1éõ­‹éÀžµÊêòáü°z ôpt¹¥©Á«ìè¹u2“ærÝk_O€`ÈÄn#=½ë. =ÍoiQ5ÌyÞ½‰;#墮Í}#MFo´H9Çʾ•ÐBXd…QÜÓ쬉ŒÀ­j[ØA‡uÞæê✮wB#b¹ˆ�à{ŠÔ¶U˜~íÑþ‡4øe¶û²˜À˜Twze»?™#|ã1¶* ëbâ[¶y)ÍSU,î.íÛ˸a,}Ÿ¡ükP�ã>´Xw*¨e«íÅW’,‚h2å^+R€:ŠèfBN+&íA¶(DÈófÔErÊ{çh6Ê­ø××å|@õªV°üì1AÅwGá8gñ•ì’Z¤(x¯““Zñ»4•rËÏNÕÎ[´™'*q{×P²˜í»r$Û´tÈ9¬$QÎc»�Îáš°nØ<‰#åO8§]Ú“˜¼Gž¾•Qâ.« ä}Ãõ¡-sR[¿Ó–HÏÏÈ#®*ŵӾ— ”åá;_=½ fé7¦ÕÚ={UÇo&W–õr)Y=ÁªOC6µ2¯KËW,I‹¢ƒßÞ¹îk«i"žƒ�Ó¥sínwjlî¡QE4M2ÿ�£°?çš hËÊ·¿­QaÉ®£ÏŽÃ(ÆM.i�楚Dè´ž,Aÿ�häVˆÎÜv5•¤¾-6ãø5¦óø…ûÉzŸU‡v£@ä“ŠoÊÄä·†žyÆŒ.2{“ŠÉ3&þ_œ¨^ó\óù—'ŒàbºÉ6´„:ó\Û–iz’kÛÁBÊ牚Ôo–ó(®ÛÃvºz±â¸ØS3qÛ&½Ã¨Ú :]Ÿºyô#vu–P¬q)nãg…Ä@«ÃÕ5°E]dt⸵;yt<Ç[ÓoEºyip÷*ä´…ÉÈþBµ¼)¢¶ÜÍ+m ˆ v#þ< 줄ŒuªO¦Ã)æ$Ç_»ZÆ®–f2¢ž¤¶—+s8ä5kF¿»¬xmÖÕBF6 9µ`–ù=k#[h2æ}ƒ­fK=Ô¤ˆœô¨ï.‹îeV`p:šåüA¬ßØhØ`•þðÿ� ѹ¸3Úù©Ê2æ‰EÅ„d¤y†©)}NS؞ܕØHi'·Š9ÁaT{ã¥Ginn,ÕR ÿ�?•hX:AÁ3äîg_zšôÄÈêÁ÷/>õž,«oûꛉ¤%¡¹ Ì2õžzšÒ~b›žÕ›ƒ·=«cš#Hæ’œzf˜MIª6ô‚¦ÙÃzþU §p÷¬­0ÿ�£·ûßҴцÓÍxx…ûÆ}Nø1~D ñÖ«]1’yÅHO^p*¥ãÃVP¼m«0õ 6ÅÏsYL7Hª�«Bðîp¹8ª¨£Ívè2?­{Øuh3˜Oš³]‡Ù@YÜ‘ÏJï<>1n˜í\Ž™°+1?ÇŠí4HñÔêìg‡ÒGYf3ŠÚŠ-ËXÖ'§¨­¸äÂWÞÙņæšû À¥š^Ëɬ뉥2ÔghËR±,G`[9¤™¶Å€zÕhD³Î@B0jKøÞÓBkABXç,štr}ø•»ò*å‚,‘†ôâ­¼xçµW9¹ô;V�, ¸ïŠ«<g‹hÀqÒºIŽ+׮㵳–V#…&ª)¶LÕ•Ï%¾�_Íßæ?ÎjG?BÍæÊ_©f«q&|µé¸}9?á]ç›Ôô=Æ@'o&ª_G:\ƒyflcúÕÍ "tô`>ê/O¥X½'g˜�.Ÿ0÷®^ozƶЯmú†7^QÇ ©íïY÷ÒÛLx‘|͹* ]´É³½ê¬!w�©ÐVlPi×m Hs!9óPtÇ­]ˆF<ï%³ïŽBÊNNM’Í7Ú2g§š0üi·–‚Ù÷¼²4[Éb:àzWU¦[-Ôbæ{¨AܱùRnÛ¶ç-s¦ÞÉ"3"¢¿ñ€­ðÏÿ�=þýŠî.cÛ*ycÎUç{t‡v×¥>f$×cuùgû™ý+4}ÊØuÌ=R±Æ6ã=ks(ŒÆsHEJ£ƒQž´™ª5tœyL[¦êºì«ííT4¯õr{WœÔ׋ˆ_½g×`c|céT.ß$VؾõNèzTÒ¹¼Õ‘•9̸'¥VA·ñ©¦9¹À<ô©Q2îNpkÛ¦­|f&\Õ¤üÇ@L—¶çx¯Bðò‰-Q‡q\EÄ@[#(Á�¨Ïÿ�Zº¿^,¶»3ʱ­gYhU©ØÁV⬼Ž ZŽ&éI{¸!)÷±Þ¸®v–b‘“Éõ¨®;™ˆ'ïÞ±í.¯¤fU%eÉ![>]XÛ.­g€žFåëUf4®ì\ŠYlî2ÛÈêËË—»`¥NÜöÓF³hñçÎ\ÐœlwQÈ2¬µMn_±$ôÉÎ=+A¤kœ±¦–ä¢ri_PMX/æ¤æ¼ÃÆÚ¾í¶Q¶IùŸéØWU®jÂÚÎI˜á@ãÜúW–NÒÞݼ’d»Ÿoj飬åÄUÓ•ÙÛ<‘«cŽ¤þ5± ‘n p?õ§CÛé‚Lá+ùõédo.Ñáˆ\~yÏë]'×ø2õ`‚9@Ä2·qéùVþ­gwíNûyTûƼ÷@»Ø„1!Y¸?çé]î›4w0ˆ˜’Lö®9/y£n—3 ¶X!ºˆ¯D%sÜŽÒÞ’G@�DçJÓÕ,Ýc;8uS‚;J·y¤°º“sDIÚŸjЃYMð`U]úM5Ť‘¢C¸±”Œ°ÏµjÏlg¾†3©–5›·Ì9$“Œt•¢m©ÉE›“kV~Xf¹iñÆиªÿ�ð‘Ùÿ�χè?ƹǨ¨¶¿¡ü«hÙÒ°ÑFÙ30þíbcšÝÌ�L}ï­wž\FçÒ˜x4½È €GZLÙšB–Ž_b*ó(éT´lìœ�qýkATç‘Íx¸—ûÙa—k†õÔ…ð½«6ä‚äþU¯"d}ÚƼCžÔQÕš×v‹fJ‚÷DŒýî*ý°So#ž½½²j­¹]å°qŒtíZ6j<—Èê@\׺•‘ñäÙfh‡§%õGÃÚ™Ó5“äC!Á>‡Ö´¯,JrpœïœÖ‡ìúÂH?7OQJI5aAÙÜö;iĈ¤*ìœ =k“ÓåkH‘”–¶n‡º{jém§Yãæ¼ùFÇ£ \˺ŽKi<äÝ°œœu´-|BóÚÉÕ’Ý!]¥”ghúUÃo¹qŒƒëY“i7/hÉê þâΈºrVš/‡ž L™àß/<ÖN¤té®tô–1žX±çéÍ\¸´½—�Ê€Ž›e¤,3‰dbÍê{U6T㪓l½§Z3327ÒÝJ­œœ"òM:êí Œ€ÀrMy¯‰üVn7Yعòú<ƒ¿°¥N›“9*UQD)×þÝvÖöïþÿ�…`ÚÉ™$väãúÕ2Y¶$­wF<ªÈᔜٸò°Ž0xÈ Ò›&"ŒgËšˆ6åŠ1œ““Žõ×Îàc»p) gCᤎæÉí¤C‚勯ðà1ú×E£]ÈYÃ,‹ØŽ£Ö¹-ìZ[Ü>Ü•ŒŸÄŒVŠøæŠÜ´»�ëÏ�çXÎwCŒ­£=]Bðì:w®Vòè$Ïn‹˜¥`Cúò)ös.¢[Ìo(Ž<±ÔV¬–0µ¸@¦²\Íê=ÍnÞÊí"¨^I‹ª¸{ÒIù€à¶õ-=­Ýns\õî<ÅÚ¾£ëDöhÚŠ÷“*“Å3(…7Ë5ÌE#lréô¬VáÜ{šÚO½ãü«A¶wíô$C“GjZ1Î)3hšúRóè+dÅÆGâk'ÃÀ™çQÝ=3Þº!•ëÇÒ¾+VgØešáãó3^&PNr1׉~B{g®’ê&~`+›Ô2¸èyíô­0ošh¬t”(IùQ8ãçå_Ïÿ�­Z181ž­óúVt�+•ã5ueQ´1†ž+èˆeÙJ²F? 5‰{ûÉPUCgÛ5¡Ûc¸,Ã+¿n*²¯™nW<´C�{™;z‡ÜI`€ ŒZKi-œže©Ýÿ�–dÿ�*Ãð»²éÑ®®!¹p>¢¸g£;¡ª ¤aÁVôn Z7(覑Ôn@Aõ¨¤³ˆýÕÇÐâ§BîÂI£�ô¬ÉX†O¯aVÚÑsÓ?SšŽH‚.�¡»9yßÙsçs�+Ìß99¯WÕâ'ËÆTŸzó{ËSüÑ}ãƒ]t^‡%XÝ™µvÍ£²öþbª:lÒ|«lrÄÈgúŠÜç.G Uðx E¹]ÎIÇó«ÛÊ[îàÿ�*”€×��OùúБi±Le™!UrÄ�¯À ÿ�JÔ»g¶µ¶,×s"P�ú‘ôª–¬ë|DH]€8ÇjÝ7“\‹e’Å¡‘TŒœzžõœ˜Ñ“iq}öƒtèS¥UI®’ÛR2�7äzU»Dˆ\£»cBÆ«][GpÆXÐG3|Ù�íÅdõw*ýºušBFXqõ®>þÙÍÀ ª>oƺ )ì~nÕU•ZУã{dóíR“¹¤edsly;z”»›Ò¤m»TpM6¹e£±êR÷£sM>a»8+“YwG¿Ö´á §©àV]àÅÃzô;“Í;=ê:v@i3h„âê2FIÉŒž=2+µ{UDÇé\_‚åOíò™äÂÜ~UÞ\ÝZC饉1Ýœç_-šsýb˲>§.¨£AZ„qª¨sŽ•Éj;ÀPq„%¿Ÿ ®Y×tÈí¢î�Î&Äöé\T“½Õ¬·m…/’ èzeßžJÖ9ó\T=—³‹»c@fP?‰Žj7› òO–ŠÞÏÍÜgó¨%%YSŽkÝ>`sJEŒÇ<³cõ«ÖJF¯”>k‰6„öÝ[šHÎG=D|}y¬æô6¦®ÎÓÃÑ°Ó¡aÔ¨&º{vGµbhÑù6p£pUpk\|’�?Š¸¥¹ÙiFF+`ÔJpiìüT—b)8ïY÷NB:šµ+þ™s/ÍÀ$Ÿ­4&Sž,�GS\&¿gå^ÈÛzØ®êiårvÅíÍsºÅÌègÚ1Þ㨫„¬ÈpÐâ®àØËŽC�Ê}jtHОù¢h˜óœƒíMñõƒœÈ®È½9«3¢Îm‘ƒ×ùÕizÈÀuÃùÕ­ ÀlÏ'¾+)æÊÈW¸Ÿ­Y‘f+‘âä·Ý>k~mzÚé XpÍ´t#­rŠ]à‘á¡Ü+|»ˆ$c‘ƒIÆá{äVÌe`73íÔÿ�JwŸF[÷Ƀ°¯0´ÔõkxÃG<£üÃüñZQø¦g“u”byt䣑…ÎÂâS2ºÃ88Üx¬¤Óg{“-ăä9 ¿J»¤Ê·¶¯$qKÎN8`}ÇZ±"½ºùde¥êÄòCдrW‰²éûƒUwUíYH»Ú; ÏÚkŽ[žÍî#b7Æ+2ìÿ�¤1õæ¯#p+7Q‘`Üç8ÇAõ¯Dðã¹ œàVmÅñc²ÅªµÅÜ“žNÕôú⚉N¥¶/Úß\XKç[ÜIŒ»K/\¸ªó]K;ò3äç,rjVjyL->H§{©&¬Þ‚*eQÔšèf_&ÚuûÄ€yôÿ�ëšÎÑíüë çîEó·ÐsWä%¯†î|¥ÉÏ©æ™7tw\.GÊãÞ«JvÌ[Á“øÔüd9%ÉÀ÷¦N€Ï"Ž@Âf“A4,–17f'Ôi:|Ž¡1ò.Ò}úV}Å°x´ØBA?B»ý&Ú2²ü¼¸ü+š¬´;)GQÖâEUÈÇ5z?3 ŸÂ§Ž$Àã¯5u ]˜õý+”é IæžÒ“Òœ±nÈ<0ëJcTANú+´fVÇçô¨å·‡µ^qÉžie@WÒ“bFKFˆ‡# ôªWj^3 �õÍi̹ùV]á‘ТpqÉô{¬[i÷G)òŠZϸA ê*¼|WI¯À%ˆ6>U;ðêSùV¨Ïª²‘œ.¸ÅvÒ–‡X›1¶è"f�Œm?ø÷øVãȸ•�!pqŸN¢µ¡b4³ÜÇ'?˜?Ë5GW‹÷ÈËÜ`šé9:µ!¤EÚÈ< 2ÝþžÕŒÈRVFEvéûÚ(4rN3Ž:öö¬nÓX’8@1¨YNC{ÕX›™q\´,PŸ‘55Ò2â@AÈç*¥ÈÚÛ{Ôö’y¨asž>\ž†€ Þ)D‘HÑJ9‡º+_<ÑÃt¿h,v‰ øú×/"© ÖÞ‡HÞîfƒ±©îj&•µ*š—ÄI+eæªyGÚ­MÒ©Æá‘øUqì „È<Šó§³Û¡7kvÛŸ²Y¼Ûwmí\ÍÞ¡=éùð«ýÕ®–ê1qlñŒ1\²(˜Ømt85éEÄHÍòÖ§Žçæ"˜g9äçµ “'Š±¢õ$qÚ“É2ÆPQž)½3úSã ¸'ôïHfÆ‹ Çb]¿å¡OaÉýëURc(žROÎÄþ&§žTµÓ¼µ8m»GãÁþUB,²*dã9jCEëhÚW@�n'¦ù‘FÎÇ$¹5fÝBE#2§òÿ�9«66äÇ?w$ûš‰»"à®ËÂ$mVÆV‰?\`~¦»[òäŒzÇÏãƒýkÓ!g†K¦Ë ÛŽËšíÀ¢> óùWGvwAYa\`w?¥\V©FÇÍ'è*bǨ¬Q3}àèëŽôÈ™®dÎÀŒA@AèE>ž|ª²üîùÕ¹ì~ËÄjŠTŸÞ“·'ç½\S彌¥$¥k•I¦9ÈÅ<©4…qX›$_—ùVEîôÂÉ'ʾަ¶æùWý£ÀA`,í!ûØü¨@s:µ þÍòÔ•2së\­°G×pÿ�t¸ÿ�€ô VÛ´h1Žþ€×|>ŪÄà`ûààÿ�Ÿzè¤ôhÆ¢'ˆäšÝº62>¹Sý*Í¥˜¿@΄€™cŽ„OùîE7V´eÖaXT••H;yéÛ×úâº?² ;OHYÜoÁÎ1óþz’k¾Œy·<úÍ'¡ŸäÞ@"LÅbÎÄd.sž••{¥Ç<^k[Ì·(  !`Tœÿ�ê8ö®ˆ¿Ïõó˜Tm`¹ïÔô®§Îu6rZ†e`b¸ŠfXÔt(Ìz`¦ªÜxsS´1ȶ7[AWD.¤ã‘‘ï]•ÅÅ«¸IBKÔ‘€xÇ ªr«Ú+HnV2GÈ[[·‚9íYº}ŠR¹ƒ.‰4·GˆÒFUfPà¾ã­JÖ÷M:Ú*lŒ#.>PÃØšêüFR­<¶áöãxŒÀ903žøíUVÒ+«‰„·Éä0LTäɨt›ÐÒ5]ÈikfªêªÛó‘¸ñéž Ñdbá¯Ð1ÎØÎ{ž•4ÖÑ}¬[ÆR‚0»‰c‚O×Þ˜÷p¬Œ¬%¶þ;Qq¤ªÊ{˜¨I^‡5«Ø«§Ú"¼^â´‡Lâ™rvÃíPAÉZz©&•#/H:Í|±ƒÜqšÑ;’Õ‰bþPF}*”ïÎ0EQ‹vâT@ÍZ3 U¸<Š`‰ï$ß"&NcV,"óî# O'Ð ÌVß+[6ÄÃfò)ôsëÔÔ”h,eíÆÁ‚Ç�ŸJ¶Ò$6r6Od^µ_M£ú"‹4ûeżC8yL‡è9þ••W¡µy}…Ÿ—¦Ä‡ï|¼Üñ­ï/÷ä{T(Š°B«á8\ÕÇåÐó\ ÜîB[òÌ{欅5€’=jÒE&;ˆ¸©£g‘s*ª�sŒ�9晞8§ù„ªƒü+´})§£Bjí1[žÔÃúúPN}ÍDÍÔg“ÔÔ”C0ÜçžÔ:‹o9§ªàvëO‘r½=)Jêkr­ÍqÖ˜‘ꔪ2Èƒê¶ ®öqð¹=e]n}ä*Æ‘„ã$eAÆ>¬:éÃGšvg=yµŠÛQ€”Æ ,2.X`÷Èôɯ¥I©O¾ö4Ü1þ³oæ6y‰2;`›I=Î;þµ,aðÒ1$œ ÇÛüšõ©­2£Ô˜È‘Ï·‘u$s\˜¨Eî8_©«3È@#üšÍ70Anïp„Ç!#r¦}«Fd·5tÖŠIXF U+×®qVoäiUa…da#ØR8¬õÀÎB -0>¸éTŸSº—Ìs¾Ñ”qù¾œóš–ÍuÔì从̊3¸ŽŠ=qþy¬q¨­‘pá·Ïµ›r’×°ô¬ yfŽÙ¢ýäm’T–HŒžõÓhºåôbH(ˆþÄg¾:TÊV)%°žsÈešÖy­Ä‰¸H@ØÎsè h®pTyš¬¾f>oÞ7^ÿ�ÅU5í =Ñ÷\´ÓÍv;Bò0Üš’ÎÎÔÙ@]—–»²£9Åe¾¥[¡Î)íQßZ¸ô•J/y¶“˜ý+­Ì}%£+tn U¼„¡ ýèÎÓ“Vt†Áǽ_Ö¬ó Ý Èé'ô5*vŸSyÂôÓ];CûÓ‘Ÿ”÷¦°Ù)ÀëDYF#²°$g’:ÖÇ:%¶RÎ}IÖäq³Û‡î¯õ¬[PH#¹ÀÇÖº}Š–(¨>áüi5ç¶wOžD{ëPxkY†Òý>ÙŸ,!Eaü99æªj“bÔ"‡rsê+NÒ2™EIY—8»£Ûìõ+èãk[˜åÚA*3éZÊ¢E#³W†[ÜI’4R)ʺ“‘ú×s¡x÷k¥¾¬ƒié:2?¹jaÚÖ'L+§¹ÝB»³ž½ N‹·ƒÚ¢¶š)£Yáuxßø”ä{´ëŒ5s4t&0óÐÒE#ñÒš­ÍHǶäT w1©fÿ�WÅEæ˜É‘x¨©r§éFV5ó$`ª£$“€q^$ñôPî´ÒË!á§aò ïõéW n{Îj;›º¶¢º}Œ²¯–óÿ�%ð[2|gÛê+‹¸¸¹¸wÜÉ’A¼ p[¦AÇ ü©Þò5‹³Ò3NäÉ3©Û¸àãîãåã¸Î{Óõ»X¬µaº*Çn=X)õ÷ W£Fœ`¬Ž µ%7vd:Kqƒ²) /” ,rNK^?*ª&¾¶QåÞJª:$«‘ôæ»­*ƒÃ1·”èÑÃógƒ9ÇãTe‰ÙxN+e3.[£‘:Óÿ�­H\só)ÆM]KXçµE˜„† `Ž{ý*´·3ou‹.A庀ǜaRG-¤^^÷ÜàýÀO�õϹ­ÔÐŽMng´o%±8i%„=È¥[‚W·EƒåT êø³sù žyk3m+´õ�ŽÃÔÔë§j§aMhÎGß g¾çó¨æer¢…¬/Ò\oBÒŒ´œ+d`{àWwà×e³bò.7àe@8ÁïŸ`k/ê[¢ŠâòÖÚF#Ê‹Ú3Ûtº6Š¶6í·*È­Ë°ÆI�zÔIÝf\¿ð;¬L—ײ¼{s…ÀG\ŸN*eð•¡PUîJ‘ÁqÊ—R¼µƒKd¹eX¤_( ànìqôÍfÙ Ø5+`ŒyÙÅN¥hy’5O"î¶qíš©sV‡178ã“ ÂÓŽÉÝ}º›}“ÀcpX`ƒ\œGf¡ õ9®’ÆN•ÏYksºŽ±±Ïjzt¶3à‚cnQ‡qYÄä×£!º…¢™¡ìk×4•Ó®Õb}ÈãpÏQWJ·6sž­u°Í7&P{(,}ëB[¦ùc' °¬»7ÚÙ'¸ýjÃJþÃ8­Ì‰oTKiæîÎ݈×$ÕÛ �¤qŽ9šÑ¸•’#ÎImÜÕ;vBv¸ã98ëM�ß"d‹rüÉÁãœSÕ€Œ0ù×CSîòY•F�à{Š‰Q7–G±  ßx¢ïDfX±5«òÐ9ýG¡¯VÑõ»-jÍfµ˜nÇÍ™O¡ár FßàTÖ·“ÛN—ò´r¡Èe8"±©EKÔÚ\Oyaƒ´þpÕÃéƒ/•¬GÏg…˜ÿ� ë ¿·½·YíåY#aÁZá9Gs®¶/MU’òw¸¸p‘ É&’þúM9®'" äšò­s_¸Õî2X­ºŸ’>ÃÜúšªTœßªTPEÿ�x¦ã\“ÉŒ´Vj~XÁûÞíëô®a¤%¶¦7ý©ŒÅ›j~tà»WŒûס¨«#†RmÝãZ…ì­Ë\·©5Ýܘá¸ÌVÑ5X<¸´Ž¯_jâ<­•üÎÅT°%±ÙFOó¢Þ5ú\¤Q­¶ò-¹n™''¾*­v&ÎÇRKˆt»ƒ00 džH'®nA$öJÊÀ†œ¾•¡«ÝtgùY'*T�Hå†s“îkûhÍ{öQ¿{‡^ã€xôÉ¡ cnt8bŠÂ8wµÔHÁÉË)9#éÅu“éV°½¤Vööð©v.«Ë�=~¸¬-Bxâ—N—xl\³0ˆÙ}k {ëû›¥ºk™D«*Æ7 îÜ}i½IºG¢([™ŸlÆß36�uç¦MWÓ¤µ}:­d3ä3Ü@99<ÿ�œ×¨]ëØ 0£ËìNNEïQYy°#ÇŒ«-¼Œy?(ß´Èš›˜Þ¾ñœ·Æ\»C‘¹ 1ŒÖõµý¯œn%VuxÁQ×<~B¼â8¡‰tѲ–—Œ‚pªTqïÖ»O ÛG7‡m|Ð$¢än#Œæ†´ÎVöyu]ByçSå„vTè#¦*h-­¾ÏèÉmƒ'q늣s$¢ãPh%eŒ[‡UŒ–§?­jÛAÚÂÌ\±E'æ=qT´DîÎQ*Ò¶j¤§Ó¥XŒäíYŒÆ—äÔAõ»fø°¯>[˜Ûð­k6Èe¡×‡gCã5‹â£óÀØèý+JùzÖˆ×}¼Ožyçò®zzMÕ^ã9Ëv;ñíRƒ‹‚=*²±‘O.7’§©¯@ó‹7Dg¦j²±I:Š}Ëàç‘Å@§i¢YvIw¨ õÏqJ­¹wµ\­€xŠš0q÷O4ÇrCÊŽi˜!ò?°blp¹Â¢eÚ¤“‘HÇO—<J¹a©]iÒ‰m'dç;sò·±HQÍ5x$üŽi4žãM£kVñβè&"$AòÆõ¬‡f~ø^äÔdüÇÒ£bÃj9Ê‘Ž†…•å&õeèJËŒŽ¹äÒ…wäôÏ\Uqr#ýîqáW°ü*Ìb2ÊàsœcïUíü1O ^H_`vrO¨�qúW7q,Š“@O9úž«…üˆ®ÃCQ'ƒ0$Û2³½OÍÿ�Ö¬áû¿5 š6Fuù˜ýÜ4›˜þ\P· &njª–úE¬jFЯlçŸzäô§yõÙWphшºåº~™®—Ä“Í›Dˆ+*à’Ac’§jæ´ûWµ¹’hK¡«1` îN:ÿ�.ô¢ì \±g¹®<©åX-s÷@Eíÿ�ªFIEë~õ°×7�‘ð~µ<Ó̈"ÙsJ ,gÊBy$Ñp±´ä2)ܲÌØï“À¯GðØðŒÚDˆûÖÜ! c2ë\|^s?œ¶—’“ÌÉB�?u:bê ¥ÂÐ*…ÜD³�FsÔïI»+Ûi7›µ†)w2¬X#8 GqÔœTÞ\Éò‹k•€3ÒºG‹RO-#ă‚̓è+[êAˆóƒÚ6Çó¤ØYYXQ††ª!©Côô¡©.ß-½®Y?Ê*®¥ÌGÔ’Åò‹ô¬ê- è=N‚ݸÓux|ë&ÀÉ"™nx«ä…ç"¸ïgsµ««$‹´€;ÓKco¨«ZŒ^L‹Æ*“סusÍ’³±$’n'Öš¯Qò2 TfËhT®Iû½~•ŸJX¤Á&.CuCØÔß-Îိèh^[þíøqÐçƒQNd)bQOOCM`c}¼:{Ô¯p&8Vèë^²¹MOavÇä+q©äž¿…[Kk·Y„·Ò„ó  1¨;H•“­ÜÜi%•­©e–X”¿À@8÷$â²ôKë«=XÚ<ò´ùn+£Ò®–ÇLwžçÈH‡B@É>¬éWvwV±­¬ÄC` gvJóýn{©¬ ¿º,A�`j¯áëÙ—Qd´s’DÊÃ8ãðÇëG.Í©éê±Ý_NL¤¨U3Œ0É5=ÅÐÓјܪõ=1ø~UåÖ:Îâx"Ö¬rm8Þ¬yð¯Gñ[@l­•Ur$bz÷©jýÑÏßxÖðÎd·¶‰!gØ»†Hl~•¦¿#B<+(ÁQ@>k–¹ŽÚãOÓa´ž�ò¸iÙÛŸp'§ ¬ùîÜJVòÎ##Ÿ¥U—bnÌ´lô#5#L‘&ùjúÕt"»O‡Z|Ók·^ M¹ÔbÐ!ûDvÖñ3´×,vĸPO-žÛi$#Š¼š'„º¸*ÃïPÙ]Å€ïƒô®÷⥅υ>!mé¦k!¨*êV­³cÅ#pêAèÙÉ#ýªê|ñÄZÅ{‹(.MÖ˜¢Ý_M–5xæŠYpG“ž;Ðàš±Q›Nèóõk(NלgØü…\:´ÜŒŸE'úW«·àÏ|DÓ4†´±‡HmJx±¶ ÙW,£·N==+ϼ/â cHð‡‹ÅŽ£:)²†ìô8šIâGnJ’+‡…Í–"vØãµ[Ë+¦ ·0?Ý#ùŠË2!Íz·ÄkZ‡Ã_Åu¨Í"j³Év?|É"í-ÇlU¯†¾1ñš¤:4“Oiag¡LÐ[íÚ„,²ò2sœƒÓ¥m¨èŒe'-Yã¬éØæ…`zb½“á¼C∺ ¦£zÒŸ³ÜÅ4§�ÎE Çð°ë[ÐiÇÄZ¢|@½²¼×'ÕñoäO“ý˜),¬Éü$ƒß£/qÅX“çá"úÒ™µëSxÿ�ZƒâƒhÅnžMKû3ûìÉä˜|Ï/q×¾}}¸®—HŠëÚïÄ_ hšÌzm¤qÜZ<òmŠÖI6K�H;{ôÄxš¤u J g5ëŸ5ë½ZðôPÝÈ|W¦Ú·Û5xàyáÔÛÇÎ1¸g§'¾qÓxŽ(ü_â‹ïËö/øqÀ‘T×–û~òú°GéÝpàqܧæÏÔuö¸ŽE&o½Ù‡­{æ™ãk¨>%øÞÛ]¼{ Õ|³˜Ù4ñÅŸ Y}³Y~ð<^øqy©¯™Wéa£îÿ�–Ï0Ý¿ßdDçÜÐüðM h<ï@ÔtÔ¿w{…Y¥,€€AŽHÇPkS»©]ŒûÆä÷æ½KÅ–Þ Ñ¼5០뷲´KyuŒ“EˆÃƒºó#­gø|§‡>k¾1±†×_UO,jÿ�c^å€Ç=~Ÿ‹ê®jÖz-¥µµÁw0êŒ^zûÕòÒÏUigŸ`òÙUˆÈÉÆ:~5ÝÉ­]x›QÓüâÄÔ…î©i"ß A(O™Z6+×ïü§¶OÐiëþ4Öt/ê^•ö{=J¸ŠÖ= [§•p„…`Ã$Žs×¥©ç¶º…„~8·»šáVÙ.ÑÚLeB€9ã­z‹5]:ÇCI¤™Ugcå¶s»ä'€;r?1[ÖGKðg£¨O}âëZòáî.ÖòO1œŒ§d`z��¨ßÂ4+JùrXóëøRºBI³Šèãñ\°x)<9e¥Åg'œ'}BÞêE–I˜ƒòä`ð3‘ŠçT ³jÀät¥{éï|u¥á}+FÕü1i~šv<»‰¯fóä2ÀçæÁã8Æ-Oñ>-GÄ âðn“ýµ… wq<²ª�+ydíÈ�`ã5Ê'Ôµ¹<1i<÷p­¬içÈ©o�A– `€9ÆGnµ•n|Û•ù?¥JTGr# Ï­8×mÙ™ÉÇ¡…|H|'â‰õË_ Ã#’ÂÒžM¶Áœ·Êqóf±XÜ[ëGSÒíN–ÑL&·Ž'fò9fÉ8÷­;»d™Wl£ø•ˆ=ýýªkf7P±“Œs…$zT«4®EÍ£ñæMLk¯áMøŒ(R&LnyžVí»ñß×ÛŠ«¢ø¶ãM´Ö¢Ôt+]bãXbo®¦¼’7• ÎÜ)ÁÉÈÁçØTqÙÅ>×|‚ÊÊqÚª^*Ä©µG!sïšÏë-…Íñd×Þ°ÒËIdy&•OÊZG$árHý6$ñ•ÍΡ­{áÍR× �G©³H»™@ÚÏ!Y†:ã·wÜ<Çld´èÇ™’Ç'yúQõ‰ æ/î_½ž½­¢Ûj·ºËsy5Ô‘±k ¤�—#ôéÅXÇÞ ]{EÕ5]J]*ÌAffP¯œŽÓË� ñÐⱦãœÆ�Ú=GZdÓ²2œßŸ¥Y—as¼µiüCu{&„?™öhg2* ±Ä“““õ8­¹gbË%ÐV9ËJËŠc*å•pT£8àýjQk�üß÷ѧõŽè®{ÿÙ

 

 

 

Here is my code again :D

 

<?php
// shrink image
   include('SimpleImage.php');
   $image = new SimpleImage();
   $image->load("/home/p24tnugh/public_html/modelprofiles/{$model}/large.jpg");
   $image->resize(250,300);
   $image->save("/home/p24tnugh/public_html/modelprofiles/{$model}/large2.jpg");
   
// watermark image
$watermark = @imagecreatefrompng('/home/p24tnugh/public_html/modelprofiles/Banner2.png');
$image = imagecreatefromjpeg("/home/p24tnugh/public_html/modelprofiles/{$model}/large2.jpg");
$DestinationFileA = "/home/p24tnugh/public_html/modelprofiles/{$model}/large3.jpg";
watermarkImageA ($image, $watermark, $DestinationFileA);

function watermarkImageA ($image, $watermark, $DestinationFileA)  {
$width = ('250');
$height = ('300');
imagecopy($image, $watermark, 0, 0, 0, 0, 250, 300 );
imagejpeg($image);
// Saves File
   if ($DestinationFileA<>'') {
      imagejpeg ($image, $DestinationFileA, 100);
   } else {
      imagejpeg($image, null, 100);
   };
   imagedestroy($image);
   imagedestroy($watermark);
};

// set definitions watermark with text
$SourceFile = "/home/p24tnugh/public_html/modelprofiles/{$model}/large3.jpg";
$DestinationFile = "/home/p24tnugh/public_html/modelprofiles/{$model}/largead.jpg";
$WaterMarkText = "Come Check Me Out At My website!!";
watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile);

// watermark with text
   function watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile) {
   list($width, $height) = getimagesize($SourceFile);
   $image_p = imagecreatetruecolor($width, $height);
   $image = imagecreatefromjpeg($SourceFile);  
   imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width, $height);
   $black = imagecolorallocate($image_p, 255, 255, 255);
   $font = 'arial.ttf';
   $font_size = 12;
   imagettftext($image_p, $font_size, 0, 3, 30, $black, $font, $WaterMarkText);
// Saves File
   if ($DestinationFile<>'') {
      imagejpeg ($image_p, $DestinationFile, 100);
   } else {
      header('Content-Type: image/jpeg');
      imagejpeg($image_p, null, 100);
   };
   imagedestroy($image);
   imagedestroy($image_p);
};


?> 

Link to comment
Share on other sites

Got it !

<?php
// shrink image
   include('SimpleImage.php');
   $image = new SimpleImage();
   $image->load("/home/p24tnugh/public_html/modelprofiles/{$model}/large.jpg");
   $image->resize(250,300);
   $image->save("/home/p24tnugh/public_html/modelprofiles/{$model}/large2.jpg");
   
// watermark image
$watermark = @imagecreatefrompng('/home/p24tnugh/public_html/modelprofiles/Banner2.png');
$image = imagecreatefromjpeg("/home/p24tnugh/public_html/modelprofiles/{$model}/large2.jpg");
$DestinationFileA = "/home/p24tnugh/public_html/modelprofiles/{$model}/large3.jpg";
watermarkImageA ($image, $watermark, $DestinationFileA);

function watermarkImageA ($image, $watermark, $DestinationFileA)  {
$width = ('250');
$height = ('300');
imagecopy($image, $watermark, 0, 0, 0, 0, 250, 300 );
// this one the culprit[color=red]imagejpeg($image);[/color] 
// Saves File
   if ($DestinationFileA<>'') {
      imagejpeg ($image, $DestinationFileA, 100);
   } else {
      imagejpeg($image, null, 100);
   };
   imagedestroy($image);
   imagedestroy($watermark);
};

// set definitions watermark with text
$SourceFile = "/home/p24tnugh/public_html/modelprofiles/{$model}/large3.jpg";
$DestinationFile = "/home/p24tnugh/public_html/modelprofiles/{$model}/largead.jpg";
$WaterMarkText = "Come Check Me Out At My website!!";
watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile);

// watermark with text
   function watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile) {
   list($width, $height) = getimagesize($SourceFile);
   $image_p = imagecreatetruecolor($width, $height);
   $image = imagecreatefromjpeg($SourceFile);  
   imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width, $height);
   $black = imagecolorallocate($image_p, 255, 255, 255);
   $font = 'arial.ttf';
   $font_size = 12;
   imagettftext($image_p, $font_size, 0, 3, 30, $black, $font, $WaterMarkText);
// Saves File
   if ($DestinationFile<>'') {
      imagejpeg ($image_p, $DestinationFile, 100);
   } else {
      header('Content-Type: image/jpeg');
      imagejpeg($image_p, null, 100);
   };
   imagedestroy($image);
   imagedestroy($image_p);
};


?> 

Link to comment
Share on other sites

Even though this topic is marked as solved, I have some helpful advice when dealing with all that "garbage" a page throws out.

 

If you're getting that page full of garbage, it means that your browser isn't correctly identifying the output as an image, so to fix that, you simply put at the top of your script, before any output occurs:

 

header ("Content-Type: image/gif");

 

Replace image/gif with your content type (eg. image/jpg image/png) so your browser knows that it's GIF / PNG / whatever data, and should render it as such.

 

Not sure if that'll help you now, but for anyone else reading this, it's a handy thing to know. Of course, if you're debugging the script, comment out the line so you can see error messages, or you'll get "This picture cannot be displayed due to errors" message..

Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.