You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How are you deploying your application? (if relevant)
next start
Describe the Bug
I don't know the actual size of the remote image, I want to display the size of the remote image itself, So I wrapped the following component according to the online tutorial, mainly through onLoadingComplete to get the size of the remote image
This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.
Verify canary release
Provide environment information
Operating System:
Platform: linux
Arch: arm64
Version: #102-Ubuntu SMP Fri Nov 5 16:30:45 UTC 2021
Binaries:
Node: 16.16.0
npm: 8.11.0
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 12.2.5
eslint-config-next: 12.0.7
react: 18.2.0
react-dom: 18.2.0
What browser are you using? (if relevant)
chrome 106.0.5249.119
How are you deploying your application? (if relevant)
next start
Describe the Bug
I don't know the actual size of the remote image, I want to display the size of the remote image itself, So I wrapped the following component according to the online tutorial, mainly through onLoadingComplete to get the size of the remote image
But the original size obtained is wrong. For example, my original image size is 78px, but the output is 16px
Expected Behavior
I want to get the correct size of the original remote image
Link to reproduction
https://codesandbox.io/s/recursing-dew-7pvsu1?file=/pages/index.jsx
To Reproduce
The text was updated successfully, but these errors were encountered: