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-91: Added script to Makefile to convert svg images to pngs #75

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

rebert
Copy link
Contributor

@rebert rebert commented Jan 8, 2024

No description provided.

@rebert rebert force-pushed the feat-PB-91-create-png branch 2 times, most recently from bc763f1 to 8cebbc8 Compare January 9, 2024 12:33
@rebert rebert requested review from hansmannj and ltshb January 9, 2024 12:38
@rebert rebert marked this pull request as ready for review January 9, 2024 12:38
@rebert
Copy link
Contributor Author

rebert commented Jan 9, 2024

for testing: 974517877189.dkr.ecr.eu-central-1.amazonaws.com/service-icons:local-ltrea-67f982c

Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

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

Script looks good, just some docu and remove the makefile target.

Comment on lines +154 to +156
global opts # pylint: disable=global-variable-undefined
opts = validate_args(sys.argv)
svg2png()
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of using the global pass the opts to svg2png() function.

Makefile Outdated
Comment on lines 70 to 71
@echo -e " \033[1mMaintenance TARGETS\033[0m "
@echo "- svg2png Convert svg images to pngs SVG_DIR= ($(SVG_DIR)) SYMBOL_CATH= (f.ex. babs2) ($(SYMBOL_CATH))"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see the plus value to have this make target, the direct usage of the python is probably much easier. I personnaly would remove this target and add a short readme in the README.md file about this tool and how to use it.

Copy link
Member

@hansmannj hansmannj left a comment

Choose a reason for hiding this comment

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

Thanks a lot, also for deploying and testing!
You documented a problem with nor quadratic icons in the ticket comments: https://jira.swisstopo.ch/browse/PB-63

Is there only one non-quadratic icon per set?
If so, IMHO it would be easier if we ask BABS to adapt the single icon, than for us adapting the service.
As far as I know, we only have quadratic icons so far. Non quadratic icons could mess up the nice layout of the dropdown menu for selecting the icons, I guess.

What's your take on this @rebert @boecklic @pakb @ltshb --> Probably better to document this discussion in the ticket comments, rather than here: https://jira.swisstopo.ch/browse/PB-63

@rebert rebert merged commit d17d49b into develop Jan 12, 2024
3 checks passed
@rebert rebert deleted the feat-PB-91-create-png branch January 12, 2024 12:17
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