Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 15th, 2008, 08:04 AM
jasisurfu jasisurfu is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 5 jasisurfu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 3 m 27 sec
Reputation Power: 0
Lightbulb Change text of an image

Hai everybody

I wish to change the text of an jpg/gif image from javascript

that means i get some text from the user and i wish to set this new text on the image where the old text contains with the same effect of old text of image.

what to do for it.

pls help me.

with regards
asarjas

Reply With Quote
  #2  
Old June 15th, 2008, 08:06 AM
jasisurfu jasisurfu is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 5 jasisurfu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 3 m 27 sec
Reputation Power: 0
it is my emergency need

Reply With Quote
  #3  
Old June 15th, 2008, 08:32 AM
benno32's Avatar
benno32 benno32 is offline
/*
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2007
Posts: 501 benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 1 h 2 m 39 sec
Reputation Power: 391
If the text is a part of the image ie: pixels/bitmap you will have some serious difficulty changing it with javascript. The best you could do is open the JPG in an image editing program, clone out the text and then use a combination of CSS and Javascript to super impose text over the top. This probably wont help you if the text uses a decorative font. You could resort to Flash if you need to use a specialty font.
__________________
---| The Universe|

Reply With Quote
  #4  
Old June 15th, 2008, 08:44 AM
jasisurfu jasisurfu is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 5 jasisurfu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 3 m 27 sec
Reputation Power: 0
Lightbulb Change text of an image by externally

I tried to do in flash using the flash script it is working.

but my need is

I have an image with text having some effects. I create a page and put image , textbox and button. After the user enter the text and click button. Then the text in image will change.but it must have the old text effects.

what to do

regards
asarjas

Reply With Quote
  #5  
Old June 16th, 2008, 03:48 AM
benno32's Avatar
benno32 benno32 is offline
/*
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2007
Posts: 501 benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 1 h 2 m 39 sec
Reputation Power: 391
What sort of effects are we talking about?

Reply With Quote
  #6  
Old June 16th, 2008, 05:22 AM
jasisurfu jasisurfu is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 5 jasisurfu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 3 m 27 sec
Reputation Power: 0
Question

emboss,texture applying, color gradiant, outlining and more.

If suppos i dont need to do this effects then it will be possible to me. Also i did it just using some layers using css and javscript in html.

But i dont know how we put effects. For example the image had the text as "BABLU" with embedding, texture and outling effects which is developed in photoshop. In our page we enter the text in the textbox and click the button. then the new text will replace the old text. But the new text have the old text's effects. That's all i need. i don't a way to do this. Help me please.

with regards
asarjas

Reply With Quote
  #7  
Old June 16th, 2008, 05:31 AM
benno32's Avatar
benno32 benno32 is offline
/*
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2007
Posts: 501 benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 1 h 2 m 39 sec
Reputation Power: 391
Hmmm ... that could be quite tricky.
You can do this inside of Photoshop CS3
using a feature called Smart Objects.

However you would need Photoshop server or
other third party *expensive* software to produce
the effect on the web.

Which brings us back to Flash. You might be able to use
variable text in flash with a bitmap fill. You could include
some effects like drop shadow blur etc.

Reply With Quote
  #8  
Old June 16th, 2008, 08:56 AM
jasisurfu jasisurfu is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 5 jasisurfu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 3 m 27 sec
Reputation Power: 0
Hai Thanks for your reply.

But I achieve the target using flash. But I dont want to include in my page as swf. I need it as animated gif/jpg/png formate. In flash i use textbox and button whithin the flash. Ok fine. If i export that as animated gif the file is fully running. There is no time to give input and click on button.

I explain it breefly. I use an image, variable text, input text and button for this. First the image and the variable text with some text is displayes. I asking them if they wish they can able to change the text. Then user give input and submit it. The new text will replace the old text with the same effect of old one. If it will be a swf format it will working fine. But i need it as animated gif/jpg/png formate. in these there is no time to enter the input. it is going onl running. What to do to stop and give input and change the text.

Also I wish to ask you as do you know about filter

with regards
asarjas

Reply With Quote
  #9  
Old June 16th, 2008, 02:43 PM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Dev Shed God 22nd Plane (15500 - 15999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 15,956 Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 8th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 3 Weeks 5 Days 14 h 30 m 32 sec
Reputation Power: 1533
I seem to recall hearing about people using ImageMagick with PHP. Perhaps it could be used to do this. (Don't ask me how though.)
__________________
Spreading knowledge, one newbie at a time.

Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions

Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

I'm looking for new clients.

Reply With Quote
  #10  
Old June 17th, 2008, 05:24 AM
benno32's Avatar
benno32 benno32 is offline
/*
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2007
Posts: 501 benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 1 h 2 m 39 sec
Reputation Power: 391
You can convert Flash content to a JPG or a PNG using the JPGEncoder and PNGEncoder classes which come with Adobes corelib package.
It is hosted with google code here. I am sure you can apply filters to the text after it is entered using Actionscript You just might have to apply it to a bitmapData object first.

Reply With Quote
  #11  
Old July 3rd, 2008, 01:41 PM
highvoltageads highvoltageads is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2008
Posts: 1 highvoltageads User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 18 sec
Reputation Power: 0
Editing text in an image online

I found this thread as I was searching for the same sort of solution. The difference is that I will not require a large assortment of design styles but can stick to basic font type and minimal size change. I would like to find a solution that can allow my customers overlay text in a template design and then save it as a jpeg. I am a designer with a fair amount of web experience but I am really looking for a solution that is viable and easy to use for the novice. That is why I am limiting the changes to the image. I am looking for substitution rather than design. any help would be greatly appreciated

Thanks
R

Reply With Quote
  #12  
Old July 4th, 2008, 06:34 AM
benno32's Avatar
benno32 benno32 is offline
/*
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2007
Posts: 501 benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level)benno32 User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 1 h 2 m 39 sec
Reputation Power: 391
The only ways I can think of to do this is either using a server side technology like PHP or ActionScript in Flash. Both require some programming skills. Do you know and Actionscript or PHP?

Perhaps if you used Cascading Style Sheets to position your text on top of your template you might be able to use a firefox plug-in to save the page as a jpg. Then you could use a minimal amount of javascript to dynamically set your text.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Change text of an image


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |