Path: blob/master/build/pkgs/gdmodule/patches/_gdmodule.c.patch
8815 views
diff -ru src/_gdmodule.c c/_gdmodule.c1--- src/_gdmodule.c 2005-03-11 06:06:26.000000000 +01002+++ c/_gdmodule.c 2012-05-06 00:59:07.453373313 +02003@@ -346,12 +346,12 @@4return write_file(self, args, 'p');5}67-8+#ifdef HAVE_LIBJPEG9static PyObject *image_writejpeg(imageobject *self, PyObject *args)10{11return write_file(self, args, 'j');12}13-14+#endif1516static PyObject *image_writegd(imageobject *self, PyObject *args)17{18@@ -1420,13 +1420,13 @@19"writePng(f)\n"20"write the image to f as a PNG, where f is either an open file object or a\n"21"file name."},22-23+#ifdef HAVE_LIBJPEG24{"writeJpeg", (PyCFunction)image_writejpeg, 1,25"writeJpeg(f,quality)\n"26"write the image to f as a JPEG, where f is either an open file object or a\n"27"file name. quality is an optional integer value giving the JPEG quality from\n"28"0 to 95%; leave out for default quality."},29-30+#endif31{"writeWbmp", (PyCFunction)image_writewbmp, 1,32"writeWbmp(f,fg)\n"33"write the image to f as a WBMP, where f is either an open file object or a\n"343536