From 80d2e47ed36c32ad5d5397eeb1709b7c68e34bb2 Mon Sep 17 00:00:00 2001 From: Sean Whalen Date: Mon, 28 Oct 2024 21:04:34 -0400 Subject: [PATCH] 7.5.2 - Account for float SVG sizes --- CHANGELOG.md | 5 +++++ checkdmarc/_constants.py | 2 +- checkdmarc/bimi.py | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65cc451..4835a8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ Changelog ========= +7.5.2 +----- + +- Account for float SVG sizes + 7.5.1 ----- diff --git a/checkdmarc/_constants.py b/checkdmarc/_constants.py index 08024c4..9ab812e 100644 --- a/checkdmarc/_constants.py +++ b/checkdmarc/_constants.py @@ -18,7 +18,7 @@ See the License for the specific language governing permissions and limitations under the License.""" -__version__ = "5.7.1" +__version__ = "5.7.2" OS = platform.system() OS_RELEASE = platform.release() diff --git a/checkdmarc/bimi.py b/checkdmarc/bimi.py index 7d2c817..aeb7178 100644 --- a/checkdmarc/bimi.py +++ b/checkdmarc/bimi.py @@ -194,8 +194,8 @@ def get_svg_metadata(raw_xml: Union[str, bytes]) -> OrderedDict: base_profile = svg["@baseProfile"] view_box = svg["@viewBox"] view_box = view_box.split(" ") - width = int(view_box[-2]) - height = int(view_box[-1]) + width = float(view_box[-2]) + height = float(view_box[-1]) title = None if "title" in svg.keys(): title = svg["title"]