Sublime Text 3 - Limit images to viewsize : <p>I'm working on a Sublime Text 3 plugin, which displays images in a view. Those images are created by an jupyter kernel, therefore the size of the images depend on the code producing them. Since I create really big images, they are to big to fit in the view.</p>

<p>I would like to limit the size to the image to the size of the view, like scale it to 100% of the view size. Is there any way to get the size of the current view and add this to the minihtml implementation of ST3?</p>

<p>I've tested width: 100% which just used a fraction of the actual views size. </p>
