View Single Post
  #6  
Old 01-26-2011, 12:01 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 44,483
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

GD is sometimes very difficult to work with. This may be a fix that could be done in the next release but there are already a lot of things being worked on. I could make changes to it, but I'm not real excited to because of the pain in the butt GD is. XD


Just for kicks and giggles I went into the script to see if I couldn't find an easy way to do what you were asking for. First, look at this:
PHP Code:
    $str1 "Name: ".$name;
    
$str2 "Owner: ".$owner;
    
$str3 "Click Here to Feed Me!";
    
$str4 "More Adopts at:";
    
$str5 "www.".$domain
These are the strings to be added to the image. If there's something here you don't want to be added, delete the string or
edit the string. If you delete the string then you have to go down a little further...

PHP Code:
    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); 
And delete the row containing the string to be added. This is where the strings get added to the image.
The number 12 listed on all the rows of code, is the font size. You can try adjusting that to make it a little
smaller but you have to make some other edits as well. Say you made the font size 8. All the + # have to be
increments of nine. So, +9, +18, +27, +36. That just made your image's height almost 20 pixels smaller.

If you go up higher in the code you'll find...

PHP Code:
    if($newwidth 250){
    
$newwidth 250;
    }
    else{
    
$newwidth $width;
    } 
Change the 2 '250' numbers to smaller numbers to reduce the width. However you want to make sure
there's still enough room for the strings and don't make it smaller than your largest pet's width. Also
be sure to change BOTH numbers to the same number.


Hope that helps a bit.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]

Last edited by Kaeliah; 01-26-2011 at 12:19 PM.
Reply With Quote