dcmftest(1)

NAME πŸ’–

dcmftest β€” Test if file uses DICOM part 10 format

okay bestie, welcome to the dcmftest(1) page from the OFFIS DCMTK crew! πŸ’… this little icon is literally here to check if your files are giving DICOM part 10 format. no cap.


SYNOPSIS ✨

the whole mood is:

dcmftest file...

DESCRIPTION πŸ¦‹

okay so the dcmftest utility checks whether the files specified on the command line are DICOM files in part 10 format (with meta-header). that's it. that's the assignment. and it ate. πŸ’–


PARAMETERS πŸŽ€

  • dcmfile-in β€” DICOM input filename to be checked, bestie.

NOTES πŸ”₯

here's the tea: all files specified on the command line are checked for the presence of the DICOM "magic word" 'DICM' at byte position 128. no attempt is made to parse the complete data set. it's a vibe check, not a full read. πŸ’€

for each file the test result is printed to stdout in the form "yes: <filename>\n" or "no: <filename>\n". so you get a cute little yes or no per file, fr fr.

then the utility terminates with a return code corresponding to the number of files found to be non-DICOM, i.e. if all files pass as DICOM files, the return value is 0. this behavior is intended for use in shell script programming, so yes, it's giving scripting main character energy. 🫢

bestie, remember: it only checks for the magic word at byte 128 β€” it does not attempt to parse the complete data set. no extra claims, just the facts. πŸ’…

SEE ALSO 🌈


Copyright (C) 1997-2026 by OFFIS e.V., Escherweg 2, 26121 Oldenburg, Germany.


mwah πŸ’‹ β€” this page was living its best life as Version 3.7.1, dated Sat Oct 17 2026 09:34:01. bye bestie, go check those files! πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from