CONVERT_IMAGE(1)
π CONVERT_IMAGE(1) π
okay so bestie, welcome to the convert_image page β it lives in your General Commands Manual and it's literally the glow-up station for your detector images β¨
β¨ NAME β¨
convert_image β turn images into CBF format using a template, no cap π
π¦ SYNOPSIS π¦
convert_image [options]
πΈ DESCRIPTION πΈ
So here's the tea, bestie: convert_image is that girl. She takes images from a MAR180, MAR300, MAR345 or ADSC CCD detector and converts them straight into CBF format. Iconic behavior honestly π
She needs two arguments: imagefile and cbffile. Those are the primary input and output, the main characters of this whole operation π
The detector type gets extracted from the image file or from the command line, then it's converted to lower case and used to build the name of a template cbf file for the copy. The template file name looks like this, exactly:
template_name_columnsxrows
To run makecbf with the example image, you type:
makecbf example.mar2300 test.cbf
not me showing you the exact line to copy-paste because I love you π«Ά
π OPTIONS π
-iinput_img β (default:stdin) the input file as an image insmv,mar300, ormar345format. If input_img isn't specified, or you pass it as"-", it gets copied fromstdinto a temporary file. Sneaky but valid π-ptemplate_cbf β the template for the final cbf that's about to be produced. If template_cbf isn't specified, the name gets constructed from the first token of the detector name and the image size, like this:
template_<type>_<columns>x<rows>.cbf
-ooutput_cbf β (default:stdout) the output cbf, aka the image and the template combined into one. If output_cbf isn't specified, or you give it as"-", it's written tostdout. Slay π-ddetectorname β a detector name to use if none is provided in the image header. Your backup plan, your safety net, your ride-or-die π-Fβ when writing packed compression, treat the entire image as one line with no averaging. One line. No averaging. That's the vibe β¨-m[x|y|x=y]β (defaultx=y, square arrays only) mirror the array in the x-axis (y -> -y), in the y-axis (x -> -x) or inx=y(x -> y, y-> x). Choose your reflection era πͺ-rn β rotate the array n times 90 degrees counter clockwise:x -> y, y -> -xfor each rotation.n=1,2or3. Spin it, bestie π-Rβ if you're setting a beam center, this sets the reference values of axis settings as well as the standard settings. Extra thorough, very main character π-zdistance β detector distance along the Z-axis. Depth, literally π-ccategory_alias=category_root β πΈ-ttag_alias=tagroot β map the given alias to the given root, so that instead of outputting the alias, the root will be presented in the output cbf instead. These options may be repeated as many times as you need β go off, stack them, I'm not judging π
π SEE ALSO π
cif2cbf(1), img2cif(1), makecbf(1).
the whole friend group, fr fr π«Ά
π AUTHOR π
convert_image was written by Herbert J. Bernstein.
This manual page was written by Morten Kjeldgaard <mok@bioxray.au.dk>, for the Debian project (but may be used by others). generous queen behavior β¨
and that's the whole page, bestie β April, 2008, CONVERT_IMAGE(1), you're welcome, mwah ππ π¦
π¦ where this page comes from
- debian bookworm: cbflib-bin 0.9.7+dfsg1-2+b2 Β· GPL-2.0-only OR LGPL-2.1-only
- debian trixie: cbflib-bin 0.9.7+dfsg1-5+b1 Β· GPL-2.0-only OR LGPL-2.1-only
- ubuntu jammy: cbflib-bin 0.9.6+dfsg1-3build1 Β· GPL-2.0-only OR LGPL-2.1-only
- ubuntu noble: cbflib-bin 0.9.7+dfsg1-3.1build2 Β· GPL-2.0-only OR LGPL-2.1-only
- ubuntu questing: cbflib-bin 0.9.7+dfsg1-5build1
- ubuntu resolute: cbflib-bin 0.9.7+dfsg1-5.1build1 Β· GPL-2.0-only OR LGPL-2.1-only
- ubuntu stonking: cbflib-bin 0.9.7+dfsg1-5.1build2 Β· GPL-2.0-only OR LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms