diff --git a/misc/gif-tests/low-colors-no-transparency.piskel b/misc/gif-tests/low-colors-no-transparency.piskel new file mode 100644 index 0000000..456651a --- /dev/null +++ b/misc/gif-tests/low-colors-no-transparency.piskel @@ -0,0 +1 @@ +{"modelVersion":2,"piskel":{"name":"low-colors-no-transparency","description":"","fps":12,"height":60,"width":60,"layers":["{\"name\":\"Layer 1\",\"frameCount\":2,\"base64PNG\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAA8CAYAAACtrX6oAAABZUlEQVR4nO3cwRHCMAxE0RSUGlIF1TBDMTRAi1BCsCVZK/kf/n0n7xr5+FzXd6fe57lVR/YHBxhggAEGGGCA9yj7gwMMMMAAAwwwwHsEcPOWAR/Px22dgM/367bywP+grsbORl2NHQJsgY2GVoONhnYH9sSNQFbGjUB2A46AjYBWho2AdgFegeuFXAXXC9kMvBLXA7kSrgeyCTgD14pcDdeKDDDAergW5Iq4FuQp4GxYC3JV3FlkgAHWxZ1Brow7gwwwwACrFQacDemBXB13FBlggAFWDGCAAQYYYNkABhhggAGWLQRYFXlk/wiwKvLIfoABBlitUGA15NHto8BqyKPbAQZYF3lm9wywCvLMbv6qLII8uxlggPWQLXstwFnIlr3cJokjW7dyXSiM7LGT+2BBaM99XPiLIXtv440OEeioTbyyk4i9YgfvZDUP4OYB3DyAmwdw8wBuHsDNA7h5ADcP4Ob9AHU/4CXfXtXyAAAAAElFTkSuQmCC\"}"],"expanded":false}} \ No newline at end of file diff --git a/misc/gif-tests/low-colors-with-transparency.piskel b/misc/gif-tests/low-colors-with-transparency.piskel new file mode 100644 index 0000000..f935a19 --- /dev/null +++ b/misc/gif-tests/low-colors-with-transparency.piskel @@ -0,0 +1 @@ +{"modelVersion":2,"piskel":{"name":"low-colors-with-transparency","description":"","fps":12,"height":60,"width":60,"layers":["{\"name\":\"Layer 1\",\"frameCount\":2,\"base64PNG\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAA8CAYAAACtrX6oAAABOUlEQVR4nO3bQWoDQQxEUR3Ix8lpAj5MTmovQsNgEmwYdZVG+h9q3+KtO4KIiIiIiIiIiIhoUN9fj7dr1O3n/ng39xvP9wlqI+xPUHtgn4G9IPQZ2OtBZ+JeADkTtzbyDtjC0Dtg60IrcAshK3DrICtxCyArcf3IDlwjsgPXiwxwY2AnrgHZiatHdsOKkd2wemQ3KsAbc4OKkd2gemQ3JsAAZ+bG1AK7IcXIbkg9shsRYIAzcyMCDHBybkSAAc7MjQgwwMm5EQEGODM3oh44oibyxtyQWtwIgAts570AF9jOe39zg4pwV25QLW4EwO2BI2ogC3PDanFXQ3BXs3AjAG4PHMHPhta4qyG4q1m4qyG4q1m4x5rDvjYH9tgQ3NUs3GPNYV+bA/tXTVH/awYqERERERERERFRVk8BxgukicHldgAAAABJRU5ErkJggg==\"}"],"expanded":false}} \ No newline at end of file diff --git a/misc/gif-tests/too-many-colors-no-transparency.piskel b/misc/gif-tests/too-many-colors-no-transparency.piskel new file mode 100644 index 0000000..431c0c8 --- /dev/null +++ b/misc/gif-tests/too-many-colors-no-transparency.piskel @@ -0,0 +1 @@ +{"modelVersion":2,"piskel":{"name":"Imported piskel","description":"","fps":12,"height":60,"width":60,"layers":["{\"name\":\"Layer 1\",\"frameCount\":2,\"base64PNG\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAA8CAYAAACtrX6oAAASsUlEQVR4nO2d+VdU9/nHbzRJPTELiitGbS05xIaj1UQ5SdSwSVhlcUVAQFxQEhUFRUF2Bhg2ZVFAwX0tTeKCWtt6jE3SLG3Ptz39/iNzZ+7M4A9Pf3g+z/08dxlsT3+bzg/PGXPvZ+5c8jrv9/N+7szcUfy/ewL+8cfgu/cIfF/dB9/YHfDd+i34rt8G75Vb4L14HbyjV8F77iJ4h0bBe/Y8eAeGQesbAq33LGinBkDr7getqw+0zl7QnKdAc/aA1t4NWls3aK1dWI7OwEVr2rrxec4ePE5nLx63ux9fp/csaH1D4B0YxvMYGsXzGr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REHrSK0MWk3tMkHzd47MActuPDL33wiTPU/h6iXlVoFbqQS3coRVpdhOShYqntJktGkKW3Z9mI9L5qDF32HSAVfJtwUtAYuPR+b+uzZZhituz7OipXqnvY1KnToHXC+Fg0uZAS4lDB9fCheQ5+M6oWJ1VrTRpilsrbXpw3xcMgctAlzVoCdpC2BK0PzaMwGmgEXjEZ99zf1Xt+c6pt5jAuphcCuHxOMRsZ1UXCdt2tyH+UxM4xIFLTPgghsySQcETAm6xAYwBSwaj+IYYOq/i2JAnb8S7fmtdzBIkXqnzBZw3wKX8qZ4nIHbScXTf47PC38P5+RFMbIPE+A4Ni5R0DIDLmFJ+j8FzC9wBAJMAYun50kBHwK3ckA8/huAw9qtQSsQ4JzL/wVgfoEjEGAKWJSeOeDXFiO4l+eiLSthAu4b4jEMt788V9j0YivgyHU2QSsA4O27/nvAIQUHmYJDPTjIenAoRQd5ig7Nwf8Dc3DoSlYQX8kKXYsO8mvRoXeTgvzdpND7wUH+fnDoEx1B/omO0GeygvszWaFPVQb5pypDn4sO9s9Fh77ZEOTfbAh9NynIv5sU+nZhkH+7MPT94CD/fnDoG/5B/g3/0D06gvweHaG77AT5XXZC98kK7vtkhe50F+R3ugvdqzLY71UZuttskN9tNnS/6CC/X3Toju9Bfsf30G82BPlvNoR+dSW4f3Ul9LtJQf67Sf9rv3z2LyvdE4qN5vJ0AAAAAElFTkSuQmCC\"}"],"expanded":false}} \ No newline at end of file diff --git a/misc/gif-tests/too-many-colors-with-transparency.piskel b/misc/gif-tests/too-many-colors-with-transparency.piskel new file mode 100644 index 0000000..8df45e2 --- /dev/null +++ b/misc/gif-tests/too-many-colors-with-transparency.piskel @@ -0,0 +1 @@ +{"modelVersion":2,"piskel":{"name":"Imported piskel","description":"","fps":12,"height":60,"width":60,"layers":["{\"name\":\"Layer 2\",\"frameCount\":2,\"base64PNG\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAA8CAYAAACtrX6oAAARx0lEQVR4nO2d6W8U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65IfSAo+Ml4Dg2LlHQMgMuY0n6RQHzCxzBAFPAClF6Nj/U193WoBUMcPbllwDML3AEA0wBS6TneQNsCFpBAOcdeHnAEQWHmYIjPfjFe7Dyi+jQjUmrYyGkPXgeUnTIx6R/9xStvLkudIDXxEJIU3RkDn75OVhZsh7+tfi/X/5S5coteN5Qz8HzcCVL/Y+Xh6wuaINX5kqW8uY6+Neit3/6hw0rNuP5Qn0lax6vRb8MZHVBG7xS16KVqI2gvLH2J0FWlsfged6Og5Bfi57nT5N+CmR1QRu8kp8m6Up+AbtWlsfg89ewcBXKT5N+hs+DXwSyAe6r+HmwErURlCXrQXlz3ZzpWonaCAa48/V58M/0jQ71Neec4Ut9zQm6Lb/q3+hQlr2L6TpqIyi/3CAraiNuX/YuHrdqm4Q7X9/o+Jm/k6UuaLMW7Qun72Qpb72PEJfHyFqxGbev3ILHvR0H8/2drMi3Kuf5W5XKaqFs+veaWNz/M32rMvK96HD/XnTklw1h/suGyG+Twvy3SZFfF4b5rwsjvw8O898HR37hH+a/8I/coyPM79ERuctOmN9lJ3KfrPC+T1bkTndhfqe7yL0qw/1elZG7zYb53WYj94sO8/tFR+74HuZ3fI/8zYYw/5sNkb+6Et5/dSXyd5PC/O8m/X/7y2f/BxWbhvQWNeYBAAAAAElFTkSuQmCC\"}"],"expanded":false}} \ No newline at end of file diff --git a/src/js/controller/settings/exportimage/GifExportController.js b/src/js/controller/settings/exportimage/GifExportController.js index 16bb046..9ca27fe 100644 --- a/src/js/controller/settings/exportimage/GifExportController.js +++ b/src/js/controller/settings/exportimage/GifExportController.js @@ -6,6 +6,7 @@ var MAX_EXPORT_ZOOM = 20; var DEFAULT_EXPORT_ZOOM = 10; var MAGIC_PINK = '#FF00FF'; + var WHITE = '#FFFFFF'; ns.GifExportController = function (piskelController) { this.piskelController = piskelController; @@ -105,10 +106,16 @@ var currentColors = pskl.app.currentColorsService.getCurrentColors(); var preserveColors = currentColors.length < MAX_GIF_COLORS; - var transparentColor = this.getTransparentColor(currentColors); + var transparentColor, transparent; // transparency only supported if preserveColors is true, see Issue #357 - var transparent = preserveColors ? parseInt(transparentColor.substring(1), 16) : null; + if (preserveColors) { + transparentColor = this.getTransparentColor(currentColors); + transparent = parseInt(transparentColor.substring(1), 16); + } else { + transparentColor = WHITE; + transparent = null; + } var gif = new window.GIF({ workers: 5, @@ -122,6 +129,9 @@ for (var i = 0 ; i < this.piskelController.getFrameCount() ; i++) { var frame = this.piskelController.getFrameAt(i); var canvasRenderer = new pskl.rendering.CanvasRenderer(frame, zoom); + if (preserveColors) { + + } canvasRenderer.drawTransparentAs(transparentColor); var canvas = canvasRenderer.render(); gif.addFrame(canvas.getContext('2d'), {