You are here: Re: Customizing a Graphic « HTML « IT news, forums, messages
Re: Customizing a Graphic

Posted by Sherm Pendley on 07/25/07 06:32

grantroelofs@gmail.com writes:

> I have web course on a website that I would like to generate a
> certificate for when completed.

A "web course?" I hope it's not about web development, because if so then
asking this question seems to disqualify you from teaching it. :-)

> I would like the certificate to be
> presented to the user as a single graphic. This means getting the
> persons name and date into the graphic. I don't want HTML text
> overlaying a background image.

Options abound. You could use ImageMagick or GD, which are both accessible
from a wide variety of languages:

<http://www.imagemagick.org>
<http://www.libgd.org>

Regardless of the toolkit or language you use, the general approach will be
the same: You'd composite the image layers on the server, using the static
background, generated text, and uploaded image. The result would be a bitmap
that you would then compress to either GIF or JPEG to return to a browser.

None of that is at all relevant to HTML though - it's all done on the server,
which produces either image/gif or image/jpeg data in its response. You'd
refer to the server-side app that produces the image the same way you would
any other image, with an img element:

<img src="make_image.cgi?id=bar">

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация