Created
January 15, 2021 23:35
-
-
Save ajtatum/553b5ca83809b61d8f906ec3834255ff to your computer and use it in GitHub Desktop.
Using Photo CDN Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img | |
src="@CdnHelper.ConvertToPhotoCdn($"{primaryMediaImage.ImageUrl}?tr=w-252")" | |
srcset="@CdnHelper.ConvertToPhotoCdn($"{primaryMediaImage.ImageUrl}?tr=w-252"), | |
@CdnHelper.ConvertToPhotoCdn($"{primaryMediaImage.ImageUrl}?tr=w-378") 1.5x, | |
@CdnHelper.ConvertToPhotoCdn($"{primaryMediaImage.ImageUrl}?tr=w-504") 2x, | |
@CdnHelper.ConvertToPhotoCdn($"{primaryMediaImage.ImageUrl}?tr=w-756") 3x," | |
alt="@Model.Media.Title" title="@Model.Media.Title" class="coverphoto rounded hoverable" itemprop="image" sizes="252" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment