Generate a HTML tag that uses a CID source to display an image. This is used in emails for images, in which an attached image can be embedded into the email body. If the image is a png, jpg or bmp, the file will be scaled down to the provided 'max_height' and 'max_width', preserving the aspect ratio. If the file is a gif, tiff or webp, the file will be scaled down without preserving the aspect ratio.
1 | embed_image_cid(file_path, max_height = 800, max_width = 800)
|
file_path |
Path of an existing image file. |
max_height |
The maximum height of the image, in pixels. The image will be scaled down to the largest size that meets this contraint whilst preserving the aspect ratio of the image. |
max_width |
The maximum width of the image, in pixels. The image will be scaled down to the largest size that meets this contraint whilst preserving the aspect ratio of the image. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.