Jump to content

tc48

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tc48's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. here is what the generated image looks like... <img src="http://www.airpinions.com/members/images/badges/231.jpg"> Notice how the text looks all shaky n theres noise around the white lettering on the left, and the click to view. The click to view is originally pulled from here.. <img src="http://www.airpinions.com/images/clicktoview.jpg"> which you can see is clean and without artifacts.
  2. Ok nevermind I just used imagecreatetruecolor() instead. Now my next question is, is there any type of anti-aliasing that I can apply to the text in the image? It all looks kind of rough. Thanks
  3. Hello, I am dynamically creating an image with this code $badge = imageCreate(450,120); $resource="../images/covers/212.jpg"; $resourcepic=@imagecreatefromjpeg($resource); imageColorAllocate($badge, 255, 255, 255); $whitetextcolor=imageColorAllocate($badge, 255, 255, 255); $blacktextcolor=imageColorAllocate($badge, 0, 0, 0); $siderectcolor= imageColorAllocate($badge, 0, 104, 163); $gothicbfontfile="../../fonts/gothicb.ttf"; $impactfontfile="../../fonts/gothic.ttf"; imagefilledrectangle ($badge, 0, 0, 20, 120, $siderectcolor ); imagefilledrectangle ($badge, 448, 0, 451, 120, $siderectcolor ); imagefilledrectangle ($badge, 0, 0, 450, 1, $siderectcolor ); imagefilledrectangle ($badge, 0, 118, 450, 120, $siderectcolor ); $text="TEXTHERE"; imagettftext ( $badge, 12, 90, 15, 118, $whitetextcolor, $gothicbfontfile, $text ); imagettftext ( $badge, 10.0, 0, 320, 40, $blacktextcolor, $impactfontfile, "$firstname $lastname"); imagettftext ( $badge, 10.0, 0, 150, 40, $blacktextcolor, $impactfontfile, "$traveldate"); imagettftext ( $badge, 11, 0, 145, 20, $blacktextcolor, $gothicbfontfile, $title); for($i=1;$i<=4;$i++){ $ylocation=60+(14*($i-1)); imagettftext ( $badge, 9.0, 0, 200, $ylocation, $blacktextcolor, $impactfontfile, "$org[$i] $dest[$i]"); } for($i=5;$i<=8;$i++){ $ylocation=60+(14*($i-5)); imagettftext ( $badge, 9.0, 0, 300, $ylocation, $blacktextcolor, $impactfontfile, "$org[$i] $dest[$i]"); } imagecopy ( $badge, $resourcepic, 30, 17, 0, 0, 111, 83 ); Imagejpeg($badge,"badge.jpg",100); ImageDestroy($pic); The problem is that the image appears to be comprised of shades of just a few different colors, instead of being smooth. It kind of looks like a GIF with maybe about 4 different colors. Thanks for your help
  4. Hello... I have this script... switch($pid){ case 001: echo " Seat maps are diagrams that can be automatically added into your report based upon the information you enter in the aircraft, airline, and seat field for each leg. "; break; case 002: echo " Cover images are used to personalize the appearance of your report throughout the website. Your cover image will appear in search results and on your main profile page among other places. If you choose not to upload a cover image, a default one will be used in its place."; break; case 003: echo " Trip reports are seperated by legs of your trip. A leg is considered the flight between any two points. A flight that stops over in an airport would be considered to have two legs."; break; case 004: echo " You may add photos to your trip report by choosing 'Yes' here. You may upload up to ten photos for each leg of your trip, for a maximum total of 100 photos per report. Photos will automatically be resized to fit in your report."; break; case 005: echo " We are currently in the process of building our database of the geographical locations of over a thousand airports around the world. Once this process is done, the map feature will be enabled"; break; case 006: echo " We are currently in the process of building our database of airline seatmaps. New seat maps are constantly being added on an airline-by-airline basis."; break; case 007: echo " You may check to see what airlines currently have seat maps of the entire fleet by clicking onto the airlines section of the website. There will be a green check mark in the Seat Maps column of those that have them."; break; case 008: echo " We are constantly adding to our database of airlines, airports, and aircraft."; break; default: echo "Invalid Pop-Up ID: $pid"; break; } Now if i pass any id for $pid up to 007 it works fine. But then 008 and up do not work! It defaults and gives me Invalid Pop-Up ID: 008 . This means that its not $pid not passing properly thats not making it work. Maybe its something stupid and I just need a fresh pair of eyes... Thanks ahead.
  5. im getting... Fatal error: Call to undefined function: stripos()
  6. Hello, I was wondering what would be the most simple way to find the text thats between to predefined tags in a string, and then set that text to a variable. Example... I want the text inbetween these tags [set]iwantthistobeavariable[/set] to be set as a variable. Thanks for your help!
  7. I do a for loop that spits out the html for the row then inside the for loop i have an if statment. $ for($i=0;$i<=$numberofrows;$i++){ HTMLCODEFORROWHERE if($i%2==0){ echo 'codeforonebgcolor'; }else{ echo 'codeforotherbgcolor'; } }
×
×
  • 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.