Repository navigation
Import XKCDTerminalImage
Redisplays a comic's image from a file previously saved with Export-XKCDTerminalImage.
Import-XKCDTerminalImage [-Path] <String[]> [-ProgressAction <ActionPreference>] [<CommonParameters>]
The Import-XKCDTerminalImage cmdlet reads a file saved by Export-XKCDTerminalImage and writes its saved terminal graphics escape sequence straight to the console, without needing network access or having to regenerate the image data again.
The saved file records which inline graphics protocol (Sixel, Kitty, or iTerm2) it was rendered for. Import-XKCDTerminalImage warns you if that doesn't match the protocol detected for the terminal you're importing it into, since the image may not display correctly in that case.
Import-XKCDTerminalImage -Path .\2000.xkcdterm.json
Displays the terminal image previously saved to '.\2000.xkcdterm.json'.
Get-ChildItem C:\XKCD\*.xkcdterm.json | Import-XKCDTerminalImage
Displays every terminal image saved in C:\XKCD.
Export-XKCDTerminalImage -Num 353 -PassThru | Import-XKCDTerminalImage
Exports comic number 353 and immediately redisplays it from the saved file.
Path to one or more files previously saved with Export-XKCDTerminalImage. Accepts array and pipeline input, including FileInfo objects (e.g. from Get-ChildItem or Export-XKCDTerminalImage -PassThru).
Type: String[]
Parameter Sets: (All)
Aliases: FullName
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False{{Fill ProgressAction Description}}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
https://github.com/markwragg/Powershell-XKCD/wiki/Import-XKCDTerminalImage