Skip to content

Conversation

@xlrod
Copy link
Contributor

@xlrod xlrod commented Jan 9, 2020

Enchancement #99

Added the -FavIcon parameter to New-HTML.
The parameter will accept these image formats: png, jpg, jpeg, svg and ico.
This can be used with the path for an image file or a link to an image file ending in these extensions.
The image files get converted to base64, while links are kept as is.

Image File
image

image

Link
image

image

If the extension is not in one of the valid formats, a warning will display.
image

If the path of the image cannot be resolved, a warning will display.
image

Added the `-FavIcon` parameter to `New-HTML`.
The parameter will accept these image formats: png, jpg, jpeg, svg and ico.
This can be used with the path of an image file or a link to an image file ending in these extensions.
If the extension is not in one of the valid formats, a warning will display.
If the path of the image cannot be resolved, a warning will display.
Added the `if` statement to check if the parameter is `$null`.
@PrzemyslawKlys
Copy link
Member

Can you please create examples showing some usage? So that it can be part of this commit? I like that you show it in here, but usually, examples are easier to find in the future ;)

Added two examples for the `-FavIcon` parameter in the `New-HTML` function.
@xlrod
Copy link
Contributor Author

xlrod commented Jan 9, 2020

Added examples for -FavIcon from a file path and another from a link.

@PrzemyslawKlys PrzemyslawKlys merged commit 5ce2c55 into EvotecIT:master Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants