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

chore: reduce imgix usage - nfts #5413

Merged
merged 4 commits into from
Feb 22, 2024
Merged

Conversation

skylarbarrera
Copy link
Contributor

@skylarbarrera skylarbarrera commented Feb 15, 2024

Fixes APP-1169

What changed (plus any additional context for devs)

we may need to revisit the lowResUrls and make sure we are signing gifs ✅

Screen recordings / screenshots

What to test

NFTs should load and display properly

Copy link

linear bot commented Feb 15, 2024

w: isGIF ? cardSize : FULL_NFT_IMAGE_SIZE,
})) ?? null;
: url?.startsWith?.(GOOGLE_USER_CONTENT_URL)
? url.replace(/=s\d+$/, `?s=${FULL_NFT_IMAGE_SIZE}`)
Copy link
Member

Choose a reason for hiding this comment

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

i cant remember the context exactly, but i think i removed the google url stuff bc urls that did not end in ?s={size} were not getting resized

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good call out ill add a case for that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

looks like out initial logic was wrong at some point to and we were not resizing the images properly, google may have changed the param structure

im unable to find a url that doesnt have on a few wallets with my upcoming change so we should be good

@skylarbarrera skylarbarrera merged commit 5851f24 into develop Feb 22, 2024
5 of 6 checks passed
@skylarbarrera skylarbarrera deleted the @skylar/dont-sign-nft-images branch February 22, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants