Solved

Create an Image on the fly ...

Posted on 2002-04-27
19
227 Views
Last Modified: 2008-03-10
My Requirement is as follows:
*****************************

1. I would be showing design templates of business cards to the user as a gif.

2. The user after selecting a particular design, would type in the details he want inside the business card in the text boxes provided.

3. On submitting, the page should get refreshed and the image (design template selected by the user) should contain those text in it.

Please note you can either use ASP or PHP as a scriting language. You can also use VB for creating a COM if need be but my final output should be in a webbrowser.
(You can check www.iprint.com for further details. That site has used .cgi to achieve this desired result). I am desperatly in need of that code ASAP.

Thanks & Regards
Vadivel
0
Comment
Question by:Vadivelmca
  • 3
  • 2
  • 2
  • +9
19 Comments
 
LVL 18

Accepted Solution

by:
bruno earned 250 total points
ID: 6973402
in ASP you need a object to do that:

http://www.serverobjects.com/comp/Aspimage.htm


in PHP i think the ability to do that is built right in....



BRUNO
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 6973485
PHP does not have built in support for that, you will need the gdlib to do that. After that it is fairly easy.

An object isn't necessary, but it does make life MUCH easier. ASP pages can write out images as long as the imagedata is written correctly (for example coming from a database).

CJ
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6973668
EXPERTS:

This has been cross-posted in 3 TAs at 500 per posting, you might want to get an undertaking from the questioner on how they intend to resolve that, considering the amount of work involved.

Cd&
0
 
LVL 20

Expert Comment

by:Silvers5
ID: 6973720
here you will find some dlls and their sample codes..

http://www.aspin.com/func/search?tree=aspin&qry=create+gif+image&cat=

no need for custom components.. you may use custom components to access the database and to do some business logic..


regards
0
 
LVL 20

Expert Comment

by:Silvers5
ID: 6973724
I see it as a homework..?
at EE we don't do full implementations of homeworks/tasks.. we mainly guid users to their destinations.. we may code some parts of the project.. fix errors.. so start by the guidelines we gave you..
(Urgent is a relative understanding)
0
 
LVL 1

Author Comment

by:Vadivelmca
ID: 6974368
brunobear:

I am going through the site you have specified. A basic doubt does ASPImage support adding or modifying of text into an image.

Silvers5:

I would go through the link you have specified and then discuss regarding that. In the mean time i thought i would clarify onething, I didn't expect a source code from anyone of you. I am just looking for some guidelines only.
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6974401
Guidlines???  How about, read a book or two...

This is a huge project...  I estimate $4K to $5K.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6974467
I have a simple ocx as a base (well, more than base), but i don't like to post here but in VB TA.
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 6974626
mgfranz,
indeed did it once. Paid well ;-)
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 2

Expert Comment

by:coreyit
ID: 6974677
>>> This is a huge project...  I estimate $4K to $5K

If I understand the requirements correctly, this is not at all a big deal. A simple solution, requiring server side technology, can be found through ImageMagick:
http://www.imagemagick.org

check out a perl-driven web demo at:
http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi

-corey
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6974959
coreyit,

"Please note you can either use ASP or PHP as a scriting language. You can also use VB for creating a
COM if need be but my final output should be in a webbrowser."

Last time I checked, Imagemagic was CGI...
0
 
LVL 15

Expert Comment

by:robbert
ID: 6975202
With ASP and/or VB, you would use

LeadTools Raster Imaging
http://www.leadtools.com/Home2/vertmkts/RasterEngine.htm

or

PegasusTools ImageXPress
http://www.pegasustools.com/products/imagxpress.htm

These tools are neither free but inexpensive but are usually the developers' choice when it comes to image editing.

Notes:

+ VB: If you have some experience using VB you could do basic image editing yourself, but you would save as JPG, not as GIF.
Myself, I am both able to save an image as JPG, and adding text to an image, but it would take me a few days to merge both projects.
So if you're a beginner with that it's probably easier to buy the above linked components.

+ PHP: PHP (as well as other languages other than ASP/VBScript) do have image editing modules but you won't find many experts for this in the ASP topic area.

+ GIF: The GIF compression algorithm is patented by www.unisys.com.
Products like (the mentioned) LeadTools or PegasusTools use this original algorithm, and include the license for client-side image processing (like a desktop application)
(their licensing policy for server-side applications has not been clearly communicated. hence, to be on the right way, you would contact them per email about that -- anyways, those components will work).
Free PHP and Perl imaging modules (like mentioned by coreyit) "may" produce GIF files, but by using another than the patented compression algorithm (a suboptimal one). That's why the GIF files saved by them look blurry, and why the process of saving a GIF takes so much time.
(After all, try to not use GIF. It's proprietary, and expensive.)
0
 
LVL 25

Assisted Solution

by:clockwatcher
clockwatcher earned 250 total points
ID: 6975504
I wrote one up as a demonstration for another questioner a few years back.  I can't find the stupid question to reference it.  But, he was interested in seeing it done using VB and ASP.

I put the demo back online (temporarily) at:

   http://ee.yahright.com/graffiti/  

All source code and files are in a zip at:

   http://ee.yahright.com/graffiti/graffiti.zip

See the readme in that file for more info.

I really suggest purchasing a control and using that (see robbert's or brunobear's comments), but if your interested in taking a look at some source code and how you might go about actually writing one in VB, feel free to download it and take a look.

BTW, it would have been much easier to write the control in Java or C++ (especially now with Microsoft's GDI+)-- but the questioner wanted it in VB.
0
 
LVL 6

Expert Comment

by:snoegler
ID: 6975679
As long as you have the GD library installed (which is free), you can create, load and manipulate JPEG, PNG, GIF, BMP images with w/o problems.

Short example:
http://devel.codefish.net/sample/sample.php4?text=This%20is%20an%20example%20of%20PHP%20and%20GDlib

Source code for the above example:
<?php
$img     =ImageCreateFromJPEG("../../images/water.jpg");
ImageString($img,5,100,100,"I'm dynamic: ".$HTTP_GET_VARS['text'],0xff0000);
ImageJPEG($img);
?>

That's all ;)
0
 
LVL 2

Expert Comment

by:coreyit
ID: 6979383
For ImageMagick with php, take a look at:
http://php.chregu.tv/imagick/

-corey
0
 
LVL 58

Expert Comment

by:Gary
ID: 8831859
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept Answer by clockwatcher
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
GaryC123
EE Cleanup Volunteer
0
 
LVL 18

Expert Comment

by:bruno
ID: 8837245
500 point Q, and certainly more than one good answer.  I believe my original comment should be worth something without feedback from the questioner.



I recommend a split please.
0
 
LVL 18

Expert Comment

by:bruno
ID: 8914117
thanks!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now