# Save JPG Files with Draw

**URL:** <https://forum.collaboraonline.com/t/save-jpg-files-with-draw/1952>\
**Category:** User Support\
**Created:** [July 18, 2023, 8:01am UTC](https://forum.collaboraonline.com/t/save-jpg-files-with-draw/1952 "2023-07-18T08:01:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loubens](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@Loubens](https://forum.collaboraonline.com/u/Loubens)\
**Post date:** [July 18, 2023, 8:01am UTC](https://forum.collaboraonline.com/t/save-jpg-files-with-draw/1952/1 "2023-07-18T08:01:44Z")

</div>

hello, I wanted to test modifying jpg or png image files from Draw.  
I modified the discovery.xml file to put edit on these extensions, but I can’t save, whereas when I open a DOC document it works.  
Any idea what I should change on my Docker?  
THANKS

---

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [November 9, 2023, 1:15am UTC](https://forum.collaboraonline.com/t/save-jpg-files-with-draw/1952/2 "2023-11-09T01:15:15Z")

</div>

> [@Loubens](#):
>
> I wanted to test modifying jpg or png image files from Draw.  
> I modified the discovery.xml file to put edit on these extensions, but I can’t save, whereas when I open a DOC document it works.

Is this still an issue for you on the latest COOL?

It worked fine for me in:

```auto
COOLWSD version: 23.05.5.3 (git hash: 557f191d)
LOKit version: Collabora Office 23.05.5.3 (git hash: fb99734)
Served by: Linux Mint 21.1
Server ID: 5464e7a7

```

In the `discovery.xml` file, there was a big list of:

- Extensions
- + `name="view"`
- + `name="edit"`

```auto
      <!-- Draw documents -->
        <app name="draw">
            <action name="view" default="true" ext="sxd"/>
            <action name="edit" default="true" ext="odg"/>
            <action name="edit" default="true" ext="fodg"/>
            [...]
            <!-- Others -->
            <action name="view" ext="svg"/>
            [...]
            <action name="view" default="true" ext="fh"/>
            <action name="view" ext="bmp"/>
            <action name="view" ext="png"/>

```

I was able to change the line for PNG:

- `<action name="view" ext="png"/>`

from `view` → `edit`:

- `<action name="edit" ext="png"/>`

After restarting COOL + opening the PNG in Draw, I had full access to all the typical Draw controls.

---

<div class="post-metadata">

**Author:** ![Loubens](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@Loubens](https://forum.collaboraonline.com/u/Loubens)\
**Post date:** [November 9, 2023, 10:52am UTC](https://forum.collaboraonline.com/t/save-jpg-files-with-draw/1952/3 "2023-11-09T10:52:34Z")

</div>

Hi  
It’s good, I was able to do what was necessary, everything is good on my side after checking everything.  
THANKS

---

<div class="post-metadata">

**Author:** ![Tex](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@Tex](https://forum.collaboraonline.com/u/Tex)\
**Post date:** [November 10, 2023, 7:11pm UTC](https://forum.collaboraonline.com/t/save-jpg-files-with-draw/1952/4 "2023-11-10T19:11:32Z")

</div>

Fantastic. Great to hear. 🙂

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [August 6, 2024, 2:27pm UTC](https://forum.collaboraonline.com/t/save-jpg-files-with-draw/1952/5 "2024-08-06T14:27:32Z")

</div>


