-
Notifications
You must be signed in to change notification settings - Fork 603
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
Conversation
src/utils/handleNFTImages.ts
Outdated
w: isGIF ? cardSize : FULL_NFT_IMAGE_SIZE, | ||
})) ?? null; | ||
: url?.startsWith?.(GOOGLE_USER_CONTENT_URL) | ||
? url.replace(/=s\d+$/, `?s=${FULL_NFT_IMAGE_SIZE}`) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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