bomberstudios / sketch-framer

A Sketch plugin to easily export your mockups to FramerJS
Other
767 stars 67 forks source link

export bitmaps at original resolution and resize in code? #22

Closed awt2542 closed 10 years ago

awt2542 commented 10 years ago

what if bitmaps were exported at at their original resolution and resized in framer so we can scale them up/down without loss of quality. this would be similar to how Sketch itself handles bitmaps.

downsides: larger exports and potential problems with the scaling algoritms?

bomberstudios commented 10 years ago

Let me rephrase this, to check if I'm getting your idea correctly (I think I understood it wrong on Twitter : )

What you're saying is:

Is that right?

In any case: I'm not sure I can access to he original dimensions of a bitmap layer. I'll have to play a bit with it and see what comes out.

For the record: what I understood on Twitter was: "just export everything at 2x size", that's easy to do : )

awt2542 commented 10 years ago

You're right, but 2x would probably be enough for most cases. Maybe one could make two ways to export in 2x?

  1. Export in 2x and treat dimensions in framer as 2x
    • eg. rectangle in Sketch is 15x15px, exports as 30x30px and is treated in code as 30x30px
  2. Export in 2x and treat dimensions in framer as 1x
    • eg. rectangle in Sketch is 15x15px, exports as 30x30px and is treated in code as 15x15px