From fc681bf0eebaaed73e03b6b07813ac39b366a0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E4=B8=96=E6=88=90?= Date: Fri, 26 Oct 2018 10:18:41 +0800 Subject: [PATCH] Add some convert to fixed the lint issue --- convert/convert.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/convert/convert.go b/convert/convert.go index 58068fa..3a4e2ce 100644 --- a/convert/convert.go +++ b/convert/convert.go @@ -6,7 +6,9 @@ import ( "github.com/qeesung/image2ascii/ascii" "image" "image/color" + // Support decode jpeg image _ "image/jpeg" + // Support deocde the png image _ "image/png" "log" "os" @@ -21,6 +23,7 @@ type Options struct { Colored bool } +// DefaultOptions for convert image var DefaultOptions = Options{ Ratio: 1, ExpectedWidth: -1, -- 2.45.2