diff --git a/subcommand_helpers.go b/subcommand_helpers.go index a1925a8..be1fc2c 100644 --- a/subcommand_helpers.go +++ b/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,