mamuso / sketch-designdoc

Exports a simple website using a bunch of conventions and a Sketch document as the structure
220 stars 13 forks source link

Exported images are at 2x the resolution of the artboard #7

Open splimola opened 7 years ago

splimola commented 7 years ago

It appears the plugin exports the images at twice the size of the artboard.

So an artboard that's 1000x1000 the plugin exports that as a PNG at 2000x2000.

Is this intended behavior?

Is there an option to prevent that and just export the artboard to imge at 1:1 ratio?

mamuso commented 7 years ago

Hi @splimola,

When I made the plugin, I was trying to cover a very particular case. We use it to generate our internal design guidelines, and most of the team uses retina displays. That is the reason why the export is double the size and the HTML resize the images to its original size.

I can try to build preferences for the plugin to address this issue but realistically will not happen until the end of the year or January. If you need this now, I can tweak the plugin to export at 1x for you.

splimola commented 7 years ago

@mamuso I see. I would definitely appreciate a tweak to export at 1x! Thank you!

dkobrien commented 7 years ago

I just discovered your plugin and wanted to thank you for making it, and making it public. It seems very helpful. I second the request for images at 1X. I'm developing an interface for PC and unfortunately the images are so large they cannot fit on screen (and I have a retina display).

dkobrien commented 7 years ago

NVM, I was able to change the parameter in DesignDoc.sketchplugin/Contents/Sketch/library/io.mamuso.config.cocoascript from "2" to "1" using Visual Studio Code. Thanks again for the plugin!