Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Use cdn for NFT images #2894

Merged
merged 4 commits into from
Dec 12, 2023
Merged

feature: Use cdn for NFT images #2894

merged 4 commits into from
Dec 12, 2023

Conversation

jorbuedo
Copy link
Contributor

@jorbuedo jorbuedo commented Nov 9, 2023

image image image image

@jorbuedo jorbuedo added proposal Feature proposal for triage. Required for non-trivial features. feature dont-merge labels Nov 9, 2023
@jorbuedo jorbuedo self-assigned this Nov 9, 2023
@jorbuedo jorbuedo requested a review from pedromtcosta November 9, 2023 16:05
@jorbuedo
Copy link
Contributor Author

Waiting for resize method to be added to the cdn

@jorbuedo jorbuedo added the blocked Blocked label Nov 14, 2023
@stackchain stackchain added this to the 5.0.0 milestone Nov 14, 2023
@jorbuedo jorbuedo marked this pull request as draft November 15, 2023 11:14
@jorbuedo
Copy link
Contributor Author

jorbuedo commented Nov 17, 2023

Latest commit untested (preprod db is down)
Will finish Monday

@jorbuedo jorbuedo marked this pull request as ready for review November 20, 2023 11:41
@jorbuedo jorbuedo removed proposal Feature proposal for triage. Required for non-trivial features. dont-merge blocked Blocked labels Nov 20, 2023
@jorbuedo jorbuedo marked this pull request as draft November 20, 2023 16:46
@jorbuedo jorbuedo marked this pull request as ready for review November 21, 2023 09:14
queryKey: ['native-asset-img', policy, name, `${width}x${height}`, resizeMode],
queryFn: async () => {
const response = await fetch(
`https://${network}.cardano-nativeassets-prod.emurgornd.com/${policy}/${name}?width=${width}&height=${height}&kind=${kind}&fit=${resizeMode}`,
Copy link
Member

@stackchain stackchain Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO:

  • Move to the wallet api interface .getTokenImage

@jorbuedo
Copy link
Contributor Author

@stackchain Ready to merge from my side

@stackchain
Copy link
Member

@stackchain Ready to merge from my side

I think on FE is done, still some images are not going through the CDN, holding for a bit while BE figures it out.

@stackchain stackchain self-requested a review December 11, 2023 13:03
@stackchain stackchain modified the milestones: 4.24.0, 4.25.0 Dec 12, 2023
@stackchain stackchain merged commit 56b8e98 into develop Dec 12, 2023
2 checks passed
@stackchain stackchain deleted the yomo-903 branch December 12, 2023 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants