Customizing a Graphic

Discussion in 'Computer Support' started by grantroelofs, Jul 25, 2007.

  1. grantroelofs

    grantroelofs Guest

    I have web course on a website that I would like to generate a
    certificate for when completed. 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. I would also like the option for the
    user to upload an image which could also be put into the certificate.
    I want the user to be able to download this image, the big reason I
    want it all in a single graphic. Can someone offer me some advice on
    how to make these images automatically. I do want the quality to look
    as professional as possible.
    grantroelofs, Jul 25, 2007
    1. Advertisements

  2. grantroelofs

    thanatoid Guest

    wrote in

    Forgive me if I misunderstood, but YOU are TEACHING a COURSE???
    O N W H A T ???????
    thanatoid, Jul 25, 2007
    1. Advertisements

  3. grantroelofs

    Neredbojias Guest

    Well bust mah britches and call me cheeky, on Wed, 25 Jul 2007 04:09:03 GMT
    Don't think that can be done but I'd be happy to be proven wrong.
    Neredbojias, Jul 25, 2007
  4. That can be done with ImageMagick.
    Chris F.A. Johnson, Jul 25, 2007
  5. grantroelofs

    Pennywise Guest

    instead it can modify an already existing image

    He would need something that could generate images (persons name and
    such) as layers, then flatten the image.
    Pennywise, Jul 25, 2007
  6. 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. :)
    Options abound. You could use ImageMagick or GD, which are both accessible
    from a wide variety of languages:


    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 Pendley, Jul 25, 2007
  7. With ImageMagick, a command like this could be used to put the
    text "John Doe" onto the image xx.png:

    convert -font "-*-helvetica-bold-r-normal--*-240-*-*-*-*-*-*" \
    -fill black -draw "text 160,100 'John Doe'" \
    xx.png xxx.png

    Unfortunately, convert requires an X server, so it cannot be used
    in a CGI (or is there a way?).

    Another possibility is to write a PostScript file (see
    <>); ideally it should be
    converted to PDF, but that, too, requires X.
    Chris F.A. Johnson, Jul 25, 2007
  8. This is a simple process with Flash. All of the training we create
    have printable certificates when the courses are over. I believe you
    can find something at that will meet your needs.
    Travis Newbury, Jul 25, 2007
  9. Flash can do it...
    Travis Newbury, Jul 25, 2007
  10. grantroelofs

    Neredbojias Guest

    Well bust mah britches and call me cheeky, on Wed, 25 Jul 2007 10:01:15 GMT
    Travis Newbury scribed:
    The methods I've read about in this thread so far seem kind of hard. I
    want something easy, man, like a no-brainer.
    Neredbojias, Jul 25, 2007
  11. 'As professional as possible'? Does it need to be online? You could just
    set up a PDF-form with Adobe Acrobat where people can enter their name
    and insert their own image into a predefined text and image-field. This
    can be done pretty easy with Adobe Acrobat. If it needs to be online:
    let the person download the PDF-form, then she will complete the
    certificat offline, save it, and upload it again to your course-server...

    Just my two cents
    Bernhard Sturm, Jul 25, 2007
  12. While that seems appropriate, your end-goal isn't exactly HTML For Dummies.
    =?ISO-8859-1?Q?R=F4g=EAr?=, Jul 25, 2007
  13. grantroelofs

    Animesh K Guest

    Php can generate images, I think. Though am unsure if this can be done
    purely in html.

    Other option would be to generate a pDF from a latex installation on Linux.
    Animesh K, Jul 25, 2007
  14. Pretty much any server-side technology I can think of is capable of it.
    Some (like Macradobe's Generator) are specialized for just that.
    I can't imagine how it possibly could be - especially given the OP's
    requirements of the end result being a single graphics file with no
    overlaid HTML text.

    Sherm Pendley, Jul 25, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.