Updates to fix failing image options

This commit is contained in:
Blake Thompson 2015-05-15 15:25:52 -05:00
parent 219ad1f2cc
commit 4fce3a7451
4 changed files with 7 additions and 3 deletions

View file

@ -42,9 +42,9 @@ struct image_options_grammar
;
pair = key >> -('=' >> value)
;
key = char_("a-zA-Z_") >> *char_("a-zA-Z_0-9")
key = char_("a-zA-Z_") >> *char_("a-zA-Z_0-9\\.")
;
value = +char_("a-zA-Z_0-9")
value = +char_("a-zA-Z_0-9\\.")
;
}

View file

@ -52,6 +52,8 @@ void process_rgba8_jpeg(T const& image, std::string const& type, std::ostream &
{
auto const& key = kv.first;
auto const& val = kv.second;
if ( key == "jpeg" ) continue;
if ( key == "quality")
{

View file

@ -53,7 +53,7 @@ void handle_tiff_options(std::string const& type,
{
auto const& key = kv.first;
auto const& val = kv.second;
if (key == "tiff") continue;
if (key == "compression")
{
if (val && !(*val).empty())

View file

@ -55,6 +55,8 @@ void handle_webp_options(std::string const& type,
{
auto const& key = kv.first;
auto const& val = kv.second;
if (key == "webp") continue;
if (key == "quality")
{