marcoo Posted April 19, 2004 Share Posted April 19, 2004 Hey guys, I'd like to print text, so it will go over background image. How can I do it from Linux command line? Link to comment Share on other sites More sharing options...
LordHatrus Posted April 20, 2004 Share Posted April 20, 2004 Good luck from the command line... :blink: Somehow I think this one goes beyond the use-emacs-for-everything reply... umm, fire up X and load some image software, methinks. Link to comment Share on other sites More sharing options...
kongit Posted April 20, 2004 Share Posted April 20, 2004 bootsplash? Link to comment Share on other sites More sharing options...
marcoo Posted April 20, 2004 Author Share Posted April 20, 2004 bootsplash? what do you mean? Link to comment Share on other sites More sharing options...
marcoo Posted April 20, 2004 Author Share Posted April 20, 2004 Good luck from the command line... :blink: Somehow I think this one goes beyond the use-emacs-for-everything reply... umm, fire up X and load some image software, methinks. can't do it. I have to create final file with image as bg and text over it then print it out. The big problem how to create such file. Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted April 20, 2004 Veteran Share Posted April 20, 2004 Print text? On what? Printer, screen, webpage, bootup screen, open shell in GUI? Give us a bit more to go on! :yes: Link to comment Share on other sites More sharing options...
marcoo Posted April 20, 2004 Author Share Posted April 20, 2004 Print text? On what? Printer, screen, webpage, bootup screen, open shell in GUI?Give us a bit more to go on! :yes: I've got image file & text. So, using console tools I want to make output file, which will have image as a background (like whatermark) and text over it on full page. Then just print it to printer. The big challenge is how to combine image & text (no graphic edit is usefull here). Thanks for ideas. Link to comment Share on other sites More sharing options...
kongit Posted April 20, 2004 Share Posted April 20, 2004 combining the image and the text should be possible in the console, but I have no idea how to do it. Link to comment Share on other sites More sharing options...
shimon Posted April 20, 2004 Share Posted April 20, 2004 it is in a console i remember reading it on mandrakeuser.com 's forums Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted April 20, 2004 Veteran Share Posted April 20, 2004 I've got image file & text. So, using console tools I want to make output file, which will have image as a background (like whatermark) and text over it on full page.Then just print it to printer. The big challenge is how to combine image & text (no graphic edit is usefull here). Thanks for ideas. I know that PHP has tools to do this through code. Never used it, though... Link to comment Share on other sites More sharing options...
MrStaticVoid Posted April 20, 2004 Share Posted April 20, 2004 (edited) I wrote you a quick program. It's written in Java. Place the class somewhere and from that directory run: java TxtToImg somefile.png sometext.txt The picture can be either a png, jpg, or gif. The text is just placed in somefile. The resulting image is placed where the program tell you. The text is written with Times New Roman size 12. You can change that by editing te source yourself. Needless to say you have to have that font installed. Otherwise change it to a more appropriate font. I hope it works for you. TxtToImg.class Edited April 20, 2004 by Mr. Static Void Link to comment Share on other sites More sharing options...
MrStaticVoid Posted April 20, 2004 Share Posted April 20, 2004 Source: TxtToImg.java Link to comment Share on other sites More sharing options...
metal_dragen Veteran Posted April 20, 2004 Veteran Share Posted April 20, 2004 If you have ImageMagick available on the machine in question, you could easily do this with the tools it provides as well. It would look something like this: # convert -font helvetica -fill white -pointsize 36 -draw 'text 10,50 "Your text here"' input.jpg output.jpg You can find more info on ImageMagick at their website. Link to comment Share on other sites More sharing options...
marcoo Posted April 20, 2004 Author Share Posted April 20, 2004 Thanks a lot for cool ideas. I will defenitelly try it out. Link to comment Share on other sites More sharing options...
kemical Posted April 21, 2004 Share Posted April 21, 2004 I wrote you a quick program. It's written in Java. Place the class somewhere and from that directory run: java TxtToImg somefile.png sometext.txt The picture can be either a png, jpg, or gif. The text is just placed in somefile. The resulting image is placed where the program tell you. The text is written with Times New Roman size 12. You can change that by editing te source yourself. Needless to say you have to have that font installed. Otherwise change it to a more appropriate font. I hope it works for you. nice and its even multiplatform ! :D Link to comment Share on other sites More sharing options...
Recommended Posts