Skip to content

Commit

Permalink
Merge pull request #144 from minotar/svg
Browse files Browse the repository at this point in the history
Emphasis crisp edges of SVG
  • Loading branch information
connor4312 committed Feb 16, 2015
2 parents e9d5695 + 815529c commit 37cf7bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (skin *mcSkin) WriteSVG(w io.Writer) error {
img := skin.Processed.(*image.NRGBA)

// Make a canvas the same size as the image.
canvas.Start(bounds.Max.X, bounds.Max.Y)
canvas.Start(bounds.Max.X, bounds.Max.Y, `shape-rendering="crispEdges"`)
// Loop through every pixel in the image.
for y := 0; y < bounds.Max.Y; y += 1 {
for x := 0; x < bounds.Max.X; x += 1 {
Expand Down

0 comments on commit 37cf7bd

Please sign in to comment.