GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How can you edit a single text area in an image with a macro? (https://gfy.com/showthread.php?t=786266)

Myst 11-20-2007 07:13 PM

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...

$5 submissions 11-20-2007 07:16 PM

Why not just have people do your captchas for you? (wink)

Bro Media - BANNED FOR LIFE 11-20-2007 07:22 PM

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?

GrouchyAdmin 11-20-2007 07:56 PM

If you want to make it the most extendable, you'll make a little PHP script to do it, like I did with this:

http://www.grouchyadmin.com/nectarine.gif

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 11-20-2007 08:04 PM

Quote:

Originally Posted by GrouchyAdmin (Post 13399518)
If you want to make it the most extendable, you'll make a little PHP script to do it, like I did with this:

http://www.grouchyadmin.com/nectarine.gif

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.

:thumbsup:thumbsup:thumbsup

woj 11-20-2007 10:02 PM

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?

GrouchyAdmin 11-20-2007 10:29 PM

Quote:

Originally Posted by woj (Post 13399944)
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

Myst 11-21-2007 12:29 AM

Quote:

Originally Posted by woj (Post 13399944)
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.

Myst 11-21-2007 03:46 AM

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.


All times are GMT -7. The time now is 06:42 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123