It does not support DCM extension. It supports only jpg, jpeg, gif, and png. It has zero testing for DCM extensions. Trying to force it by altering the extension validation doesn't mean it's going to actually work as it has not been tested. Reviewing Imagine library source it only will allow jpeg, jpg, gif, png, wbmp, and xbm even if using Imagick; it can not reliably process other extensions. CB Gallery it self limits to jpg, jpeg, gif, and png. The image format you're wanting to use will not work with the Photo gallery and recommend using the File gallery to just directly share the file. Your alternative is to process them to JPG or PNG before uploading to the Photo gallery.
With that said it does look like there's a missing global bug. Please make the below change and it should use the correct image software, but doesn't mean DCM will work.
IN: components/com_comprofiler/plugin/user/plug_cbgallery/cbgallery.php
ON: Line 467
FROM:
Code:
global $_CB_framework, $_PLUGINS;
TO:
Code:
global $_CB_framework, $_PLUGINS, $ueConfig;