Skip to content

Commit

Permalink
Resolve-Path while defining bitmap - Fixes #105
Browse files Browse the repository at this point in the history
  • Loading branch information
rashil2000 authored Jan 21, 2022
1 parent d14361e commit c3c9105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winfetch.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ $img = if (-not $noimage) {
}

Add-Type -AssemblyName 'System.Drawing'
$OldImage = New-Object -TypeName System.Drawing.Bitmap -ArgumentList $image
$OldImage = New-Object -TypeName System.Drawing.Bitmap -ArgumentList (Resolve-Path $image).Path
$ROWS = $OldImage.Height / $OldImage.Width * $COLUMNS


Expand Down

0 comments on commit c3c9105

Please sign in to comment.