A fix for jpeg saving, as it wasn't properly dealing with a colon for saving with quality.
This commit is contained in:
parent
7c9a18b16b
commit
34e02bec38
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ void process_rgba8_jpeg(T const& image, std::string const& t, std::ostream & str
|
|||
{
|
||||
#if defined(HAVE_JPEG)
|
||||
int quality = 85;
|
||||
std::string val = t.substr(4);
|
||||
std::string val = t.substr(5);
|
||||
if (!val.empty())
|
||||
{
|
||||
if (!mapnik::util::string2int(val,quality) || quality < 0 || quality > 100)
|
||||
|
|
Loading…
Add table
Reference in a new issue