+ remove the unnecessary empty palette from tostring2

(jonburgess777)
This commit is contained in:
Artem Pavlenko 2011-10-03 08:47:25 +00:00
parent c97399b0f6
commit 7387afd96f
2 changed files with 2 additions and 4 deletions

View File

@ -79,8 +79,7 @@ PyObject* tostring1( image_32 const& im)
// encode (png,jpeg)
PyObject* tostring2(image_32 const & im, std::string const& format)
{
mapnik::rgba_palette pal;
std::string s = save_to_string(im, format, pal);
std::string s = save_to_string(im, format);
return
#if PY_VERSION_HEX >= 0x03000000
::PyBytes_FromStringAndSize

View File

@ -63,8 +63,7 @@ PyObject* view_tostring1(image_view<image_data_32> const& view)
// encode (png,jpeg)
PyObject* view_tostring2(image_view<image_data_32> const & view, std::string const& format)
{
mapnik::rgba_palette pal;
std::string s = save_to_string(view, format, pal);
std::string s = save_to_string(view, format);
return
#if PY_VERSION_HEX >= 0x03000000
::PyBytes_FromStringAndSize