# What is the difference between size and viewport size in vector drawables?

DevFeed: [What is the difference between size and viewport size in vector drawables?](<https://devfeed.tech/articles/what-is-the-difference-between-size-and-viewport-size-in-vector-drawables-37181.md>)

Original publisher: [Read original article](<https://arkadiuszchmura.com/posts/what-is-the-difference-between-size-and-viewport-size-in-vector-drawables/>)

Published: 2022-08-31T00:00:00Z

Content type: tutorial

Language: en

Sources: [Arkadiusz Chmura](<https://devfeed.tech/sources/arkadiusz-chmura.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [Canvas](<https://devfeed.tech/topics/canvas.md>), [App](<https://devfeed.tech/topics/app.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [app](<https://devfeed.tech/tags/app.md>), [canvas](<https://devfeed.tech/tags/canvas.md>), [code](<https://devfeed.tech/tags/code.md>), [compose](<https://devfeed.tech/tags/compose.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [pixels](<https://devfeed.tech/tags/pixels.md>), [screen](<https://devfeed.tech/tags/screen.md>), [vector](<https://devfeed.tech/tags/vector.md>)

## AI overview

A tutorial explains the difference between a vector drawable's intrinsic size and viewport size. Using a Jetpack Compose example, it shows that size determines the drawable's displayed dimensions, while viewport size defines the coordinate space used to draw its paths.

## Source excerpt

It always puzzled me so I decided to find out how are these things different.