Sixel icon indicating copy to clipboard operation
Sixel copied to clipboard

Please document how to check the version installed

Open peterjc opened this issue 1 month ago • 6 comments

I remember looking at your Sixel support for PowerShell, but can't remember for sure if I tried installing it or not.

Is there an easy way to check if installed, and the version installed that could be added to your README please?

Cross reference https://github.com/BIRSAx2/mdcat/issues/56#issuecomment-6267766509 - I now have images from mdcat within PowerShell 🥳

peterjc avatar Oct 19 '26 13:10 peterjc

Hi @peterjc,

you can check if the module is installed with,

Get-Module -Name Sixel -ListAvailable

if you save it to a variable

$module = Get-Module -Name Sixel -ListAvailable
$module.Version.ToString()

i also have some fixes for InlineImageProtocol (iterm2) and KittyGraphics that i havn't finished, i'll try and get that done soon. might help with your issue.

Windows PowerShell support was added in version 0.4.0 i'd probably leave a recommendation for users to upgrade to PowerShell 7+ as it's alot better.

and i might need to drop Windows PowerShell support because Sixlabors don't seem to update the netstandard2.0 package anymore.. we'll see how that goes.

trackd avatar Oct 19 '26 16:10 trackd

Thanks - curiously it looks like I do not have this installed (Get-Module -Name Sixel -ListAvailable returns nothing), so I may have installed something else?

peterjc avatar Oct 19 '26 17:10 peterjc

Thanks - curiously it looks like I do not have this installed (Get-Module -Name Sixel -ListAvailable returns nothing), so I may have installed something else?

Check both windows powershell and powershell 7 if you have it installed. Separate module paths.

trackd avatar Oct 19 '26 18:10 trackd

I did check both windows powershell 5 and powershell 7 - and confess to being puzzled as to why images are working for me if it isn't from this module.

peterjc avatar Oct 19 '26 19:10 peterjc

@peterjc I think there may be some misunderstanding here. When you say images are working, are you referring to the fact that mdcat is now showing images for you? If so, that's got nothing to do with this module - mdcat does its own Sixel generation (technically it's using the icy_sixel library I think).

If you have this module installed, you should be able to render an image from the PowerShell command line with something like ConvertTo-Sixel -Path image.png

j4james avatar Oct 19 '26 20:10 j4james

Yes, that seems to be the case, apologies. I don't have your module installed.

I had not appreciated Microsoft had included basic sixel support, which is how mdcat can show images there.

Thank you!

peterjc avatar Oct 19 '26 21:10 peterjc