> However, we need the patient ID tag from the DICOM image

Try

  identify -verbose image.dcm

Is the patient ID listed as an attribute (e.g. dcm:Patient's ID)?  If so, you
can extract the attribute and save it as part of the JPEG comment.
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to