A recent major release for Amplifi has makes your image and media files available via AWS CDN (Content Delivery Network). This offers a HUGE performance increase for serving your media through your Amplifi portal or in your apps via API due to edge caching technology that creates regional cache stores around the globe.
As with previous releases of Amplifi, the CDN still allows you to do some magic with your system images when using them in other applications or sharing direct links to files. Previously this was accomplished utilizing query strings in the image path such as:
Elements included:
Base URL: https://amp-fs.amplifi.io/file
Query String: ?id=6d7cea13-b011-49e9-813b-e7b3276c5e9e&variant=thumb&extension=jpg
id: is the file system GUID
variant: includes options of large, medium, short, and thumb. Original files are viewed by excluding that key value pair
extension: the file version includes options for jpg and png
In the example URL above, the GUID is 6d7cea13-b011-49e9-813b-e7b3276c5e9e. With that information and an understanding of the new media path structure you can view all image variants for an image just by editing the URL. Here is how it works:
New path base URL: https://cdn.amplifi.pattern.com
Options for the new path file extension include:
Masterfile (no file extension needed):
guid
Large Variant
guid_large.jpg
guid_large.png
Medium Variant
guid_medium.jpg
guid_medium.png
Small Variant
guid_small.jpg
guid_small.png
Thumbnail Variant (no jpg)
guid_thumb.png
guid_thumb.webp
Formula to create links to CDN media:
https://cdn.amplifi.pattern.com + GUID + file extension options below
Using the GUID in the above example the path to the master file would be
Possible links to variants would include:
We hope you enjoy this new speed and additional flexibility when dealing with media from your Amplifi portal.