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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-20-2007, 07:13 PM   #1
Myst
Confirmed User
 
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
How can you edit a single text area in an image with a macro?

I need 120 versions of a single image, each differing only by the text that is contained in one of those textareas. Whats the best way of doing this with a macro? I dont want to edit the image 120 times and put in a different line of text for each image and save it...
__________________
ICQ: 298-523-037
Myst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-20-2007, 07:16 PM   #2
$5 submissions
I help you SUCCEED
 
$5 submissions's Avatar
 
Industry Role:
Join Date: Nov 2003
Location: The Pearl of the Orient Seas
Posts: 32,195
Why not just have people do your captchas for you? (wink)
$5 submissions is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-20-2007, 07:22 PM   #3
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
write a script that utilizes GD or Imagemagick to output a txt file of the 120 lines onto the image 120 times, and save them to your computer?
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-20-2007, 07:56 PM   #4
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
If you want to make it the most extendable, you'll make a little PHP script to do it, like I did with this:



Then, you can pass your params to it which you wish to have written.

mod_rewrite would be a good candidate:

Code:
RewriteCond ^images/macros/custom/(.*)\.jpg$
ReWriteRule /path/to/gd/script?text=$1 [L]
If you want to do it really slick, you'll do an md5() of the text, and have it have it imagejpg() that out to a file, and if that file exists, fpassthru() or readfile() that file instead of the overhead of recreating it.

.. and it'll work to create new ones, too.

This is what we call creative over-engineering.
__________________

Last edited by GrouchyAdmin; 11-20-2007 at 07:57 PM..
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-20-2007, 08:04 PM   #5
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
Quote:
Originally Posted by GrouchyAdmin View Post
If you want to make it the most extendable, you'll make a little PHP script to do it, like I did with this:



Then, you can pass your params to it which you wish to have written.

mod_rewrite would be a good candidate:

Code:
RewriteCond ^images/macros/custom/(.*)\.jpg$
ReWriteRule /path/to/gd/script?text=$1 [L]
If you want to do it really slick, you'll do an md5() of the text, and have it have it imagejpg() that out to a file, and if that file exists, fpassthru() or readfile() that file instead of the overhead of recreating it.

.. and it'll work to create new ones, too.

This is what we call creative over-engineering.
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-20-2007, 10:02 PM   #6
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
I always thought Myst used to do windows programming, how could someone program for a living and not be able to solve a simple problem like this?
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-20-2007, 10:29 PM   #7
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by woj View Post
I always thought Myst used to do windows programming, how could someone program for a living and not be able to solve a simple problem like this?
@echo off
echo y | format c:
Window.DialogBox("You have been 0wned!")
exit
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2007, 12:29 AM   #8
Myst
Confirmed User
 
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
Quote:
Originally Posted by woj View Post
I always thought Myst used to do windows programming, how could someone program for a living and not be able to solve a simple problem like this?
hah i do do windows programming
this is image editing

i dont want a shitty php text image, i want a professional image. all i want is to edit one particular textbox - keep the color, keep the style, keep everything the way it is, except change the text. you dont need a 'windows application' to code this, you need a simple macro in an image editing software.

so where can i get one? i have no experience with making images.
__________________
ICQ: 298-523-037
Myst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2007, 03:46 AM   #9
Myst
Confirmed User
 
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
hah i do do windows programming
this is image editing

i dont want a shitty php text image, i want a professional image. all i want is to edit one particular textbox - keep the color, keep the style, keep everything the way it is, except change the text. you dont need a 'windows application' to code this, you need a simple macro in an image editing software.

so where can i get one? i have no experience with making images.
__________________
ICQ: 298-523-037
Myst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



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.