Updates to fix failing image options
This commit is contained in:
parent
219ad1f2cc
commit
4fce3a7451
4 changed files with 7 additions and 3 deletions
|
@ -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\\.")
|
||||
;
|
||||
}
|
||||
|
||||
|
|
|
@ -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")
|
||||
{
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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")
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue