Skip to content

Scale down height/width#13

Open
Daltz333 wants to merge 1 commit intowpilibsuite:mainfrom
Daltz333:fix-svg
Open

Scale down height/width#13
Daltz333 wants to merge 1 commit intowpilibsuite:mainfrom
Daltz333:fix-svg

Conversation

@Daltz333
Copy link
Copy Markdown
Member

@Daltz333 Daltz333 commented Feb 21, 2022

We are still setting <picture>. We don't seem to actually even be configuring <picture> for non-svg elements.

@Daltz333 Daltz333 requested a review from TheTripleV February 21, 2022 02:58
Copy link
Copy Markdown
Member

@TheTripleV TheTripleV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +148 to +149
soup_img.attrs["height"] = im_height * soup_img.attr["width"]/im_width
soup_img.attrs["width"] = soup_img.attrs["width"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
soup_img.attrs["height"] = im_height * soup_img.attr["width"]/im_width
soup_img.attrs["width"] = soup_img.attrs["width"]
soup_img.attrs["height"] = im_height
soup_img.attrs["width"] = im_width

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants