# Convert image file into .dwg file

**URL:** <https://forum.inductiveautomation.com/t/convert-image-file-into-dwg-file/61930>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [July 15, 2022, 4:58am UTC](https://forum.inductiveautomation.com/t/convert-image-file-into-dwg-file/61930 "2022-07-15T04:58:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![R\_P](https://avatars.discourse-cdn.com/v4/letter/r/aca169/32.png) [@R\_P](https://forum.inductiveautomation.com/u/R_P)\
**Post date:** [July 15, 2022, 4:58am UTC](https://forum.inductiveautomation.com/t/convert-image-file-into-dwg-file/61930/1 "2022-07-15T04:58:05Z")

</div>

I want to convert image file into .dwg files using python library in Perspective module.  
Anybody have an idea?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 15, 2022, 7:15am UTC](https://forum.inductiveautomation.com/t/convert-image-file-into-dwg-file/61930/2 "2022-07-15T07:15:34Z")

</div>

What kind of “image” file? Vector (SVG, etc.) or bitmap (PNG, BMP, etc.) or JPEG?

---

<div class="post-metadata">

**Author:** ![R\_P](https://avatars.discourse-cdn.com/v4/letter/r/aca169/32.png) [@R\_P](https://forum.inductiveautomation.com/u/R_P)\
**Post date:** [July 15, 2022, 8:49am UTC](https://forum.inductiveautomation.com/t/convert-image-file-into-dwg-file/61930/3 "2022-07-15T08:49:47Z")

</div>

File can be in .jpg, jpeg, .png format

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 15, 2022, 10:20am UTC](https://forum.inductiveautomation.com/t/convert-image-file-into-dwg-file/61930/4 "2022-07-15T10:20:49Z")

</div>

That’s a challenging task in any environment. Do you already have a java-compatible library that can do this?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 15, 2022, 10:42am UTC](https://forum.inductiveautomation.com/t/convert-image-file-into-dwg-file/61930/5 "2022-07-15T10:42:47Z")

</div>

> [@R\_P](#):
>
> File can be in .jpg, jpeg, .png format

All of these are bitmap format. It makes little sense to create .dwg files of these. The .dwg files will just contain the embedded image file and will not be vector graphics and won't be editable with a CAD program. Can you clarify whether or not you understand the difference between bitmap and vector files?

What is the point of this exercise?

---

<div class="post-metadata">

**Author:** ![JHON\_FLOREZ](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@JHON\_FLOREZ](https://forum.inductiveautomation.com/u/JHON_FLOREZ)\
**Post date:** [July 15, 2022, 5:08pm UTC](https://forum.inductiveautomation.com/t/convert-image-file-into-dwg-file/61930/6 "2022-07-15T17:08:20Z")

</div>

puedes ayudarme necesito cargar imágenes desde mi ordenador hasta una ventana que estoy realizando quiero poder llamar esto desde una botón

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/0/5049c6d03117824a783a28fdfc1d00b84133d571.jpeg)

```auto
imagen = event.source.parent.getComponent('Image').path
system.nav.openWindow('imagen')

```

este es un fragmento de mi código espero entiendas mi idea, me siento perdido

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 15, 2022, 5:10pm UTC](https://forum.inductiveautomation.com/t/convert-image-file-into-dwg-file/61930/7 "2022-07-15T17:10:52Z")

</div>

@JHON_FLOREZ, you need to ask your own question. Your question is a different topic. Please do not hijack someone else’s question.
