-
Notifications
You must be signed in to change notification settings - Fork 91
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
Image Trace double rendering and not replacing traced image #229
Comments
Made a small wrapper package to achieve what I was hoping for. Still curious why it wasn't working here. https://github.com/BrandonKlotz/next-image-trace-loader |
@BrandonKlotz Well, you get both variants at the same time ( useEffect(() => {
const originalImage = new Image()
originalImage.src = src.original
originalImage.onload = () => {
setLoaded(true)
}
}, [src]) Hope it helps :) |
Going to close this as a today I learned 😄 |
This may totally be a misunderstanding of the setup but I was trying to implement images loading with an SVG trace and then being replaced with the png image.
Actual Result
![Screen Shot 2021-02-05 at 4 08 25 PM](https://user-images.githubusercontent.com/19940878/107089804-3a5c0d80-67cd-11eb-9f4f-a16ce3e7177b.png)
Am I totally missing something? 🤣
Link to full repo:
https://github.com/BrandonKlotz/next-optimized-images-demo
The text was updated successfully, but these errors were encountered: