-
Notifications
You must be signed in to change notification settings - Fork 3
Feat/svg converter #6
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
Conversation
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.
Added some minor comments but other than that everything looks good!
.github/workflows/generate-png.yml
Outdated
|
||
- name: Install imagemagick | ||
run: | | ||
sudo apt-get install imagemagick |
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.
As you are using ubuntu-latest, I would use apt
instead of apt-get
as it's the new and more reliable version.
.github/workflows/generate-png.yml
Outdated
|
||
printf "\rProgress: [%${filled}s%${unfilled}s] %d%%" "$(printf '#%.0s' $(seq 1 $filled))" "$(printf ' %.0s' $(seq 1 $unfilled))" "$percentage" | ||
png_file="${file%.svg} 4k.png" | ||
convert -background none -density 700 "$file" -quality 100 -resize 4000 "$png_file" |
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.
Density of 700 seems quite high. Shouldn't this be 72 for digital things or 300 if we want to be safe for print? Lowering this would probably also reduce the file sizes.
9851b5d
to
7e3cc65
Compare
bf77732
to
7c31e5f
Compare
e0f998e
to
86b3f68
Compare
af0f67c
to
4d3b678
Compare
No description provided.