Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PB-63: Add new babs icons in all three languages #80

Merged
merged 4 commits into from
Aug 23, 2024

Conversation

LukasJoss
Copy link
Contributor

No description provided.

@LukasJoss LukasJoss force-pushed the feat-PB-63-deploy-new-babs-icons branch 2 times, most recently from 59db179 to c719541 Compare August 23, 2024 13:06
@LukasJoss LukasJoss force-pushed the feat-PB-63-deploy-new-babs-icons branch 2 times, most recently from 3cf0334 to ca4e8c9 Compare August 23, 2024 13:37
@LukasJoss LukasJoss force-pushed the feat-PB-63-deploy-new-babs-icons branch from ca4e8c9 to 514573f Compare August 23, 2024 13:54
Copy link

@schtibe schtibe left a comment

Choose a reason for hiding this comment

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

👍

@LukasJoss LukasJoss merged commit e74422c into develop Aug 23, 2024
3 checks passed
@LukasJoss LukasJoss deleted the feat-PB-63-deploy-new-babs-icons branch August 23, 2024 14:41
)
self.assertEqual(width, expected_size)
if check_color:
if check_color:
Copy link
Member

Choose a reason for hiding this comment

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

What's the reason for no longer checking the correct icon size?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Most babs icons are neither square nor is either of their side length equal to 48. Since the front end will need to be adapted anyway to properly display such icons this check can be removed since an icon set which conforms to these rules should be check during its creation by the owner of the icon set and not by the service

Copy link
Member

Choose a reason for hiding this comment

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

I think, we need quadratic images, otherwise the dropdown gets messed up, right @pakb @boecklic ?
So, the idea would be, to resample non-quadratic svgs and convert them to quadratic pngs, while keeping the aspect ratio.
Just did a quick test using imagemagicks convert:
convert 030-D-EL.svg -resize 100x100 -background white -gravity center -extent 100x100 test.png seems to work well enough.
Probably the "100x100" needs to be adapted to something else, to make the result even "nicer".

Other option would be, to ask BABS to deliver all SVGs as square, e.g. by ensuring, that the white background canvas is quadratic, even if the colored symbol is not. No idea, if that would result in nicer converted pngs then.

Just noticed, that currently the BABS icons are transparent, while the new ones have a solid white background. Need to check with them.
Let's have a short discussion on this after the daily today. I'll need to contact BABS anyways to check on transparency, can check about the aspect ratio then, too.

Copy link

Choose a reason for hiding this comment

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

Maybe it could also be done in the build pipeline: https://www.npmjs.com/package/sharp

Copy link
Member

Choose a reason for hiding this comment

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

Maybe the transparent background issue is due to the conversion tool I used. But let's have a short meeting anyways to clarify transparency, size and shape of the icons anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants