• Image Management Service

ims
  1. Help Center
  2. Image Management Service
  3. User Guide
  4. Managing Private Images
  5. Quickly Importing an Image File
  6. Generating a Bitmap File

Generating a Bitmap File

For each RAW image file, a bitmap file is required and must be uploaded to the OBS bucket together with the image file.

  1. Ensure that JDK has been installed on the ECS.

    Run the following commands to check whether JDK has been installed:

    source /etc/profile

    java -version

    If the Java version is displayed, JDK has been installed.

  2. Download the required tool package, upload it to the ECS, and then decompress the package.

    For how to obtain the tool, see Overview.

  3. Run the following command to access the directory where the program for generating the bitmap file is located:

    cd /usr/local/bin

  4. Run the following command to generate the bitmap file:

    java -jar CreateMF.jar /Original RAW file path /Generated .mf file path

    The generated bitmap file and RAW image file must have the same name.

    For example, if the image file name is image001.raw, the generated bitmap name is image001.mf.

    The following are operations of generating a bitmap file in Windows:
    1. Download CreateMF.jar to a local directory.
    2. Run the cmd command to access the directory where CreateMF.jar is stored.

      For example, if you have downloaded CreateMF.jar to D:/test, run the following commands to access the directory:

      D:

      cd test

    3. Run the following command to generate the bitmap file:

      java -jar CreateMF.jar D:/rsh/image001.raw D:/rsh/image001.mf

      Use OBS Browser to upload the .mf file.

    The following are operations of generating a bitmap file in Linux:
    1. Run the following command to enter the directory where CreateMF.jar is stored:

      cd /opt/images

    2. Run the following command to generate the bitmap file:

      java -jar CreateMF.jar /mnt/image/image001.raw /mnt/image/image001.mf

      Upload the .mf file by referring to Using s3cmd to Upload a Bitmap File.

      The .mf file must be in the same OBS bucket as the RAW image file.