<!-- manual page source format generated by PolyglotMan v3.2, --> <!-- available at http://polyglotman.sourceforge.net/ --> <html> <head> <title>IM_PNG(3) manual page</title> </head> <body bgcolor='white'> <a href='#toc'>Table of Contents</a><p> <h2><a name='sect0' href='#toc0'>Name</a></h2> im_png2vips, im_png2vips - convert PNG images to and from VIPS format <h2><a name='sect1' href='#toc1'>Synopsis</a></h2> #include <vips/vips.h> <p> int im_png2vips( const char *filename, IMAGE *out ) <p> int im_vips2png( IMAGE *in, const char *filename ) <p> <h2><a name='sect2' href='#toc2'>Description</a></h2> <a href='im_png2vips.3.html'><b>im_png2vips(3)</a> </b> reads the png image in filename, and writes the image out in VIPS format. <p> <a href='im_vips2png.3.html'><b>im_vips2png(3)</a> </b> reads the image in and writes a PNG file to the specified filename. The filename may include an optional mode string, following a ’:’ character, which you can use to specify compression and interlace. <p> The mode string has the following syntax: <p> <compression>,<interlace><br> <p> where <compression> is an integer between 0 and 9 specifying the amount of compression (6 is the default), and <interlace> is 0 for no interlace (this is the default) and 1 for ADAM7 interlace. <p> Beware that writing an interlaced image is potentially up to 7 times slower than writing a non-interlaced image. <p> The image is automatically converted to RGB or Monochrome (with an optional alpha channel) before saving. <p> <h2><a name='sect3' href='#toc3'>Examples</a></h2> <p> The call: <p> im_vips2png fred.v fred.png <br> <p> Writes a compression 6, uninterlaced PNG image. <p> im_vips2png fred.v fred.tif:,1<br> <p> Writes an interlaced image. <p> <h2><a name='sect4' href='#toc4'>See Also</a></h2> <a href='im_open.3.html'>im_open(3)</a> , <a href='im_vips2tiff.3.html'>im_vips2tiff(3)</a> <h2><a name='sect5' href='#toc5'>Copyright</a></h2> Hey, you want this? You have it! <p> <hr><p> <a name='toc'><b>Table of Contents</b></a><p> <ul> <li><a name='toc0' href='#sect0'>Name</a></li> <li><a name='toc1' href='#sect1'>Synopsis</a></li> <li><a name='toc2' href='#sect2'>Description</a></li> <li><a name='toc3' href='#sect3'>Examples</a></li> <li><a name='toc4' href='#sect4'>See Also</a></li> <li><a name='toc5' href='#sect5'>Copyright</a></li> </ul> </body> </html>