Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 04-22-2006, 12:12 PM   #1
amateurcanada
Confirmed User
 
amateurcanada's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 3,766
questions about image manipulation

I've been noticing some people using images that will have the local geographicaly area with a photo as part of the text that changes depending on the user. I'd love to have a few photos like this with a model holding up a sign saying "meet me in (local area) in some text. how are people doing this, i head imagemagic -thanks BUT how LOL
__________________

be our partner - join nichepartners today
will.assum.producer @ AmateurCanada.com / icq: 30146166 / facebook.com/will.assum / #amateurcanada
amateurcanada is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-22-2006, 12:44 PM   #2
scrm
Confirmed User
 
Join Date: Mar 2003
Location: Europe
Posts: 1,069
use GeoIP
__________________
regards!
icq#46072336
scrm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-22-2006, 01:10 PM   #3
duckduckgoose
Registered User
 
Industry Role:
Join Date: Mar 2006
Location: North Pole
Posts: 82
GeoIP is correct. You would need image manipulation tools on your webhost (PHP works great for this, using GD), as well as having them install mod_geoip on Apache. They also need the free GeoIP city database (not as accurate as the pay version, but hey, it's free) in order to resolve cities/regions instead of just countries. Then, you whip it together and dynamically generate an image displaying the user's supposed city or region.
__________________
rRhino.com ...social networking for book fans...
duckduckgoose is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-22-2006, 01:12 PM   #4
CyberHustler
Masterbaiter
 
CyberHustler's Avatar
 
Industry Role:
Join Date: Feb 2006
Posts: 28,076
sounds crazy, but im gonna try it
__________________
“If you can convince the lowest white man he’s better than the best colored man, he won’t notice you’re picking his pocket. Hell, give him somebody to look down on, and he’ll empty his pockets for you.”
CyberHustler is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-22-2006, 03:26 PM   #5
amateurcanada
Confirmed User
 
amateurcanada's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 3,766
ok i get and instally geoip, how do i dynamically generate such an image? what prog i need for that

btw, thanks for help! :D
__________________

be our partner - join nichepartners today
will.assum.producer @ AmateurCanada.com / icq: 30146166 / facebook.com/will.assum / #amateurcanada
amateurcanada is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-22-2006, 03:37 PM   #6
duckduckgoose
Registered User
 
Industry Role:
Join Date: Mar 2006
Location: North Pole
Posts: 82
using the PHP language (with the GD graphics creation extension installed), you can create images (gif, jpeg, etc) on the fly. You can also load in existing ones and manipulate them.

So in this case, you'd load in a jpeg with a girl holding a large white sign, and then on the coordinates of the photo where the white sign was, you'd add text saying the name of the viewer's city or whatever exactly on that whitespace.

I can build one custom for you if you like - hit me up if you want. Otherwise, there are some simple examples on the web, but they aren't all the way what we're describing here.
__________________
rRhino.com ...social networking for book fans...
duckduckgoose is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-27-2006, 12:51 PM   #7
amateurcanada
Confirmed User
 
amateurcanada's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 3,766
Hehe, sure I would love to see an example of how its done - is it relatively easy? 30146166 is my icq :D lets talk

Quote:
Originally Posted by duckduckgoose
using the PHP language (with the GD graphics creation extension installed), you can create images (gif, jpeg, etc) on the fly. You can also load in existing ones and manipulate them.

So in this case, you'd load in a jpeg with a girl holding a large white sign, and then on the coordinates of the photo where the white sign was, you'd add text saying the name of the viewer's city or whatever exactly on that whitespace.

I can build one custom for you if you like - hit me up if you want. Otherwise, there are some simple examples on the web, but they aren't all the way what we're describing here.
__________________

be our partner - join nichepartners today
will.assum.producer @ AmateurCanada.com / icq: 30146166 / facebook.com/will.assum / #amateurcanada
amateurcanada is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-27-2006, 09:06 PM   #8
BigBen
Confirmed User
 
Join Date: Nov 2004
Location: scv
Posts: 2,299
Pretty simple in php...

To get geo data to display for the text, they have a geo ip database that makes the 'text' argument a variable with the location of the surfer...
PHP Code:
$text getLocationFromGeoDatabase($_SERVER["REMOTE_ADDR"]);
ImageString(imagefontxy$textcolor); 
That's how it's done in its simplest form. There are other functions to use true type fonts which look much better. Pick up a copy of "Programming PHP" by O'Reilly. Great book if you're just starting out with PHP (or even if you're not starting out, it's still a good reference book).

Most people use the geo db's from www.maxmind.com. They offer a complete API to their database that makes it incredibly easy to use. This will overlay an image with a true type font using the maxmind db:

PHP Code:
include("geoip.inc");
header("Content-Type: image/jpeg");

$gi geoip_open("GeoIP.dat",GEOIP_STANDARD);
$location geoip_country_code_by_addr($gi$_SERVER['REMOTE_ADDR']);
geoip_close($gi);

$im ImageCreateFromJPEG("image.jpg");
Imagettftext($im1401010$textColor'verdana.ttf'$location);

ImageJPEG($im);
ImageDestroy($im); 
BigBen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-04-2006, 09:25 PM   #9
Miguel T
♦ Web Developer ♦
 
Miguel T's Avatar
 
Industry Role:
Join Date: May 2005
Location: Full-Stack Developer
Posts: 12,472
Thanks for the help out
__________________

Full Stack Webdeveloper: HTML5/CSS3, jQuery, AJAX, ElevatedX, NATS, MechBunny, Wordpress
Miguel T is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-08-2006, 01:04 PM   #10
sfera
Confirmed User
 
Join Date: Aug 2005
Location: ICQ: 248877409
Posts: 8,597
geo targeting banners
sfera is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.