Command
New-HTMLImage
Creates IMG tag with image link or image bundled inline
Syntax
New-HTMLImage [[-AlternativeText] <String>] [[-Class] <String>] [-DisableCache] [[-Height] <Object>] [-Inline] [[-Source] <String>] [[-Target] <String>] [[-UrlLink] <Uri>] [[-Width] <Object>] [<CommonParameters>]#Parameter set:
All Parameter SetsExamples
EXAMPLE 1
New-HTMLImage -Source 'https://evotec.pl/image.png' -UrlLink 'https://evotec.pl/' -AlternativeText 'My other text' -Class 'otehr' -Width '100%'Parameters
- -AlternativeText String
- Specifies an alternate text for the image, if the image for some reason cannot be displayed
- -Class String
- Overwrites default CSS settings for links
- -DisableCache SwitchParameter
- -Height Object
- Height of an image (optional)
- -Inline SwitchParameter
- Inserts given Image URL/File directly into HTML
- -Source String
- Link to an image or file path to an image
- -Target String
- The target attribute specifies where to open the linked document. - _blank Opens the linked document in a new window or tab - _self Opens the linked document in the same frame as it was clicked (this is default) - _parent Opens the linked document in the parent frame - _top Opens the linked document in the full body of the window Additionally framename can be given. Default is _blank
- -UrlLink Uri
- Specifies the URL of the page the link goes to when user clicks an image
- -Width Object
- Width of an image (optional)
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.