Nations/recipe

# Get, create, or fix the SVG.
# Check the SVG at the validator; if invalid go back to (1)
# Convert the SVG to PNG, e.g., use rsvg-convert -o flag.png flag.svg
# Determine the width and height of the PNG, if it is 3:2 (2*w=3*h) go to (6)
# Add pixels to get a 3:2 PNG with 2*w'=3*h' for old w <= new w' and old h <= new h'
#* If 2*w < 3*h copy pixel columns at the right and/or left to get a new w'
#* If 2*w > 3*h copy pixel rows at the bottom and/or top to get a new h'
# Scale the new 3:2 PNG down to (in pixels) 45×30, 30×20, and 21×14
#* For 45×30 remove the right or left column to get the 44×30 flag-large.png
#* For 30×20 remove the right or left column to get the 29×20 flag.png
#* For 29×20 remove 10 right and/or left columns to get a temporary 19×20
#* For 19×20 remove the bottom or top row to get a temporary 19×19
#* For 21×14 remove 7 right and/or left columns to get a temporary 14×14
# Apply mask-large.png (or similar) on 19×19 to get flag-shield-large.png
# Apply mask-png (or similar) on 14×14 to get flag-shield.png
category:Technical docs