Skip to content

ConvertTo Image

apobekiaris edited this page Sep 4, 2020 · 3 revisions

external help file: XpandPwsh-help.xml Module Name: XpandPwsh online version: schema: 2.0.0

ConvertTo-Image

SYNOPSIS

Converts text to image with additional support for markdown.

SYNTAX

ConvertTo-Image [-Text] <String> [-OutputFile] <String> [[-MaximumSizeBytes] <Int32>] [[-MaximumWidth] <Int32>]
 [[-Width] <Int32>] [[-MinimumCanvasHeight] <Int32>] [<CommonParameters>]

DESCRIPTION

Converts text to image with additional support for markdown.

EXAMPLES

Example 1

PS C:\> ConvertTo-Image $text $imagePath -MaximumSizeBytes 500000 -MaximumWidth 1024

Generate an image for the $text and stores it in the $imagePath.

PARAMETERS

-MaximumSizeBytes

{{ Fill MaximumSizeBytes Description }}

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MaximumWidth

{{ Fill MaximumWidth Description }}

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MinimumCanvasHeight

{{ Fill MinimumCanvasHeight Description }}

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-OutputFile

{{ Fill OutputFile Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Text

{{ Fill Text Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Width

{{ Fill Width Description }}

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

System.Object

NOTES

RELATED LINKS

image

image


Star the project if you think it deserves it.

GitHub stars

Fork the project to extend and contribute.

GitHub forks

Clone this wiki locally