Who knows how this is done: http://www.danasoft.com/vipersig.jpg
As you can see the signature is dynamical, it uses gdlib I assume and php.
But does anybody have any code for this? Please help me find this, I
allready searched alot, but can't seem to find anything yet...
Regards, Cybex 2 2983
Cybex wrote: Who knows how this is done:
http://www.danasoft.com/vipersig.jpg
As you can see the signature is dynamical, it uses gdlib I assume and php. But does anybody have any code for this? Please help me find this, I allready searched alot, but can't seem to find anything yet...
Regards, Cybex
ImageMagick would work well for this, if it's installed on your server.
If you have Telnet or SSH:
whereis ImageMagick
will tell you where it is.
Shawn
--
Shawn Wilson sh***@glassgiant.com http://www.glassgiant.com
"Cybex" <cy*************@home.nl> wrote in message
news:bi**********@news1.tilbu1.nb.home.nl... Who knows how this is done:
http://www.danasoft.com/vipersig.jpg
As you can see the signature is dynamical, it uses gdlib I assume and php. But does anybody have any code for this? Please help me find this, I allready searched alot, but can't seem to find anything yet...
PHP to generate a horizontal bar graphic in a PNG file when called with a
URL parameter 'precent'
makepng.php
<?php
// read url parameter 'percent'
$percent=$_GET["percent"];
// calculate size of bar
$x1=floor(460*($percent/100));
// build image
$im = ImageCreate(500, 50);
// set colours, first colour created is background
$black = ImageColorAllocate($im, 0, 0, 0);
$white = ImageColorAllocate($im, 255, 255, 255);
$red = ImageColorAllocate($im, 255, 0, 0);
// set up array defining vertices of hexagonal bar, width depends on
'percent' parameter
$points=array(10,25,20,45,($x1+20),45,($x1+30),25, ($x1+20),5,20,5);
// draw polygon using array 'points' and colour red
imagefilledpolygon($im,$points,6,$red);
// write text on top of bar
imagestring($im,5,20,20,$percent.'%',$white);
// send the image to the browser
header("Content-type: image/png");
ImagePNG($im);
// tidy up
ImageDestroy($im);
?>
and an example of a page using the above code
<html>
<head>
<title>dynamic image</title>
<script type="text/javascript">
function graph(gaugeID)
{
var n=20;
var time=new Date();
var n=time.getSeconds();
n=Math.floor((n*100)/60);
document.getElementById(gaugeID).src='makepng.php? percent='+n;
var temp=setTimeout("VUgauge('gauge1')",1000);
}
</script>
</head>
<body onload="graph('placeholder');">
<img id="placeholder">
</body>
</html>
Regards, Cybex
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sam |
last post by:
Hello everyone,
I have a table, which contains a picture column, I put URL info into it.
"www.myweb.com/1.jpg..."
I want to show this picture in my crystal report, I find
some samples show the...
|
by: Michael Huhn |
last post by:
I have a web page default.aspx and a dynamic image image.aspx. Image
gets parameters via querystring and outputs a gif. Using JavaScript I
reload the image with changed parameters quite often....
|
by: Tompa |
last post by:
Hi,
I would like to create images on the fly as a response to an http request.
I can do this with PIL like this (file create_gif.py):
from PIL import Image, ImageDraw
print 'Status: 200 OK'...
|
by: JOSEPHINE ALVAREZ |
last post by:
I have this code that I want to use to do a rollover. However, because the
company I am doing it for is continually changing the text, I want to be
able to use dynamic text to change the text on...
|
by: UtilityWarrior |
last post by:
If you use Visual Basic 6 or VB.net and want to create PDFs from images royalty free then this DLL is for you.
The Image to PDF Dynamic Link Library (DLL) will convert one or more images (JPEG,...
|
by: toton |
last post by:
Hi,
I have little confusion about static memory allocation & dynamic
allocation for a cluss member.
I have class like
class Bar{
public:
explicit Bar(){
cout<<"bar default"<<endl;
}
|
by: pbd22 |
last post by:
Hi.
This is just a disaster management question.
I am using XMLHTTP for the dynamic loading of content in a very
crucial area of my web site. Same as an IFrame, but using XMLHTTP and
a DIV. I...
|
by: dino d. |
last post by:
Hi- I want to create a dynamic image with areas so that when the user
clicks different areas, the user jumps to those pages. The problem
is, I can't seem to figure out how to do this efficiently....
|
by: MaryamSh |
last post by:
Hi,
I am creating a Dynamic Search in my application.
I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove)
By pressing Add button...
|
by: MaryamSh |
last post by:
Create Dynamic Dropdownlist Controls and related event
--------------------------------------------------------------------------------
Hi,
I am creating a Dynamic Search in my application.
I...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |