Closed Carln02 closed 1 year ago
Can you provide the following information?
.meta
file? (Some compression, mipmap or filter mode settings can cause this behavior)import picture from "src/assets/icons/--primary-main/star-filled.png";
export function App() {
return (<image source={picture} style={{width: '100px', height: '100px'}}/>);
}
Renderer.render(<App />);
I get the same pixelated output:
.meta
file.Here is the asset:
And thank you so much for the help!
I see. Image imports from file are imported with some default settings. I changed those settings to maximize quality now.
Fixed on main branch. I won't release a new version urgently as the problem only exists in development. In build, you have to go to the build folder and modify image import settings manually anyway.
Oh okay great!! Thank you for your help :)
Forgot to update, this is already fixed in 0.14.2
Hello! I started checking out your library recently and I encountered a small issue with images. Both non-rectangular PNGs and SVGs appear pixelated and low resolution, no matter how high the original resolution of the image is. Below you can find a screenshot of what I'm talking about. The star's image file is a 1028 by 1028px PNG.
Thank you!!