Images in messages
Our SDK does a lot of work behind the scenes to fit your images into our message templates. Depending on the type of message you are sending, your image may be letterboxed or cropped to fit.
For example, images with a set width and height will letterbox to ensure they fit in the message. Full-screen messages, however, may crop images fit different device sizes. To prevent letterboxing or cropping, take a look at image size recommendations below.
Test on a real device 📲Even if you follow our image size recommendations, make sure you test all messages on a real device to ensure that everything looks exactly how you want it to.
Message type | Image size recommendations | Example image |
---|---|---|
Push images: iOS 12 requires an aspect ratio of 1:1 or 3:2. Other sizes of images will be trimmed to fit these guidelines. File size may not exceed 1MB. | ![]() | |
Background Image: Images that don't match the width:height of your message will shrink or stretch to fit. | ![]() | |
Background Image: Images that don't match the width:height of your message will shrink or stretch to fit. | ![]()
| |
Full-screen background image: Images may be cropped to fit the user's screen, depending on how the image size compares to the user's device. We recommend localizing your message to different devices to prevent cropping. | ![]() | |
Hero Image option:
Background Image option: Images that don't fit the aspect ratio of the message will shrink to fit, which may create blank spaces/ edges. | Hero image:\ | |
Hero Image option:
Background Image option: Images that don't fit the aspect ratio of the message will shrink to fit, which may create blank spaces/ edges. | Hero image:\ | |
Hero image option (appears on side of banner text): The width of the hero image is fixed at 100px and the height is set to 100% of the message height (defaults to 60px). So, for best results, use an image with an aspect ratio of 100:60. Remember, changing the message height will change the hero image's aspect ratio. Increasing to 70px, for example, would change the required ratio to 100:70. Background image option: To account for different device sizes, the background image will be letterboxed on some devices or in landscape orientation. For consistent results, set the message width equal to the image width. This will ensure the full image is always displayed (on devices wide enough to display it). | Hero image:\ |
Updated 28 days ago