With Direct URLs, you can use Canto’s CDN to easily share assets for downloading or embed them across the web.
This feature works with images and videos. If you would like to view how to embed videos, please refer to the following link.
How to enable Direct URLs in your Canto account
If you can’t find the Direct URLs section within the Information Page of an asset, it hasn't been configured yet. To do so, have a Canto Admin do the following:
- Navigate to Settings > Configuration Options > Custom Configuration
- Select the Information Page tab
- Move the Direct URLs section from the Fields area to anywhere in the Layout area
Note: Consumer-level users cannot see the Direct URLs section. Custom role users can if the privledge is enabled.
How to use Direct URLs
To grab a Direct URL, navigate to an image or video's Information Page and locate the Direct URLs section.
For images, the Original File URL provides you with the original image file in its original dimensions.
The Preview Image URL offers a low-res version with reduced dimensions. You can customize those dimensions by changing the number at the end of the URL, which will be the pixel measurement of the long side of the image (in the above screenshot, it's 800). . The pixel measurement of the short side will reduce at the same ratio. There are up to six predefined measurements you can use: 100, 240, 320, 500, 800 as well as 1200. You can see an example of this "on the fly" image resizing in the tutorial video at the end of this page.
Along with the six predefined measurements, there is a max size of 1200 x 1200 for a preview that can be generated. This is dependent on the original size of the file. For example, if the original size of a file is 1680 x 1080, using the 800 measurements can produce the original size of the asset as a preview.
To embed an image on a website or application that doesn’t have an “Image URL” box, open up the site's HTML editor and place the Direct URL in a <img> tag:
For videos, the Original File URL provides you with the video in its original file format and size.
The Low-Resolution MP4 URL offers a scaled downs version of your video as an MP4 file.
How To Use Direct URLs
Custom Image Resizing with Direct URLs