- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to convert a text string in a GIF file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 05:10 AM
07-02-2002 05:10 AM
how can I produce a GIF file containing the image of a text string?
thank you
Enrico
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 05:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 05:27 AM
07-02-2002 05:27 AM
Re: How to convert a text string in a GIF file
2. xv allows to produce an image by an editor ... I need something like
$ text2gif "mytext" out.gif
thank you
enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 05:50 AM
07-02-2002 05:50 AM
Re: How to convert a text string in a GIF file
you can use Macromedia Dreamweaver.
check this link out
http://www.macromedia.com/software/dreamweaver/productinfo/extend/insta.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 11:40 AM
07-02-2002 11:40 AM
Re: How to convert a text string in a GIF file
and JPEG images programmatically.
http://www.boutell.com/gd/
You can call GD from Perl, C, and some other
languages. Then you can use NetPBM or
whatnot to convert to GIF (if you absolutely
must).
The C code would look something like:
#include "gd.h"
#include "gdfontl.h"
...
gdImgPtr img = gdImageCreate(100, 100);
int black = gdImageColorAllocate(img, 0, 0, 0);
gdImageString(img, gdFontLarge, 10, 10, "foo", black);
gdImagePng(img, stdout);
The text support in GD is good enough for simple
uses. For fancy text, you could use the scripting
facility in the GIMP (http://www.gimp.org).
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2002 04:45 PM
07-02-2002 04:45 PM
Re: How to convert a text string in a GIF file
Compile with "cc -Ae -I/opt/local/include myprog.c -L/opt/local/lib
-lgd -lpng -lz -lm" (replace /opt/local/* with the appropriate
paths). To run it: "a.out | xv -"
#include "gd.h"
#include "gdfontl.h"
int main() {
gdImagePtr img = gdImageCreate(100, 100);
int white = gdImageColorAllocate(img, 255, 255, 255);
int black = gdImageColorAllocate(img, 0, 0, 0);
gdImageString(img, gdFontLarge, 10, 10,
(unsigned char *) "foo", black);
gdImagePng(img, stdout);
return(0);
}