Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #21  
Old 05-28-2009, 08:47 AM
mattalien mattalien is offline
Member
 
Join Date: Dec 2008
Posts: 27
Credits: 4,329
mattalien
Default RE: Siggy.php destroys outline.

Although I know what he means by the transparent outline. In the code for GD images, It makes a black background, then makes the black colour transparent. This also affects the sprites for his adoptables, as they have black outlines.

Hope this clears up any misunderstandings!

:)
Reply With Quote
  #22  
Old 05-28-2009, 09:00 AM
trollis76 trollis76 is offline
Member
 
Join Date: Feb 2009
Posts: 160
Credits: 13,496
trollis76
Default RE: Siggy.php destroys outline.

*Her* adoptables. I am a "She".
Do you know where it states that it makes the bg black? 'Cause then I could change it into something else..?
Reply With Quote
  #23  
Old 05-28-2009, 09:06 AM
mattalien mattalien is offline
Member
 
Join Date: Dec 2008
Posts: 27
Credits: 4,329
mattalien
Default RE: Siggy.php destroys outline.

Sorry.......

And I've tried that, but it didn't work.

the part is:

PHP Code:
      // Lets create the image and save its transparency  
      
$img_old = @imagecreatefromgif($image);  
      
imagealphablending($img_oldtrue);  
      
imagesavealpha($img_oldtrue);
   
     
// Lets copy the old image into the new image with  
     // the given size  
     
ImageCopyResampled(  
         
$img_temp,  
         
$img_old,  
         
0000,  
         
$width,  
         
$height,  
         
$width,  
         
$height  
     
);  
   
    
    
$textheight $width 2;

    
$image $img_temp;

    
$bgi imagecreatetruecolor($newwidth$newheight);

    
$color imagecolorallocate($bgi515151);


    
$str1 "Name: ".$name;
    
$str2 "Owner: ".$owner;
    
$str3 "Click Here to Feed Me!";
    
$str4 "More Adopts at:";
    
$str5 "www.".$domain;


    
imagestring ($image120$textheight,  $str1$color);
    
imagestring ($image120$textheight 13,  $str2$color);
    
imagestring ($image120$textheight 26,  $str3$color);
    
imagestring ($image120$textheight 42,  $str4$color);
    
imagestring ($image120$textheight 55,  $str5$color);

    
$background imagecolorallocate($image000);  
      
ImageColorTransparent($image$background);  
 
    
header("Content-Type: image/GIF");
    
ImageGif ($image);
    
imagedestroy($image);
    
imagedestroy($img_temp);
    
imagedestroy($img_old);
    
imagedestroy($bgi); 
this part: $background = imagecolorallocate($image, 0, 0, 0);, is where it selects the colour.
Reply With Quote
  #24  
Old 05-28-2009, 09:56 AM
trollis76 trollis76 is offline
Member
 
Join Date: Feb 2009
Posts: 160
Credits: 13,496
trollis76
Default RE: Siggy.php destroys outline.

Well... Then I need to figure out what those zeros mean. :)
Thank you Mattalien.[hr]
Googled a bit, and found that if you make the first zero a 225 it should be red instead of black... Going to test it though.
Reply With Quote
  #25  
Old 05-28-2009, 09:59 AM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 28,900
Bloodrun
Send a message via Yahoo to Bloodrun
Default RE: Siggy.php destroys outline.

Quote:
Originally Posted by trollis76
Well... Then I need to figure out what those zeros mean. :)
Thank you Mattalien.[hr]
Googled a bit, and found that if you make the first zero a 225 it should be red instead of black... Going to test it though.
php.net is your friend:

http://id2.php.net/manual/en/function.imagecolorallocate.php
Reply With Quote
  #26  
Old 05-28-2009, 10:01 AM
trollis76 trollis76 is offline
Member
 
Join Date: Feb 2009
Posts: 160
Credits: 13,496
trollis76
Default RE: Siggy.php destroys outline.

Well... That was exactly what I found when I googled. ^^[hr]
I've fiddled a little bit 'round with the numbers, and it goes well except that it won't make it red and then transparent, but black and then keeping it that way. :)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Siggy.php Slix Questions and Supports 0 03-29-2011 07:37 PM
Need critique: Which outline shading is best? Cerelia Art Gallery 4 02-20-2011 04:43 AM
ranking in the Siggy sensacion Questions and Supports 10 11-18-2010 01:50 AM
siggy.php cetroline Questions and Supports 6 10-05-2010 11:11 PM
Siggy Blackmagic Questions and Supports 2 11-02-2009 11:34 PM


All times are GMT -5. The time now is 04:21 PM.

Currently Active Users: 9634 (0 members and 9634 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636