# Convert to PNG
magick mogrify -format png *.jpg
magick mogrify -format png -resize x1000 *.svg
inkscape -w 1024 -h 1024 input.svg --export-filename output.png
# Resize to uniform height
magick mogrify -resize x300 -quality 100 -path ./resized *.png
# Cut circle
find . -name *.png -exec sh -c 'convert {} -alpha on \( +clone -threshold -1 -negate -fill white -draw "circle 150,150 150,0" \) -compose copy_opacity -composite {}' sh \;
find . -name "*.jpg" -exec sh -c 'convert {} -alpha on \( +clone -threshold -1 -negate -fill white -draw "circle 150,150 150,0" \) -compose copy_opacity -composite ${1%.jpg}.png' sh {} \;
# Drop shadow
find . -name "*.png.png" -exec sh -c 'convert {} \( +clone -background black -shadow 60x5+10+10 \) +swap -background white -layers merge +repage ${1%}.jpg' sh {} \;
# Avatar
find . -name "*.png" -exec sh -c 'convert {} -background "#333333" -gravity center -extent 425x425 ${1%}-avatar.png' sh {} \;
convert <file>.jpg \( +clone -background black -shadow 60x5+10+10 \) +swap -background white -layers merge +repage <output>.jpg
-
Notifications
You must be signed in to change notification settings - Fork 0
isabella232/images-5
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Code of conduct
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published