Skip to content

Commit

Permalink
Final commit (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
deathcrafter committed May 23, 2021
1 parent 8d250a7 commit 41e2f90
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 17 deletions.
41 changes: 27 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
# Text2Image
Convert Text to Image. Redirect your output into variable/file and then convert it to image. With our preset styles easily automate your screenshot capturing routine for your blog, twitter, etc.Image formats supported: Png, Bmp, Gif, Jpeg, Tiff.
Convert Text to Image. Redirect your output into variable/file and then convert it to image. With our various range of options, customize you text and save as an image.

Image formats supported:
- png
- bmp
- gif
- jpeg
- tiff

## Install Module
Sorry, for personal use.😔
But you can use it if you know how to.
```powershell
Install-Module -Name TextToImage
```

## Cmdlets
```powershell
Text-ToImage
ConvertTo-Image
```
or
```powershell
txt2img
```

## Dependencies
Expand All @@ -16,42 +28,43 @@ This module has no dependencies.
## Parameters
### ImageText or text (mandatory)
```powershell
Text-ToImage -text "lord death"
ConvertTo-Image -text "lord death"
```
### BackgroundMode (Transparent(default)/Solid)
```powershell
Text-ToImage -text "lord death" -Style "Transparent"
ConvertTo-Image -text "lord death" -Style "Transparent"
```
### SolidColor (format ARGB) (default 255,30,30,30 | only works with BackgroundMode Solid)
```powershell
Text-ToImage -text "lord death" -SolidColor "20,40,60,190"
ConvertTo-Image -text "lord death" -SolidColor "20,40,60,190"
```
### FontFace or font (default Segoe UI)
```powershell
Text-ToImage -text "lord death" -font "Comfortaa Regular"
ConvertTo-Image -text "lord death" -font "Comfortaa Regular"
```
### FontSize or size (default 11)
```powershell
Text-ToImage -text "lord death" -size 20
ConvertTo-Image -text "lord death" -size 20
```
### FontColor (default White, check [here](https://docs.microsoft.com/en-us/dotnet/api/system.drawing.brushes?view=net-5.0#properties) for more colors)
```powershell
Text-ToImage -text "lord death" -FontColor "AliceBlue"
ConvertTo-Image -text "lord death" -FontColor "AliceBlue"
```
### ImageName or name (default NewIamge)
```powershell
Text-ToImage -text "lord death" -name LordDeath
ConvertTo-Image -text "lord death" -name LordDeath
```
### ImageType or type (Png(default)/Bmp/Gif/Jpeg/Tiff)
```powershell
Text-ToImage -text "lord death" -type "Jpeg"
ConvertTo-Image -text "lord death" -type "Jpeg"
```
### ImagePath or path (default current directory)
```powershell
Text-ToImage -text "lord death" -path "D:\Death\"
ConvertTo-Image -text "lord death" -path "D:\Death\"
```
## EXAMPLE
```powershell
Text-ToImage -ImageText "Testing text2image mod" -BackGroundMode "Solid" -SolidColor "200, 255, 0, 255" -FontFace "Segoe UI Variable Display Semilight" -FontSize 18 -FontColor "MidnightBlue" -ImageName "LordDeath" -ImageType "png"
txt2img -ImageText "Testing text2image mod" -BackGroundMode "SolidColor" -SolidColor "200, 255, 0, 255" -FontFace "Segoe UI Variable Display Semilight" -FontSize 18 -FontColor "MidnightBlue" -ImageName "LordDeath" -ImageType "png"
```
Output:
![Example](https://github.com/deathcrafter/Text2Image/blob/master/LordDeath.png)
Binary file removed Text2Image.psd1
Binary file not shown.
Binary file added TextToImage.psd1
Binary file not shown.
6 changes: 3 additions & 3 deletions Text2Image.psm1 → TextToImage.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
Testing Text2Image Powershell Module
'. Using PuTTY style".
#>
function Text-ToImage
function ConvertTo-Image
{
[CmdletBinding(SupportsShouldProcess=$true,
[CmdletBinding(SupportsShouldProcess=$true,
PositionalBinding=$false,
ConfirmImpact='Medium')]
[Alias('t2i')]
[Alias('txt2img')]
Param
(
# Text which should be converted to Image
Expand Down

0 comments on commit 41e2f90

Please sign in to comment.