Feature #990
closedimg2dcm: Option to remove COM markers from JPEG
0%
Description
Reported by Mathieu Malaterre:
I would be super nice to extend img2dcm with a new command line option to remove the COM marker from the JPEG stream.
FF FE - COM: text comment
PS 3.15 describe a set of steps to de-identify a DICOM DataSet, in particular
http://dicom.nema.org/medical/dicom/current/output/chtml/part15/chapter_E.html
Note 7:
[...]
If the Dataset being de-identified is being stored within a DICOM File, then the File Meta Information including the 128 byte preamble, if present, shall be replaced with a description of the de-identifying application. Otherwise, there is a risk that identity information may leak through unmodified File Meta Information or preamble. [...]My understanding is that there is an equivalent risk in preserving theJPEG/COM marker.
img2dcm is not an anonymization(-aware) tool so there is no urgent need to support such a feature but it may be of value for some users. As a workaround, one could also use a JPEG tool to remove the COM markers from the input JPEG before converting to DICOM using img2dcm.
Updated by Michael Onken over 4 years ago
Update: On Debian and probably other Linuxes
$ jhead -dc input.jpg
does the trick.
Updated by Michael Onken about 4 years ago
- Status changed from New to Closed
Closed by commit 9231a222c01d4e03bc616cbe951f80ce8b2e0759 via new imag2dcm option "--remove-com".