ImageMagic commands for "Cross Stitch Font 15a". The geometry is necessary to make sure all letters are the same height. ------------------------ # PNG: magick mogrify -size x275 -background white -format png *.svg magick mogrify -format png -strip -colors 100 -depth 4 *.png # TESTING: magick mogrify -size x800 -background white -format png *.svg ------------------------ # BEGIN CREATE Montage cd C:\____SunCatcherStudio\__nonWP\cross-stitch-letter-generator\fonts\cross-stitch-font-15a\svgMontage # 1. REMOVE OLD montage files. # 2. Make lines darker. $search = 'opacity:0.5' $replace_with = 'opacity:1.0' $base_dir = 'C:\____SunCatcherStudio\__nonWP\cross-stitch-letter-generator\fonts\cross-stitch-font-15a\svgMontage' $text_file_ext = 'svg' Get-ChildItem $base_dir -Recurse -Include "*.$text_file_ext" | ForEach-Object { (Get-Content $_.FullName) | ForEach-Object {$_ -replace $search, $replace_with} | Set-Content $_.FullName } # 3. Create small PNG files. magick mogrify -size x375 -background white -format png *.svg magick mogrify -format png -strip -colors 100 -depth 5 *.png # 4. Rename - so lower case letters are together. get-childitem *.png | foreach { rename-item $_ $_.Name.Replace("-letter-lowercase-", "-letter-zz-lowercase-") } # 5. Create Montage magick montage *.png -geometry +0+0 cross-stitch-alphabet-letters-15a-large.png # 6. Add Copyright Information. magick montage -label "SunCatcherStudio.com" cross-stitch-alphabet-letters-15a-large.png -pointsize 30 -geometry +0+0 cross-stitch-alphabet-letters-15a-large.png # 7. Add border / space magick convert -border 50 -bordercolor white cross-stitch-alphabet-letters-15a-large.png cross-stitch-alphabet-letters-15a-large.png # 8. Create PDF file. magick convert cross-stitch-alphabet-letters-15a-large.png -bordercolor none -border 50x50 -gravity Center -units PixelsPerInch -set density 300 cross-stitch-alphabet-letters-15a.pdf # 9. Resize PNG files. magick convert -resize 300x300 cross-stitch-alphabet-letters-15a-large.png cross-stitch-alphabet-letters-15a-small.png magick convert -resize 2000x2000 cross-stitch-alphabet-letters-15a-large.png cross-stitch-alphabet-letters-15a-large.png magick mogrify -format png -depth 4 *.png # END CREATE Montage # -------------------------------------- # PNG Large: magick mogrify -size x500 -background white -format png *.svg magick mogrify -format png -depth 10 *.png