gimp-plugin-bimp
gimp-plugin-bimp copied to clipboard
DCM support
I wrote a function to support dcm output in bimp but it did not work,says can not save image with alpha channel, but My sample image(a jpg) has no alpha channel
here is the code
src/bimp-operate.c
` static gboolean image_save_dcm(image_output out) { gint nreturn_vals; int final_drawable = gimp_image_merge_visible_layers(out->image_id, GIMP_CLIP_TO_IMAGE);
GimpParam *return_vals = gimp_run_procedure(
"file_dicom_save",
&nreturn_vals,
GIMP_PDB_INT32, GIMP_RUN_NONINTERACTIVE,
GIMP_PDB_IMAGE, out->image_id,
GIMP_PDB_DRAWABLE, final_drawable,
GIMP_PDB_STRING, out->filepath,
GIMP_PDB_STRING, out->filename,
GIMP_PDB_END
);
return TRUE;
} ` also add FORMAT_DCM in
src/bimp-manipulations.h
Is there something I missed so that can not work? I can not see if there is any special of dcm format
thanks
Did you have a previous step that might add the alpha channel to the image? Anyway I can't see "file_dicom_save" in the standard GIMP procedures... is that a plugin? Can you send the link?
No alpha channel for sure, just a normal jpeg image,also checked the channels The procedure is
file-dicom-save
My gimp is 2.8.16 the procedure names in your code tranformed to the underline ,right? like xxx-xxx-xxxx will become xxx_xxx_xxx
I also doubt whether gimp has a pretreatment for dcm , but I am not that well with gimp development...