Skip to content

Images

Learn how to add, modify, and remove images on Braze Docs. For general information about images, see Content Management.

Prerequisites

If you haven’t already, complete the steps for Contributing to Braze Docs.

Adding a new image

Step 1: Add the image file

In your text editor, open assets > img. Generally, your new image should be added to the same directory as the other images on your page. However, you may use your best judgment. Confirm your new image follows the Braze Docs Style Guide, then add the PNG file to the relevant subdirectory.

1
2
3
4
5
braze-docs
└── assets
    └── img
        └── DIRECTORY
            └── FILE.png

Replace the following:

Placeholder Description
DIRECTORY The name of the relevant directory. If there’s no relevant directory, you may create one.
FILE The name of the file including the file extension.

Your image file should be similar to the following:

1
2
3
4
5
braze-docs
└── assets
    └── img
        └── contributing 
            └── github_home_page.png

When linking to your new image, you can either use in-line or reference-style syntax. In-line syntax prioritizes clarity, while reference-style syntax prioritizes readability.

In your Markdown file, link to your new image using the in-line syntax.

1
![ALT_TEXT.]({% image_buster /assets/img/DIRECTORY/IMAGE.png %})

Replace the following:

Placeholder Description
ALT_TEXT The alt text for the image. This is required to ensure Braze Docs is equally accessible for those using screen readers.
IMAGE The relative path to your image starting from the img directory.

Your in-line image should be similar to the following:

1
![The form for creating a new pull request on GitHub.]({% image_buster /assets/img/contributing/getting_started/github_pull_request.png %})

In your Markdown file, link to your new image using the reference-style syntax.

1
![ALT_TEXT.][REFERENCE_NUMBER]

Replace the following:

Placeholder Description
ALT_TEXT The alt text for the image. This is required to ensure Braze Docs is equally accessible for those using screen readers.
REFERENCE_NUMBER Assign any positive integer that’s not already assigned to another reference-style link on this page.

Your in-line image should be similar to the following:

1
![The form for creating a new pull request on GitHub.][10]

At the bottom of the page, add your reference.

1
[REFERENCE_NUMBER]: {% image_buster /assets/img/DIRECTORY/IMAGE.png %}

Replace the following:

Placeholder Description
REFERENCE_NUMBER The number of the reference you’d like to link to.
IMAGE The relative path to your image starting from the img directory.

Your links should be similar to the following:

1
[10]: {% image_buster /assets/img/contributing/getting_started/github_pull_request.png %}

Updating an image

Step 1: Find the original reference

Open the relevant Markdown file and look for the old in-line or reference-style image link, which will be similar the following.

1
{% image_buster /assets/img/DIRECTORY/IMAGE.png %}

Step 2: Update the image

When updating an existing image, you can either add a new image file or replace the existing image file. Be sure your new image follows the Braze Docs Style Guide.

  • Overwrite existing file (recommended): Use this method if the original image depicts accurate content, but is visually out-of-date, such as an image depicting old branding. This method reduces the total number of images stored in the Braze Docs repository.
  • Add new file: Use this method if the original image depicts completely out-of-date content, such as an image depicting a deprecated feature or workflow.

Rename your new image to match the name of the original image. In the following example, see how the image file names are identical.

  • Original file name: getting_started_with_github_select_start3.png
  • New file name: getting_started_with_github_select_start3.png

Next, add your new image to the same directory as the original image. If asked, confirm you’d like to overwrite the image. Your image file should be similar to the following:

1
2
3
4
5
braze-docs
└── assets
    └── img
        └── contributing 
            └── getting_started_with_github_select_start3.png

Generally, your new image should be added to the same directory as the other images on this page, however you may use your best judgment. When you’re ready, add the PNG file to the relevant location in assets/img/.

1
2
3
4
5
braze-docs
└── assets
    └── img
        └── DIRECTORY
            └── FILE.png

Replace the following:

Placeholder Description
DIRECTORY The name of the relevant directory. If there’s no relevant directory, you may create one.
FILE The name of the file including the file extension.

Your image file should be similar to the following:

1
2
3
4
5
braze-docs
└── assets
    └── img
        └── contributing 
            └── github_home_page.png

After your image is added to the relevant directory, you can link to this image using the in-line or reference-style syntax.

Removing an image

To remove an image, open the relevant Markdown file and remove the in-line or reference-style image link. Do not delete the image file from the repository.

HOW HELPFUL WAS THIS PAGE?
New Stuff!