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

What is Framer? Join the Community
Return to index
Joe Howard
Posted Jan 05 - Read on Facebook

Hopefully an easy question here. How would I determine the native size of the image object so that I can resize the layer to fit the image?

layerA = new Layer
image: ""


Jordan Robert Dobson

How solid are you at JavaScript? You would likely have to add the image to a img tag, add event listener for it to be loaded and then inspect the size of the image.

Joe Howard

Yeah, I can handle the js. I had a brainfart and forgot about the asynchronous nature of web. Thanks for the reply

Read the entire post on Facebook