Skip to content

Commit

Permalink
7.5.2
Browse files Browse the repository at this point in the history
- Account for float SVG sizes
  • Loading branch information
seanthegeek committed Oct 29, 2024
1 parent fba6d47 commit 80d2e47
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

7.5.2
-----

- Account for float SVG sizes

7.5.1
-----

Expand Down
2 changes: 1 addition & 1 deletion checkdmarc/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions checkdmarc/bimi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 80d2e47

Please sign in to comment.