mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
+ remove the unnecessary empty palette from tostring2
(jonburgess777)
This commit is contained in:
parent
c97399b0f6
commit
7387afd96f
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user