diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a97d0f..31c244d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 1.0.4 (January 23, 2018) + +- Fix: paste image get blank image issue (windows) + ## 1.0.3 (November 28, 2018) - Fix: paste translucent image get background issue (windows) diff --git a/package.json b/package.json index 3b2d482..6f84005 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-paste-image", "displayName": "Paste Image", "description": "paste image from clipboard directly", - "version": "1.0.3", + "version": "1.0.4", "publisher": "mushan", "author": { "name": "mushan", diff --git a/res/pc.ps1 b/res/pc.ps1 index 8475cb2..e8640ad 100644 --- a/res/pc.ps1 +++ b/res/pc.ps1 @@ -15,7 +15,7 @@ if (-not $imagePath) { Exit 1 } -$fcb = new-object Windows.Media.Imaging.FormatConvertedBitmap($img, [Windows.Media.PixelFormats]::Rgba64, $null, 0) +$fcb = new-object Windows.Media.Imaging.FormatConvertedBitmap($img, [Windows.Media.PixelFormats]::Rgb24, $null, 0) $stream = [IO.File]::Open($imagePath, "OpenOrCreate") $encoder = New-Object Windows.Media.Imaging.PngBitmapEncoder $encoder.Frames.Add([Windows.Media.Imaging.BitmapFrame]::Create($fcb)) | out-null