-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
bc763f1
to
8cebbc8
Compare
for testing: |
There was a problem hiding this 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.
global opts # pylint: disable=global-variable-undefined | ||
opts = validate_args(sys.argv) | ||
svg2png() |
There was a problem hiding this comment.
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
@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))" |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
8cebbc8
to
386ccd8
Compare
No description provided.