Export binary mask of the segmentation as jpeg/png

how can I export the segmentation as a binary image?
the preference file format is jpeg or png/ but other format can also help
thank you

Right click, and choose Export as LabelMap. Then, you can save as NRRD or Nifti basde on your usage. Slicer does not allow exporting 3D volumes as sequences of 2D formats (like JPG). You should be able to do DICOM, though.