title: Render Blender outside of blender GUI with Python
body: <p>So I have a flask setup that allows users to make mock-ups, they post their image, it gets cropped so all the images have the same dimensions, either it is a landscape image, a square image or a portrait image. Next up, I want the blender file to render, but if it's portrait image, the portrait.blend renders ect. How can I run a render with bpy outside of blender?</p>