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

What is Framer? Join the Community
Return to index
Thomas Offinga
Posted May 23 - Read on Facebook

Is there a way to import Retina assets, but display them on 'regular' size on desktop? Everytime I import something as 2x it shows it in double size.

3 Comments

Kees Plattel

for layer, index in sketch.subLayers
layer.scale = 0.5 ?

(Basically run a for loop over the imported layers and scale everything half the size?) There's probably a better way

Blaine Billingsley

I usually just add a "/2" on the height and width of the layer if I'm importing images ad hoc. For a sketch import, the for loop for everything is the way to go. I personally prefer actually changing the dimensions rather than scaling everything, but that's just preference

Dmitry Sholkov

' Framer.Device.contentScale = 0.5 ' will do the trick

Read the entire post on Facebook