# Creating a DICOM from a JPEG

**URL:** <https://discourse.slicer.org/t/creating-a-dicom-from-a-jpeg/38104>\
**Category:** Development\
**Tags:** dicom\
**Created:** [August 28, 2024, 9:29pm UTC](https://discourse.slicer.org/t/creating-a-dicom-from-a-jpeg/38104 "2024-08-28T21:29:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vedantr09](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vedantr09/32/77760_2.png) [@vedantr09](https://discourse.slicer.org/u/vedantr09)\
**Post date:** [August 28, 2024, 9:29pm UTC](https://discourse.slicer.org/t/creating-a-dicom-from-a-jpeg/38104/1 "2024-08-28T21:29:20Z")

</div>

Hi,  
Is there a way to create a DICOM file from a JPEG image if I have all the header information. For example, I have a X-ray image with imaging metadata and I would like to create a DICOM with the metadata as tags.  
Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [August 29, 2024, 12:03am UTC](https://discourse.slicer.org/t/creating-a-dicom-from-a-jpeg/38104/2 "2024-08-29T00:03:01Z")

</div>

You can load it in Slicer and then export as dicom.

Or it might be just as easy to use a tool like this:

[https://manpages.debian.org/experimental/dcmtk/img2dcm.1.en.html](https://manpages.debian.org/experimental/dcmtk/img2dcm.1.en.html)
