#Lower the resolution of every component i'm using

6 messages · Page 1 of 1 (latest)

fathom barn
#

Hello,
Is it possible to lower the resolution of every components I'm using?
I already optimized my player with low resolution video but I wonder if it's possible to lower the resolution of my animated div/svg i'm using?

eager prairie
#

divs and svgs are vector graphics!
therefore you cannot "lower the resolution"

fathom barn
#

@eager prairie Thanks for your response but i'm wondering how do some web base editor manage to lower the resolution for the text & svg ? (This one doesn't use Remotion)

eager prairie
fathom barn
eager prairie
#

when you scale vectors, they don't get pixelated
when you scale bitmaps (like videos) they do get pixelated

usually that gets you the best optics at any scale
if you want to rasterize a vector, for example to preview how the pixel grid will be laid out, like when you zoom in in figma, then that is more complicated

you need to draw it a canvas and set image-rendering: pixelated I think https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/image-rendering

MDN Web Docs

The image-rendering CSS property sets an image scaling algorithm. The property applies to an element itself, to any images set in its other properties, and to its descendants.