This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-09-17 10:15:58

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

New Auto Updating Images!

IP Finder:
http://plaxon.comyr.com/ip_finder.php

Code:

[img]http://plaxon.comyr.com/ip_finder.php[/img]

[Shared by WindowsExplorer]

Date Finder:
http://plaxon.comyr.com/date_finder.php

Code:

[img]http://plaxon.comyr.com/date_finder.php[/img]

[Shared by wulfmaster

Custom Text [+]:
http://plaxon.comyr.com/images/custom.php?text=Custom+Text

Code:

[img]http://plaxon.comyr.com/images/custom.php?text=Custom+Text[/img]

[Shared by WindowsExplorer]

Share your own below! (Easier if you base it off this template):

Code:

<?php
header("Content-type: image/png");
$string = "";
$im = imagecreatefrompng("http://plaxon.comyr.com/images/button.PNG");
$color = imagecolorallocate($im, 88, 88, 88);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
$py = 9;
$fontSize = 5;
 
imagestring($im, fontSize, $px, $py, $string, $color);
imagepng($im);
imagedestroy($im);
?>

Last edited by WindowsExplorer (2011-09-18 10:47:16)


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#2 2011-09-18 10:12:02

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: New Auto Updating Images!

I added two new ones!


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#3 2011-09-18 10:14:24

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: New Auto Updating Images!

I don't really get the URL finder. What good does it do?

Offline

 

#4 2011-09-18 10:21:09

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: New Auto Updating Images!

It isn't fully working. It currently only tells the image url.


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#5 2011-09-18 16:21:19

wulfmaster
Scratcher
Registered: 2011-04-23
Posts: 500+

Re: New Auto Updating Images!

WindowsExplorer wrote:

It isn't fully working. It currently only tells the image url.

Let me see :PuppyEyeFace:


Social Connections - Bringing communities close together! http://cyberkidscountry.com/ip.php

Offline

 

#6 2011-09-18 17:22:00

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: New Auto Updating Images!

Update! Add the following code to the custom image url:

Code:

&size=

Set it 1 or 0 for default.


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#7 2011-09-18 18:40:01

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: New Auto Updating Images!

Code:

<?php
header("Content-type: image/png");
$url = (!empty($_SERVER['HTTPS'])) ? “https://”.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : “http://”.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$string = "You are viewing " . $string;
$im = imagecreatefrompng("http://plaxon.comyr.com/images/button.PNG");
$color = imagecolorallocate($im, 88, 88, 88);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
$py = 9;
$fontSize = 5;
 
imagestring($im, $fontSize, $px, $py, $string, $color);
imagepng($im);
imagedestroy($im);
?>

Should work, haven't tested it cause of certain circumstances.

Offline

 

#8 2011-09-18 19:03:54

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: New Auto Updating Images!

What does custom text do?

Offline

 

#9 2011-09-18 19:08:32

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: New Auto Updating Images!

ImagineIt wrote:

What does custom text do?

You get to have an image with any text in it you want.  big_smile

Offline

 

#10 2011-09-18 21:12:44

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: New Auto Updating Images!

ProgrammingFreak wrote:

ImagineIt wrote:

What does custom text do?

You get to have an image with any text in it you want.  big_smile

So it's sort of like a banner maker, or a status updater... Cool.

Offline

 

#11 2011-09-19 15:03:51

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: New Auto Updating Images!

kayybee wrote:

ProgrammingFreak wrote:

ImagineIt wrote:

What does custom text do?

You get to have an image with any text in it you want.  big_smile

So it's sort of like a banner maker, or a status updater... Cool.

Exactly.  smile

Offline

 

#12 2011-09-19 15:05:32

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: New Auto Updating Images!

Later I will be adding a backround image tag  smile  I already added a new &size= tag  big_smile


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#13 2012-01-31 08:48:47

PeteinSpain
New Scratcher
Registered: 2012-01-31
Posts: 1

Re: New Auto Updating Images!

WindowsExplorer wrote:

Later I will be adding a backround image tag  smile  I already added a new &size= tag  big_smile

Hi, I have been searching for some ideas, for a project like this. Have you designed the input system yet. I was looking at the ui libraries for adding multiple (dragable) rows of text, and to be able to change the font size, colour and family.

Pete

Offline

 

#14 2012-01-31 08:52:51

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: New Auto Updating Images!

PeteinSpain wrote:

WindowsExplorer wrote:

Later I will be adding a backround image tag  smile  I already added a new &size= tag  big_smile

Hi, I have been searching for some ideas, for a project like this. Have you designed the input system yet. I was looking at the ui libraries for adding multiple (dragable) rows of text, and to be able to change the font size, colour and family.

Pete

Check out this I-topic. It basically this, but fully working and completely open source  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#15 2012-02-02 08:21:48

iampie
Scratcher
Registered: 2011-10-30
Posts: 72

Re: New Auto Updating Images!

Cool, I will try some of these.


Don't tell me I've lost my sanity...can't lose what you never had.  tongue http://tinyurl.com/7m32p3u

Offline

 

Board footer