From 3c6804aee72da032cbdb2755c7373b6eddfdf20a Mon Sep 17 00:00:00 2001 From: tznind Date: Wed, 25 Sep 2024 19:15:30 +0100 Subject: [PATCH] Move license to top of page and credit both source repos --- Terminal.Gui/Drawing/SixelEncoder.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Terminal.Gui/Drawing/SixelEncoder.cs b/Terminal.Gui/Drawing/SixelEncoder.cs index 65924bb4c..bccc2f8fc 100644 --- a/Terminal.Gui/Drawing/SixelEncoder.cs +++ b/Terminal.Gui/Drawing/SixelEncoder.cs @@ -1,7 +1,14 @@ -using Terminal.Gui; +// This code is based on existing implementations of sixel algorithm in MIT licensed open source libraries +// node-sixel (Typescript) - https://github.com/jerch/node-sixel/tree/master/src +// Copyright (c) 2019, Joerg Breitbart @license MIT +// libsixel (C/C++) - https://github.com/saitoha/libsixel +// Copyright (c) 2014-2016 Hayaki Saito @license MIT + +using Terminal.Gui; namespace Terminal.Gui; + /// /// Encodes a images into the sixel console image output format. /// @@ -62,13 +69,6 @@ public class SixelEncoder return start + defaultRatios + completeStartSequence + noScaling + fillArea + pallette + pixelData + terminator; } - /** - * This method is adapted from - * https://github.com/jerch/node-sixel/ - * - * Copyright (c) 2019 Joerg Breitbart. - * @license MIT - */ private string WriteSixel (Color [,] pixels) {