# Is there an STL to jpg converter

**URL:** <https://discourse.threejs.org/t/is-there-an-stl-to-jpg-converter/28902>\
**Category:** Questions\
**Tags:** stl-loader\
**Created:** [August 14, 2021, 12:57am UTC](https://discourse.threejs.org/t/is-there-an-stl-to-jpg-converter/28902 "2021-08-14T00:57:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![swathi\_madineni](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/swathi_madineni/32/18792_2.png) [@swathi\_madineni](https://discourse.threejs.org/u/swathi_madineni)\
**Post date:** [August 14, 2021, 12:57am UTC](https://discourse.threejs.org/t/is-there-an-stl-to-jpg-converter/28902/1 "2021-08-14T00:57:03Z")

</div>

I want the STL generated at run-time to be captured as an image. Is there any API to perform the same in three? Found the below when I googled, which is exactly what I want

> **[Free online STL to JPG converter](https://products.aspose.app/cad/conversion/stl-to-jpg)**
>
> Free online STL to JPG converter. Convert multiple CAD and BIM drawings.

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [August 14, 2021, 8:45am UTC](https://discourse.threejs.org/t/is-there-an-stl-to-jpg-converter/28902/2 "2021-08-14T08:45:24Z")

</div>

> [@swathi\_madineni](#):
>
> Is there any API to perform the same in three?

No. You essentially have to implement a simple STL model viewer application based on `STLLoader`. When the loading process has finished, you render a single frame and then save it as a screenshot. Related topic:

> [@How capture canvas image in three js](https://discourse.threejs.org/t/how-capture-canvas-image-in-three-js/3228):
>
> I need to capture canvas 3d image in three js. please help me.
