commit 282cb9c7f4ab20abeeccda1c3498596f98a28a28
parent 9f8964affe255c8b6f0ae65e3c1cf9e496dac34a
Author: Jack Mordaunt <jackmordaunt@gmail.com>
Date: Mon, 29 Jan 2018 19:30:17 +0100
[*] Adjusted Todo's.
Diffstat:
2 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/doc.go b/doc.go
@@ -14,5 +14,4 @@
// - Create Decoder (.icns -> image.Image)
// - Encode based on input image format (jpg -> jpg, png -> png) to avoid
// lossy conversions
-// - Allow configuraton of resize algorithm
package icns
diff --git a/icns.go b/icns.go
@@ -11,9 +11,6 @@ import (
// img is assumed to be a rectangle; non-square dimensions will be squared
// without preserving the aspect ratio.
// Uses nearest neighbor as interpolation algorithm.
-//
-// Note, Todo(jackmordaunt): The underlying image encoding used for the icons
-// is png, resulting in a lossy conversion if the source image is jpg.
func Encode(wr io.Writer, img image.Image) error {
iconset, err := NewIconSet(img, NearestNeighbor)
if err != nil {