How To Create A GD2 Image File From A JPG or GIF

The Nagios FAQ http://www.nagios.org/faqs/viewfaq.php?faq_id=97 says the following...

Title: How do I convert an image to GD2 format for use in the statusmap CGI?

FAQ ID: F0097

Submitted By: Ethan Galstad

Last Updated: 10/20/2002

Description: User wants to convert an image in PNG, JPEG, or other format to GD2 format for use in the statusmap CGI.

Solution: First, get your image in PNG format. Then convert the PNG image to GD2 format using the pngtogd2 utility. Use a chunk size of 0 during  the conversion to create an uncompressed GD2 image (compressed GD2 images slow down generation of the statusmap CGI image).

More information on the GD2 file format can be found at http://www.boutell.com/gd/.

Related FAQs: F0046 How do I beautify the CGIs with host and service icons? F0056 Where can I find host and service icons to beautify the CGIs?

Keywords: gd2 png

 

 

Match: Format: Sort by:
Refine search: