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 2998
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***@glassgian t.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 = ImageColorAlloc ate($im, 0, 0, 0);
$white = ImageColorAlloc ate($im, 255, 255, 255);
$red = ImageColorAlloc ate($im, 255, 0, 0);
// set up array defining vertices of hexagonal bar, width depends on
'percent' parameter
$points=array(1 0,25,20,45,($x1 +20),45,($x1+30 ),25,($x1+20),5 ,20,5);
// draw polygon using array 'points' and colour red
imagefilledpoly gon($im,$points ,6,$red);
// write text on top of bar
imagestring($im ,5,20,20,$perce nt.'%',$white);
// send the image to the browser
header("Content-type: image/png");
ImagePNG($im);
// tidy up
ImageDestroy($i m);
?>
and an example of a page using the above code
<html>
<head>
<title>dynami c image</title>
<script type="text/javascript">
function graph(gaugeID)
{
var n=20;
var time=new Date();
var n=time.getSecon ds();
n=Math.floor((n *100)/60);
document.getEle mentById(gaugeI D).src='makepng .php?percent='+ n;
var temp=setTimeout ("VUgauge('gaug e1')",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 "static" picture in Crystal report,
No "Dynamic" one.
Can Crystal Report do that?
Thanks in advance.
Sam
|
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. Sometimes it
happens that the image does not appear (red cross instead) or that ie
keeps loading for minutes. Opening that image in another browser gives
me a "403.9: too many connections".
Does iis create a new connection on every reload of that...
|
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'
print 'Content-type: text/html'
print
print '<HTML><HEAD><TITLE>Python Dynamic Image Creation Test</TITLE></HEAD>'
|
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 the fly, and still have the
rollover work. I have taken the text off of the buttons, but cannot figure
out how to do it with dynamic text using javascript and html.
For example, in the columns of this row, I want to put "About...
|
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, TIFF, PNG, GIF, BMP, PCX and TGA) into a PDF document.
Supports multi-image TIFFs and animated GIFs.
You can add clickable image stamps (eg company logo to web site), passwords, bookmarks and can even create simple full screen PDF slideshows -...
| |
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 got the core of the javascript from here:
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
I noticed in the demo that sometimes the content takes a long
|
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.
Suppose I have a table,items in a database:
itemid description count
So, basically, I want to create an image that has 3 ovals,
representing the top 3 occurring items (with the highest count) in
|
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 ,another row will be created with the same control (I mean another dropdown and 2 button) and so on.
and by pressing Remove button the selecetd row will be removed.
I used viewstate to keep my value for postback,
I want by changing selectedvalue of...
|
by: MaryamSh |
last post by:
Create Dynamic Dropdownlist Controls and related event
--------------------------------------------------------------------------------
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 ,another row will be created with the same control (I mean another dropdown and 2 button) and so on.
and by...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |