~dricottone/image2ascii

f71f4386402373dca38ac2c263f74b65b93cc0c1 — qeesung 6 years ago 228de40
remove the useless code
1 files changed, 0 insertions(+), 2 deletions(-)

M convert/resize.go
M convert/resize.go => convert/resize.go +0 -2
@@ 3,7 3,6 @@
package convert

import (
	"fmt"
	"github.com/mattn/go-isatty"
	"github.com/nfnt/resize"
	terminal "github.com/wayneashleyberry/terminal-dimensions"


@@ 30,7 29,6 @@ func ScaleImage(image image.Image, options *Options) (newImage image.Image) {

	// use the ratio the scale the image
	if options.ExpectedHeight == -1 && options.ExpectedWidth == -1 && ratio != 1 {
		fmt.Println(ratio)
		newWidth = int(float64(sz.Max.X) * ratio)
		newHeight = int(float64(sz.Max.Y) * ratio * charWidth())
	}