apply text effects (decoration) from text in jpg/gif file

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: apply text effects (decoration) from text in jpg/gif file

Post by fmw42 »

cuongvt wrote:hi all
is there a way to apply text effects (decoration) from text in jpg/gif file to another text?
thanks and regards

Sorry, but I do not fully understand your question. Can you provide more details or an example of what you need to do.

But keep in mind that once text is converted to an image, it is near impossible to convert back to text (except with OCR software). If you want the text to be re-usable, then you should convert that from text to PDF format.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: apply text effects (decoration) from text in jpg/gif file

Post by fmw42 »

cuongvt wrote:Sorry for unclear post.
Support that I have a jpg or gif file with only text in it. Let's say: this text in "example"
with effect something like bunring fire.
And I have another black-color text read from excel file,
let's say this text is "This text will have burning fire effect also".
And I want to apply the burning fire effect of text in jpg file to the black-color text.
Is this capable with IM?
thanks and regards,
No, I don't think that is possible. Once the text becomes an image, all information is lost about the styles, effects and even the font from which the text was created. You will have to figure out what those parameters were and convert your new text with those same kinds of features. Basically an image (in jpg, gif, png, tiff format) knows nothing about what is in the image other than it has pixels of different colors. It has no way of even knowing what the text was.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: apply text effects (decoration) from text in jpg/gif file

Post by anthony »

However if you have an image that is say plain black text on a white background, thne a lot of image transformations can be applied to convert that text into fance 'compound' text image.

For some examples of this see... IM Examples, Compound Fonts
http://www.imagemagick.org/Usage/fonts/
Especially the last dozen or so examples such as:
Arch, Arc, Circle, Vibrato, Comet, Smoking

However for further help we will need a specific example to work with.

The only difference between 'annotating' a trext string, and using a text image, is that you 'compose' the image rather than 'draw' the text.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: apply text effects (decoration) from text in jpg/gif file

Post by fmw42 »

with good art work and animation techniques from IM, you could probably reproduce something like that.
Post Reply