-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: $image
variable not working correctly.
#210
Comments
Can you share the image file also? |
Hey, im currently receiving this issue too
Error: PS C:\Users\Joshua> winfetch
~/celebi.png
Invoke-WebRequest: C:\Users\Joshua\scoop\apps\winfetch\current\winfetch.ps1:374
Line |
374 | … itmap]::FromStream((Invoke-WebRequest $image -UseBasicParsing).RawCon …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Invalid URI: The hostname could not be parsed.
RuntimeException: C:\Users\Joshua\scoop\apps\winfetch\current\winfetch.ps1:378
Line |
378 | [int]$ROWS = $OldImage.Height / $OldImage.Width * $COLUMNS / …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Attempted to divide by zero.
InvalidArgument: C:\Users\Joshua\scoop\apps\winfetch\current\winfetch.ps1:379
Line |
379 | $Bitmap = New-Object System.Drawing.Bitmap @($OldImage, [Draw …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot convert value "35," to type "System.Drawing.Size". Error: " is not a valid value for Int32. (Parameter
| 'value')"
InvalidOperation: C:\Users\Joshua\scoop\apps\winfetch\current\winfetch.ps1:426
Line |
426 | $Bitmap.Dispose()
| ~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
InvalidOperation: C:\Users\Joshua\scoop\apps\winfetch\current\winfetch.ps1:427
Line |
427 | $OldImage.Dispose()
| ~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.```
Picture:
![celebi](https://github.com/user-attachments/assets/de76a986-7b19-4433-8afb-2b2244af5564) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using winfetch@latest Powershell Script. I am trying to use a
.png
image orASCII
art as the image to the left of the details display.However, when using this image, I encounter an error:
Here is my config file:
I am not sure why -BasicParsing is trying to connect to a host to load my image from a filepath. I am not very experienced at PS, so not the best eyes to look over the script, and it needs more than ChatGPT can do...
The text was updated successfully, but these errors were encountered: