Skip to content

Commit

Permalink
Merge pull request #98 from SciTools-incubator/webp_group_bugfix
Browse files Browse the repository at this point in the history
Webp group bugfix
  • Loading branch information
Malcolm Brooks authored Mar 9, 2018
2 parents caf02c9 + dbf9299 commit 600b2e6
Show file tree
Hide file tree
Showing 21 changed files with 101 additions and 87 deletions.
2 changes: 1 addition & 1 deletion ImageMetaTag/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'''

# see release_process for details on incrementing the version
__version__ = '0.6.11'
__version__ = '0.6.12'
__documentation__ = 'http://scitools-incubator.github.io/image-meta-tag/build/html/'

# list fo file formats which are valid for saving metadata to:
Expand Down
28 changes: 21 additions & 7 deletions ImageMetaTag/javascript/imt_dropdown.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ImageMetaTag dropdown menu scripting - vn0.6.11
// ImageMetaTag dropdown menu scripting - vn0.6.12
// ImageMetaTag is a python package built around a wrapper for savefig in
// matplotlib, which adds metadata tags to supported image file formats.
// See https://github.com/SciTools-incubator/image-meta-tag for details.
Expand Down Expand Up @@ -303,15 +303,29 @@ function update_selector(depth, options, selected) {
// now within the optgroup, add the options:
for (var i_opt=0, n_opt=optgroup.length; i_opt< n_opt; i_opt++){
// loop over the options, and write out a line for each one:
for (var j_opt=0, len_j=key_lists[depth].length; j_opt < len_j; j_opt++){
//
// first determine if this element of the group is valid for the current
// selection:
var opt_in_options=Boolean(false);
for (var j_opt=0, len_j=options.length; j_opt < len_j; j_opt++){
// first, get the index in key_lists[depth] to which i_opt refers
// as not every option is used in every selection:
if (key_lists[depth][j_opt] == optgroup[i_opt]){break};
if (options[j_opt] == optgroup[i_opt]){
opt_in_options=Boolean(true);
break;
};
};
if (optgroup[i_opt] == selected){
sel_text += " <option value=" + j_opt + " selected=selected>"+optgroup[i_opt]+"</option>\n";
} else {
sel_text += " <option value=" + j_opt + ">"+optgroup[i_opt]+"</option>\n";
if (opt_in_options){
// now work out the j_opt that's index of key_lists[depth], because that's what's needed
// for the selector:
for (var j_opt=0, len_j=key_lists[depth].length; j_opt < len_j; j_opt++){
if (key_lists[depth][j_opt] == optgroup[i_opt]){break;};
};
if (optgroup[i_opt] == selected){
sel_text += " <option value=" + j_opt + " selected=selected>"+optgroup[i_opt]+"</option>\n";
} else {
sel_text += " <option value=" + j_opt + ">"+optgroup[i_opt]+"</option>\n";
};
};
};
// close the optgroup:
Expand Down
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: fdcbb4bb15063786a80ea119d0108298
config: bdfaf075f5f44994bc4c99cd16c184db
tags: 645f666f9bcd5a90fca523b33c5a78b7
10 changes: 5 additions & 5 deletions docs/build/html/ImageDict.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>ImageMetaTag.ImageDict &mdash; ImageMetaTag 0.6.11 documentation</title>
<title>ImageMetaTag.ImageDict &mdash; ImageMetaTag 0.6.12 documentation</title>

<link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '0.6.11',
VERSION: '0.6.12',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
Expand All @@ -23,7 +23,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="ImageMetaTag 0.6.11 documentation" href="index.html" />
<link rel="top" title="ImageMetaTag 0.6.12 documentation" href="index.html" />
<link rel="next" title="ImageMetaTag.webpage" href="webpage.html" />
<link rel="prev" title="ImageMetaTag.db" href="db.html" />
</head>
Expand All @@ -43,7 +43,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="db.html" title="ImageMetaTag.db"
accesskey="P">previous</a> |</li>
<li><a href="index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
</ul>
</div>
<div class="sphinxsidebar">
Expand Down Expand Up @@ -399,7 +399,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="db.html" title="ImageMetaTag.db"
>previous</a> |</li>
<li><a href="index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
Expand Down
12 changes: 6 additions & 6 deletions docs/build/html/_modules/ImageMetaTag.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>ImageMetaTag &mdash; ImageMetaTag 0.6.11 documentation</title>
<title>ImageMetaTag &mdash; ImageMetaTag 0.6.12 documentation</title>

<link rel="stylesheet" href="../_static/sphinxdoc.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '0.6.11',
VERSION: '0.6.12',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
Expand All @@ -23,7 +23,7 @@
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="top" title="ImageMetaTag 0.6.11 documentation" href="../index.html" />
<link rel="top" title="ImageMetaTag 0.6.12 documentation" href="../index.html" />
<link rel="up" title="Module code" href="index.html" />
</head>
<body>
Expand All @@ -36,7 +36,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="../index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
<li><a href="index.html" accesskey="U">Module code</a> &raquo;</li>
</ul>
</div>
Expand Down Expand Up @@ -90,7 +90,7 @@ <h1>Source code for ImageMetaTag</h1><div class="highlight"><pre>
<span class="sd">&#39;&#39;&#39;</span>

<span class="c"># see release_process for details on incrementing the version</span>
<span class="n">__version__</span> <span class="o">=</span> <span class="s">&#39;0.6.11&#39;</span>
<span class="n">__version__</span> <span class="o">=</span> <span class="s">&#39;0.6.12&#39;</span>
<span class="n">__documentation__</span> <span class="o">=</span> <span class="s">&#39;http://scitools-incubator.github.io/image-meta-tag/build/html/&#39;</span>

<span class="c"># list fo file formats which are valid for saving metadata to:</span>
Expand Down Expand Up @@ -123,7 +123,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="../index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
<li><a href="index.html" >Module code</a> &raquo;</li>
</ul>
</div>
Expand Down
10 changes: 5 additions & 5 deletions docs/build/html/_modules/ImageMetaTag/db.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>ImageMetaTag.db &mdash; ImageMetaTag 0.6.11 documentation</title>
<title>ImageMetaTag.db &mdash; ImageMetaTag 0.6.12 documentation</title>

<link rel="stylesheet" href="../../_static/sphinxdoc.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '0.6.11',
VERSION: '0.6.12',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
Expand All @@ -23,7 +23,7 @@
<script type="text/javascript" src="../../_static/jquery.js"></script>
<script type="text/javascript" src="../../_static/underscore.js"></script>
<script type="text/javascript" src="../../_static/doctools.js"></script>
<link rel="top" title="ImageMetaTag 0.6.11 documentation" href="../../index.html" />
<link rel="top" title="ImageMetaTag 0.6.12 documentation" href="../../index.html" />
<link rel="up" title="ImageMetaTag" href="../ImageMetaTag.html" />
</head>
<body>
Expand All @@ -36,7 +36,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../../index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="../../index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
<li><a href="../index.html" >Module code</a> &raquo;</li>
<li><a href="../ImageMetaTag.html" accesskey="U">ImageMetaTag</a> &raquo;</li>
</ul>
Expand Down Expand Up @@ -885,7 +885,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../../index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="../../index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
<li><a href="../index.html" >Module code</a> &raquo;</li>
<li><a href="../ImageMetaTag.html" >ImageMetaTag</a> &raquo;</li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions docs/build/html/_modules/ImageMetaTag/webpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>ImageMetaTag.webpage &mdash; ImageMetaTag 0.6.11 documentation</title>
<title>ImageMetaTag.webpage &mdash; ImageMetaTag 0.6.12 documentation</title>

<link rel="stylesheet" href="../../_static/sphinxdoc.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '0.6.11',
VERSION: '0.6.12',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
Expand All @@ -23,7 +23,7 @@
<script type="text/javascript" src="../../_static/jquery.js"></script>
<script type="text/javascript" src="../../_static/underscore.js"></script>
<script type="text/javascript" src="../../_static/doctools.js"></script>
<link rel="top" title="ImageMetaTag 0.6.11 documentation" href="../../index.html" />
<link rel="top" title="ImageMetaTag 0.6.12 documentation" href="../../index.html" />
<link rel="up" title="ImageMetaTag" href="../ImageMetaTag.html" />
</head>
<body>
Expand All @@ -36,7 +36,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../../index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="../../index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
<li><a href="../index.html" >Module code</a> &raquo;</li>
<li><a href="../ImageMetaTag.html" accesskey="U">ImageMetaTag</a> &raquo;</li>
</ul>
Expand Down Expand Up @@ -1027,7 +1027,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../../index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="../../index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
<li><a href="../index.html" >Module code</a> &raquo;</li>
<li><a href="../ImageMetaTag.html" >ImageMetaTag</a> &raquo;</li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions docs/build/html/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Overview: module code &mdash; ImageMetaTag 0.6.11 documentation</title>
<title>Overview: module code &mdash; ImageMetaTag 0.6.12 documentation</title>

<link rel="stylesheet" href="../_static/sphinxdoc.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '0.6.11',
VERSION: '0.6.12',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
Expand All @@ -23,7 +23,7 @@
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="top" title="ImageMetaTag 0.6.11 documentation" href="../index.html" />
<link rel="top" title="ImageMetaTag 0.6.12 documentation" href="../index.html" />
</head>
<body>
<div class="related">
Expand All @@ -35,7 +35,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="../index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
</ul>
</div>
<div class="sphinxsidebar">
Expand Down Expand Up @@ -84,7 +84,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="../index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="../index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
Expand Down
10 changes: 5 additions & 5 deletions docs/build/html/db.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>ImageMetaTag.db &mdash; ImageMetaTag 0.6.11 documentation</title>
<title>ImageMetaTag.db &mdash; ImageMetaTag 0.6.12 documentation</title>

<link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '0.6.11',
VERSION: '0.6.12',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
Expand All @@ -23,7 +23,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="ImageMetaTag 0.6.11 documentation" href="index.html" />
<link rel="top" title="ImageMetaTag 0.6.12 documentation" href="index.html" />
<link rel="next" title="ImageMetaTag.ImageDict" href="ImageDict.html" />
<link rel="prev" title="ImageMetaTag.savefig" href="savefig.html" />
</head>
Expand All @@ -43,7 +43,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="savefig.html" title="ImageMetaTag.savefig"
accesskey="P">previous</a> |</li>
<li><a href="index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
</ul>
</div>
<div class="sphinxsidebar">
Expand Down Expand Up @@ -359,7 +359,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="savefig.html" title="ImageMetaTag.savefig"
>previous</a> |</li>
<li><a href="index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
Expand Down
10 changes: 5 additions & 5 deletions docs/build/html/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Index &mdash; ImageMetaTag 0.6.11 documentation</title>
<title>Index &mdash; ImageMetaTag 0.6.12 documentation</title>

<link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '0.6.11',
VERSION: '0.6.12',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
Expand All @@ -24,7 +24,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="ImageMetaTag 0.6.11 documentation" href="index.html" />
<link rel="top" title="ImageMetaTag 0.6.12 documentation" href="index.html" />
</head>
<body>
<div class="related">
Expand All @@ -36,7 +36,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
</ul>
</div>
<div class="sphinxsidebar">
Expand Down Expand Up @@ -403,7 +403,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">ImageMetaTag 0.6.11 documentation</a> &raquo;</li>
<li><a href="index.html">ImageMetaTag 0.6.12 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
Expand Down
Loading

0 comments on commit 600b2e6

Please sign in to comment.