Go Back   Bombshock Forums > Fringe Topics > Electronics, Spy Tech and Communication

Reply
 
LinkBack Thread Tools Display Modes

Online Image Creation
  #1 (permalink)  
Old 08-10-2006, 02:55 AM
Gobiggi Gobiggi is offline
Senior Member
 
Join Date: Jun 2006
Location: One step left, Three steps forward, and 39174 steps to the right, down 6 ft, in the coffin
Posts: 281
Rep Power: 0
Gobiggi
Send a message via MSN to Gobiggi
Default Online Image Creation

okay... you guys have probebly seen them bombshock bars that i personally make for people, well to save me time i really want to make a website where you just type in your name and it makes it for you... but i have no idea what programming language to use, and how to make it work if i chose a programming language.. any help at all for this feature would be much appreciated.
__________________
[url=http://TyphoonsVault.com]lol.. dont click me.. cos it might be classed as spamming.[/url]
Reply With Quote

  #2 (permalink)  
Old 08-11-2006, 12:50 AM
Random Random is offline
Super Moderator
 
Join Date: Jul 2005
Location: Australia
Posts: 2,277
Rep Power: 0
Random is an unknown quantity at this point
Default

I'd recommend PHP for this, though you'll need to make sure that additional libraries are installed for it.

You can read more about PHP image creation from the PHP website.
__________________
Don't like what I do as a mod? Complain here...

http://www.bombshock.com/forum/general-discussion/2417-random.html
Reply With Quote

  #3 (permalink)  
Old 08-11-2006, 01:42 AM
Gobiggi Gobiggi is offline
Senior Member
 
Join Date: Jun 2006
Location: One step left, Three steps forward, and 39174 steps to the right, down 6 ft, in the coffin
Posts: 281
Rep Power: 0
Gobiggi
Send a message via MSN to Gobiggi
Default

whoah, all that info is confusing my tiny brain... could someone like make the script, and host it somewhere pls, cos im a ultimate php no0b
__________________
[url=http://TyphoonsVault.com]lol.. dont click me.. cos it might be classed as spamming.[/url]
Reply With Quote

  #4 (permalink)  
Old 08-13-2006, 08:37 AM
Random Random is offline
Super Moderator
 
Join Date: Jul 2005
Location: Australia
Posts: 2,277
Rep Power: 0
Random is an unknown quantity at this point
Default

Uh...I'm sort of drunk, and I have never used that particular area of PHP before.

greenflame I think might have some knowledge of PHP, or there might be other members or other moderators that might be able to help you.

Failing that, I'll start experimenting (if and when I have time and / or start sobering up) and I'll try to come up with a tutorial.

Out of curoisity, how urgent is this?
__________________
Don't like what I do as a mod? Complain here...

http://www.bombshock.com/forum/general-discussion/2417-random.html
Reply With Quote

  #5 (permalink)  
Old 08-13-2006, 11:48 AM
Gobiggi Gobiggi is offline
Senior Member
 
Join Date: Jun 2006
Location: One step left, Three steps forward, and 39174 steps to the right, down 6 ft, in the coffin
Posts: 281
Rep Power: 0
Gobiggi
Send a message via MSN to Gobiggi
Default

not very, but i think it would make a good feature

if theres a tutorial that i can understand put through ill also make you guys able to do every bs bar in my sig (Motorola v3i, psp, hp, xp), and Linux

(may be more in future if i get this sorted
__________________
[url=http://TyphoonsVault.com]lol.. dont click me.. cos it might be classed as spamming.[/url]
Reply With Quote

  #6 (permalink)  
Old 08-13-2006, 02:18 PM
Random Random is offline
Super Moderator
 
Join Date: Jul 2005
Location: Australia
Posts: 2,277
Rep Power: 0
Random is an unknown quantity at this point
Default

Try this Google search. Not all of the results are relevant, but look through them and you'll find some of use.
__________________
Don't like what I do as a mod? Complain here...

http://www.bombshock.com/forum/general-discussion/2417-random.html
Reply With Quote

  #7 (permalink)  
Old 08-13-2006, 02:33 PM
Synchronium's Avatar
Synchronium Synchronium is offline
Super Moderator
 
Join Date: Jul 2005
Location: UK
Posts: 1,046
Rep Power: 0
Synchronium is an unknown quantity at this point
Default

You'd need PHP compiled with the GD library, which it is with most hosts. Do a phpinfo() to make sure.

It would be quite an easy script to write, and no, no one is going to do it for you. If you suck at PHP, take the time to learn. Whenever I learn something, I don't learn it for the sake of learning, I learn it because I wanna be able to do something (with the exception of AJAX, since that's just awesome).

Incidentally, I made This to help me get to grips with image manipulation in PHP. Having a project, or a clear goal in mind, such as your sigs will encourage you to engineer a solution for yourself.
__________________
My Shop: http://www.coffeesh0p.com
My Blog: http://www.synchronium.net
Record your Salvia experiences: http://www.salvia-trip.net
Reply With Quote

  #8 (permalink)  
Old 08-13-2006, 11:58 PM
Gobiggi Gobiggi is offline
Senior Member
 
Join Date: Jun 2006
Location: One step left, Three steps forward, and 39174 steps to the right, down 6 ft, in the coffin
Posts: 281
Rep Power: 0
Gobiggi
Send a message via MSN to Gobiggi
Default

okay i got this:
Code:

Please save these images to a different host, they will not be hosted here</p>



  <?php
   header("Content-type: image/png");
   $string = $_GET['text'];
   $im = imagecreate(9,350);
   $backgroundimg = imagecolorallocate($im, template.png);
   $fontsize = 10;
   $angle = 25;
   $font = "visitor1.ttf";
   imagestring($im,5,0,0,$backgroundimg);
   imagettftext($image, $fontSize, 0, 0, abs($size[5]), $textColor, $font, $string()); 
   imagepng($im);
?>
</p>
<form name="form1" method="post" action="owned.php">
  

Bombshock Username
    <input type="text" name="textfield">
</p>
  


    <input type="submit" name="Submit" value="Submit">
</p>
</form>
but it says:
Fatal error: Call to undefined function: () in /data/members/free/tripod/uk/g/o/b/gobiggi/htdocs/owned.php on line 12

i dont think i have done anything wrong,
__________________
[url=http://TyphoonsVault.com]lol.. dont click me.. cos it might be classed as spamming.[/url]
Reply With Quote

  #9 (permalink)  
Old 08-14-2006, 12:00 AM
Synchronium's Avatar
Synchronium Synchronium is offline
Super Moderator
 
Join Date: Jul 2005
Location: UK
Posts: 1,046
Rep Power: 0
Synchronium is an unknown quantity at this point
Default

Code:
imagettftext($image, $fontSize, 0, 0, abs($size[5]), $textColor, $font, $string());
Should be

Code:
imagettftext($image, $fontSize, 0, 0, abs($size[5]), $textColor, $font, $string);
__________________
My Shop: http://www.coffeesh0p.com
My Blog: http://www.synchronium.net
Record your Salvia experiences: http://www.salvia-trip.net
Reply With Quote

  #10 (permalink)  
Old 08-16-2006, 04:16 PM
Gobiggi Gobiggi is offline
Senior Member
 
Join Date: Jun 2006
Location: One step left, Three steps forward, and 39174 steps to the right, down 6 ft, in the coffin
Posts: 281
Rep Power: 0
Gobiggi
Send a message via MSN to Gobiggi
Default

okay, i have finished the script, and its all perfectly working, so get your own user bars at:

BSbars

note only the 'origional BS User bar' generator is working , the others have problems which i am solving
__________________
[url=http://TyphoonsVault.com]lol.. dont click me.. cos it might be classed as spamming.[/url]
Reply With Quote

  #11 (permalink)  
Old 08-16-2006, 04:20 PM
custombass custombass is offline
Senior Member
 
Join Date: Jul 2005
Posts: 355
Rep Power: 0
custombass
Send a message via AIM to custombass Send a message via MSN to custombass
Default

well done
__________________
[img][/img]
Reply With Quote

  #12 (permalink)  
Old 08-16-2006, 04:34 PM
Gobiggi Gobiggi is offline
Senior Member
 
Join Date: Jun 2006
Location: One step left, Three steps forward, and 39174 steps to the right, down 6 ft, in the coffin
Posts: 281
Rep Power: 0
Gobiggi
Send a message via MSN to Gobiggi
Default

Thanks... im working on making it so the other ones instead of being a different script its the same script so it can be like:
img.php?img=template.png&text=example

im proud of myself!!

edit: The all images in one script thing described above is complete, i just now need to update the homepage of the site
__________________
[url=http://TyphoonsVault.com]lol.. dont click me.. cos it might be classed as spamming.[/url]
Reply With Quote

  #13 (permalink)  
Old 08-17-2006, 08:00 AM
Random Random is offline
Super Moderator
 
Join Date: Jul 2005
Location: Australia
Posts: 2,277
Rep Power: 0
Random is an unknown quantity at this point
Default

Indeed, well done.

The next thing you should consider: how can you turn this into something profitable?
__________________
Don't like what I do as a mod? Complain here...

http://www.bombshock.com/forum/general-discussion/2417-random.html
Reply With Quote

  #14 (permalink)  
Old 08-17-2006, 11:00 AM
Syrus Syrus is offline
Senior Member
 
Join Date: Aug 2005
Location: England
Posts: 630
Rep Power: 0
Syrus
Default

i might get myself a couple of bars sincee im to lazy to make them myself.

OT:gobiggi how have you got a higher post count than me? oh well, i should start posting more.
__________________
--THK: Information for the masses--

[url]http://thk.a0tu.com[/url]
Reply With Quote

  #15 (permalink)  
Old 08-17-2006, 02:58 PM
Gobiggi Gobiggi is offline
Senior Member
 
Join Date: Jun 2006
Location: One step left, Three steps forward, and 39174 steps to the right, down 6 ft, in the coffin
Posts: 281
Rep Power: 0
Gobiggi
Send a message via MSN to Gobiggi
Default

heh, profitable, all i need is to know im providing a service, but soon if i can learn how to make an ultra secure payment service thing i might offer more advanced images...
and syrus i guess im an active member

ps. if you guys just noticed a recent downtime its because of maintenance, ive changes the page styles, edited the index.php, made the owned.php capable of having the form for just one image that can be chosen via owned.php?img=bblabla.png
and added a bar index kinda thing to chose the bar to use in the owned.php, and the last thign i did was add a coca cola bar

now for my next project, a fully functional online version of photoshop... gonna be a challenge

lol, jokin im not that good... yet, lol
__________________
[url=http://TyphoonsVault.com]lol.. dont click me.. cos it might be classed as spamming.[/url]
Reply With Quote

  #16 (permalink)  
Old 08-19-2006, 03:53 AM
Random Random is offline
Super Moderator
 
Join Date: Jul 2005
Location: Australia
Posts: 2,277
Rep Power: 0
Random is an unknown quantity at this point
Default

Quote:
Originally Posted by Gobiggi
heh, profitable, all i need is to know im providing a service
Quite seriously, how can you make this profitable? I believe that anything of worth, is worth paying for, and thus if you are providing a quality service, then to those who use your service it is worth it to pay money for that service.

At the very least, work up some sort of "We appreciate donations via PayPal" or something, so at least the door is there for an income. As for formalising the service, well, that's a bit into the future.
__________________
Don't like what I do as a mod? Complain here...

http://www.bombshock.com/forum/general-discussion/2417-random.html
Reply With Quote

  #17 (permalink)  
Old 09-06-2006, 08:16 AM
greenflame greenflame is offline
Senior Member
 
Join Date: Jun 2006
Posts: 184
Rep Power: 0
greenflame
Default

Here is some code I used to make signatures with the IP, and Hostname of the client in them. I used GD, and PNG with Alpha Channel.

Code:
<?php

   # Get user info
   $ip = getenv(REMOTE_ADDR);
   $taxo = "Your Ip:".$ip;
   $browserz = getenv(REMOTE_USER_AGENT);
   $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
   $hostname = "Your Hostname:".$hostname;
   $lc = "0, 0, 0";
       
        header ("Content-type: image/png");
        $img_handle = imagecreatefrompng (NS.PNG) or die ("Cannot Create image");
        $txt_color = ImageColorAllocate ($img_handle, 0, 255, 0);
        Imagestring ($img_handle, 2, 5, 20, $taxo, $txt_color);
        Imagestring ($img_handle, 2, 5, 33, $hostname, $txt_color);
        Imagestring ($img_handle, 2, 5, 30, $browserz, $txt_color);
        ImagePng ($img_handle);
        Imagedestroy($img_handle);
    ?>
Here is the code I originally learned it from. You can also do it in Perl with GD.

Code:
<?php
$im = imagecreate (250, 28);
$black = ImageColorAllocate ($im, 0, 0, 0);
$yellow = ImageColorAllocate ($im, 235, 235, 51);
ImageTTFText ($im, 20, 0, 10, 20, $yellow, "/WINDOWS/Fonts/IMPACT.ttf",
              "IMPACT FONT HIP HIP Hurray!!!");
ImagePNG($im);
?>


 <?
header ("Content-type: image/png");
$im = @ImageCreateFromPNG ("php.png");
if(!$im) {
        $img_handle = ImageCreate (200, 20) or die ("Cannot Create image");
        $back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
    $txt_color = ImageColorAllocate ($img_handle, 235, 235, 51);
        ImageString ($img_handle, 10, 25, 5,  "Image Not Found", $txt_color);
    ImagePng ($img_handle); }
Else {
    echo "Image is Found"; }
?>

<?php
        header ("Content-type: image/png");
        $img_handle = ImageCreate (230, 20) or die ("Cannot Create image");
        $back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
        $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191);
        ImageString ($img_handle, 31, 5, 5,  "My first Program with GD", $txt_color);
        ImagePng ($img_handle);
    ?> 

<?php
Header("Content-type: image/png");
$height = 300;
$width = 300;
$im = ImageCreate($width, $height);
$bck = ImageColorAllocate($im, 10,110,100);
$white = ImageColorAllocate($im, 255, 255, 255);
imageellipse ($im, 150, 150, 100, 200, $white);
ImagePNG($im);
?>
__________________
Fuck your sensitivity..I shutem' down.
Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Black Powder Image Widigo Explosives and Pyrotechnics 12 08-17-2007 06:56 AM
Information about novelty ID Creation. Amtrack Money, Fake ID and Free Living 1 08-15-2007 12:46 AM
Link to bombshock. Use this Image xpl0siv Important Announcements 0 09-26-2006 10:03 PM



All times are GMT. The time now is 11:25 AM.


vBulletin skin developed by: eXtremepixels
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.