This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Spencer Brooks
Posted Feb 17 - Read on Facebook

Hey folks,

N00b question. How do I get the dimensions (x and y pixels) of an image embed in a layer?

2 Comments

Floris Verloop

An image that is set with the 'image' property is set as a background via CSS, which is pretty inconvenient to work with when you want to get dimensions and positioning data (it's totally doable, just requires some extra work). It would be easier to create a custom layer that would function as the background layer. Here's an example: http://share.framerjs.com/9w59y7tx0332/

Spencer Brooks

Thanks Floris! Exactly what I needed. You're a scholar and gentleman.

Read the entire post on Facebook