How Do I Embed a Single Asset?
Embedding a single asset in your website or landing pages can make updating the assets across multiple pages easy and accessible for all users.
- Click into an Asset.
- Select the Embed tab. (if you don't see that option please contact support@brandfolder.com to enable that on your account).
- Copy and paste the URL.
CDN URL Embed Options:
-
- CDN Link - Attachment: This allows users to embed the attachment without having to worry about position. It is a direct link to the attachment and is the most optimized version of the asset. A custom set of parameters can also be added by default on all attachment urls.
- NOTE: Must be on v2.1 of CDN in order to add default custom params to your CDN urls.
- CDN Link - Attachment: This allows users to embed the attachment without having to worry about position. It is a direct link to the attachment and is the most optimized version of the asset. A custom set of parameters can also be added by default on all attachment urls.
Other Options Available Under Additional CDN Links:
- CDN Link - Asset: This allows a user to embed an attachment which will update based off of the position in relation to the other attachments.
- CDN Link - Attachment (original file): This URL references the original attachment CDN URL without any predefined conversions or optimizations (params).
- CDN Link - Frame: This CDN URL option is useful for automatically resizing based on the container it is inside.
You can place this link in an image tag like <img src="link_here"> and when you update the asset, it will update the link wherever it lives. If an asset has multiple attachments, whatever attachment is in the top position will be displayed using this link.
Custom Preset CDN Links
Smart CDN presets automatically create 'renditions' but in an auto-focused, auto-cropped CDN link format. To enable custom presets that will show up in the embed tab, follow the directions for setting a custom preset in the Cropping Knowledge Base article. Once a preset is enabled expand the Custom Preset CDN Links Menu. Click the copy link button next to your preset of choice and paste where you desire.
Advanced Smart CDN Features
Cropping Assets
You can crop an image to the desired dimensions, then copy the CDN link of the cropped image.
Transformation and Conversion:
You can also achieve CDN links of cropped images by adjusting the parameters on the URL.
For example, let's say you have a Smart CDN URL such as https://cdn.brandfolder.io/YUHW9ZNT/as/6skcfbkq/brandfolder_icon_aqua.png.



Auto Extension:

support
- v1: https://cdn.brandfolder.io/YUHW9ZNT/as/6skcfbkq/brandfolder_icon_aqua.auto
- v2: https://cdn.brandfolder.io/YUHW9ZNT/as/6skcfbkq/brandfolder_icon_aqua?auto=webp
Live Updating:
Any time you update an Asset in Brandfolder, associated Smart CDN links embedded throughout the wild will also update to reflect those changes.
Automatic Expiration:
If you expire, un-approve or delete the asset in Brandfolder, the Smart CDN link will automatically expire as well (it may stay cached for up to 24 hours).
Contact Support@brandfolder.com to manually expire the cache if you need it to expire faster, which usually takes about 10-15 minutes for it to change across the world.
Embedding Video Assets
Embedding video assets is slightly different than image assets. Brandfolder provides a basic iframe with our video player embedded into it. Users can control the size of the iframe as well as a number of optional parameters for videos.
Example Embedded Video
Example Embed Code
Loop
Allows video to loop after it has finished playing.
- loop
- default: false
- options: boolean - true or false
Muted
Determines whether sound is muted when the player loads. This is useful for when using autoplay setting due to browser autoplay restrictions.
- muted
- default: false
- options: boolean - true or false
Autoplay
Automatically play the video upon load.
- autoplay
- default: false
- options: boolean - true or false
Do Note:
Using Brandfolder to autoplay a video when a page loads is not a simple issue. This stems from browser vendors responding to user wishes to NOT have videos autoplay. The most reliable way is to set autoplay=true&muted=true since many browsers (including Chrome) will not autoplay videos with audio.
Be careful not to delete the asset when using this feature!
Additional Notes
All customers with CDN included in their account are default enabled with CDN v2.1. CDN v2.1 includes:
- Faster rendering of files via the CDN URL
- Multiple sets of parameters
- Reliable and hardened outcome of processing
- The ability to set custom parameters on all CDN URLs that will also be available when the CDN URL is requested via the API
If you have any questions on CDN or embedding assets please reach out to the support team at support@brandfolder.com