Skip to content

Commit

Permalink
un-premultiply thumbnail pixels before rendering to canvas
Browse files Browse the repository at this point in the history
fixes #1189
  • Loading branch information
audionerd committed Jul 11, 2018
1 parent b5100e2 commit f604610
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/js/window/main-window.js
Expand Up @@ -2876,12 +2876,16 @@ const renderThumbnailToNewCanvas = (index, options = { forceReadFromFiles: false

if (!options.forceReadFromFiles && index === currentBoard) {
// grab from current sketchpane (in memory)
let pixels = storyboarderSketchPane.sketchPane.extractThumbnailPixels(
size[0],
size[1],
storyboarderSketchPane.visibleLayersIndices
)

SketchPaneUtil.arrayPostDivide(pixels)

let canvas = SketchPaneUtil.pixelsToCanvas(
storyboarderSketchPane.sketchPane.extractThumbnailPixels(
size[0],
size[1],
storyboarderSketchPane.visibleLayersIndices
),
pixels,
size[0],
size[1]
)
Expand Down

0 comments on commit f604610

Please sign in to comment.