Browse Source

Stop post-proc earlier if no upscaling needed

pull/15/head
makeworld 5 years ago
parent
commit
2404e20cd3
  1. 8
      subcommand_helpers.go

8
subcommand_helpers.go

@ -271,15 +271,15 @@ func recolor(src image.Image) image.Image {
func postProcImage(img image.Image) image.Image {
img = recolor(img)
if upscale == 1 {
return img
}
var palette color.Palette
if p, ok := img.(*image.Paletted); ok {
palette = p.Palette
}
if upscale == 1 {
return img
}
img = imaging.Resize(
img,
img.Bounds().Dx()*upscale,

Loading…
Cancel
Save