Joyent Manta

Image conversion

This job takes any number of image objects as input (e.g., PNG images) and converts them to "gif" format using the ImageMagick "convert" tool, storing the converted image in the same directory as the input object. This example runs on a set of icons in the public domain from the Open Icon Library.

Run it yourself

Once you've set up the Manta CLI tools, you can run this job yourself on the publicly accessible dataset using the following command:

$ mfind -t o -n '.*\.png' /manta/public/examples/symbols | \
    mjob create -n "Image conversion" -w \
    -m 'convert "$MANTA_INPUT_FILE" out.gif && \
        mpipe -H "content-type: image/gif" -f out.gif \
        "${MANTA_INPUT_OBJECT%.*}.gif"'

Because the output for this job is quite large, this example did not use "mjob create -o" (which prints all job outputs). For the actual output, see "Output summary" below.

Job body

[
        {
                "exec": "convert \"$MANTA_INPUT_FILE\" out.gif && \\\n        mpipe -H \"content-type: image/gif\" -f out.gif \\\n\t    \"${MANTA_INPUT_OBJECT%.*}.gif\"",
                "type": "map"
        }
]

Input summary

Showing first 50 input objects
(binary) /manta/public/examples/symbols/cards-heart.png
(binary) /manta/public/examples/symbols/cards-diamond.png
(binary) /manta/public/examples/symbols/cards-club.png
(binary) /manta/public/examples/symbols/cards-spade.png
(binary) /manta/public/examples/symbols/char-aquarius.png
(binary) /manta/public/examples/symbols/char-aries.png
(binary) /manta/public/examples/symbols/char-aum.png
(binary) /manta/public/examples/symbols/char-capricorn.png
(binary) /manta/public/examples/symbols/char-leo.png
(binary) /manta/public/examples/symbols/char-cancer.png
(binary) /manta/public/examples/symbols/char-gemini.png
(binary) /manta/public/examples/symbols/char-libra.png
(binary) /manta/public/examples/symbols/char-taurus.png
(binary) /manta/public/examples/symbols/char-pisces.png
(binary) /manta/public/examples/symbols/char-virgo.png
(binary) /manta/public/examples/symbols/char-sagittarius.png
(binary) /manta/public/examples/symbols/char-scorpio.png
(binary) /manta/public/examples/symbols/licenses-anti-copyright.png
(binary) /manta/public/examples/symbols/licenses-cc-pd.png
(binary) /manta/public/examples/symbols/licenses-kopimi.png
(binary) /manta/public/examples/symbols/licenses-copyleft.png
(binary) /manta/public/examples/symbols/licenses-pd-maybe.png
(binary) /manta/public/examples/symbols/licenses-copyright.png
(binary) /manta/public/examples/symbols/licenses-pd.png
(binary) /manta/public/examples/symbols/licenses-registered_trademark.png
(binary) /manta/public/examples/symbols/pictogram-din-e003-first_aid.png
(binary) /manta/public/examples/symbols/pictogram-din-e002-direction-down-right.png
(binary) /manta/public/examples/symbols/pictogram-din-e004-stretcher.png
(binary) /manta/public/examples/symbols/pictogram-din-e001-direction-right.png
(binary) /manta/public/examples/symbols/pictogram-din-e005-safety_shower.png
(binary) /manta/public/examples/symbols/pictogram-din-e006-rinse_eyes.png
(binary) /manta/public/examples/symbols/pictogram-din-e008-physician.png
(binary) /manta/public/examples/symbols/pictogram-din-e010-exit.png
(binary) /manta/public/examples/symbols/pictogram-din-e009-exit.png
(binary) /manta/public/examples/symbols/pictogram-din-e007-rescue_phone.png
(binary) /manta/public/examples/symbols/pictogram-din-e011-meeting_point.png
(binary) /manta/public/examples/symbols/pictogram-din-f003-fire_hose.png
(binary) /manta/public/examples/symbols/pictogram-din-f004-ladder.png
(binary) /manta/public/examples/symbols/pictogram-din-f002-direction-down-right.png
(binary) /manta/public/examples/symbols/pictogram-din-f001-direction-right.png
(binary) /manta/public/examples/symbols/pictogram-din-e017-defibrillator.png
(binary) /manta/public/examples/symbols/pictogram-din-f005extinguisher.png
(binary) /manta/public/examples/symbols/pictogram-din-f006-phone.png
(binary) /manta/public/examples/symbols/pictogram-din-m001-eye_protection.png
(binary) /manta/public/examples/symbols/pictogram-din-f007-facilities_fight_against_fire.png
(binary) /manta/public/examples/symbols/pictogram-din-m000-general.png
(binary) /manta/public/examples/symbols/pictogram-din-f008-fire_indicator.png
(binary) /manta/public/examples/symbols/pictogram-din-m002-head_protection.png
(binary) /manta/public/examples/symbols/pictogram-din-m006-hand_protection.png
(binary) /manta/public/examples/symbols/pictogram-din-m003-ear_protection.png

Output summary

Showing first 50 of 452 total outputs
(binary) /manta/public/examples/symbols/pictogram-din-tablier_de_protection_obligatoire.gif
(binary) /manta/public/examples/symbols/pictogram-din-w001-flame.gif
(binary) /manta/public/examples/symbols/char-sagittarius.gif
(binary) /manta/public/examples/symbols/pictogram-din-e002-direction-down-right.gif
(binary) /manta/public/examples/symbols/pictogram-din-w012-electromagnetic_field.gif
(binary) /manta/public/examples/symbols/cards-diamond.gif
(binary) /manta/public/examples/symbols/pictogram-din-m005-foot_protection.gif
(binary) /manta/public/examples/symbols/pictogram-din-m014-turn_before_starting.gif
(binary) /manta/public/examples/symbols/pictogram-din-e003-first_aid.gif
(binary) /manta/public/examples/symbols/pictogram-din-port_de_la_blouse_obligatoire.gif
(binary) /manta/public/examples/symbols/pictogram-din-p012-place_or_store.gif
(binary) /manta/public/examples/symbols/pictogram-din-p017-water_usage.gif
(binary) /manta/public/examples/symbols/pictogram-din-p013-transport_people.gif
(binary) /manta/public/examples/symbols/pictogram-din-p011-people_with_pacemakers.gif
(binary) /manta/public/examples/symbols/pictogram-din-m002-head_protection.gif
(binary) /manta/public/examples/symbols/char-taurus.gif
(binary) /manta/public/examples/symbols/char-aquarius.gif
(binary) /manta/public/examples/symbols/pictogram-din-m004_airways_protection.gif
(binary) /manta/public/examples/symbols/pictogram-din-p008-touch.gif
(binary) /manta/public/examples/symbols/pictogram-din-e007-rescue_phone.gif
(binary) /manta/public/examples/symbols/pictogram-din-se_laver_les_mains.gif
(binary) /manta/public/examples/symbols/pictograms-aem-0047-read_operators_manual.gif
(binary) /manta/public/examples/symbols/pictogram-din-m015-life_jacket.gif
(binary) /manta/public/examples/symbols/pictograms-aem-0118-crush_of_fingers_or_hand-force_applied_from_side.gif
(binary) /manta/public/examples/symbols/pictogram-din-e009-exit.gif
(binary) /manta/public/examples/symbols/pictogram-din-m012-use_walkway.gif
(binary) /manta/public/examples/symbols/pictogram-din-m009-fall_prefention_gear.gif
(binary) /manta/public/examples/symbols/pictogram-din-protection_obligatoire_des_voies_respiratoires.gif
(binary) /manta/public/examples/symbols/pictogram-din-w014-trip_hazard.gif
(binary) /manta/public/examples/symbols/pictogram-din-p015.gif
(binary) /manta/public/examples/symbols/pictogram-din-m013-unplug_before_opening.gif
(binary) /manta/public/examples/symbols/pictogram-din-w000-general.gif
(binary) /manta/public/examples/symbols/licenses-copyright.gif
(binary) /manta/public/examples/symbols/pictogram-din-w007-vehicle_handling.gif
(binary) /manta/public/examples/symbols/pictogram-din-port_obligatoire_dun_bonnet_de_protection.gif
(binary) /manta/public/examples/symbols/pictogram-din-f004-ladder.gif
(binary) /manta/public/examples/symbols/licenses-registered_trademark.gif
(binary) /manta/public/examples/symbols/pictogram-din-p005-drinking_water.gif
(binary) /manta/public/examples/symbols/char-capricorn.gif
(binary) /manta/public/examples/symbols/pictograms-aem-0067-wear_face_protection-face_shield.gif
(binary) /manta/public/examples/symbols/pictogram-din-w008-electricisty.gif
(binary) /manta/public/examples/symbols/pictogram-din-e005-safety_shower.gif
(binary) /manta/public/examples/symbols/char-pisces.gif
(binary) /manta/public/examples/symbols/char-scorpio.gif
(binary) /manta/public/examples/symbols/pictogram-din-e008-physician.gif
(binary) /manta/public/examples/symbols/pictogram-din-f001-direction-right.gif
(binary) /manta/public/examples/symbols/pictogram-din-w006-suspended_load.gif
(binary) /manta/public/examples/symbols/pictogram-din-p000-general.gif
(binary) /manta/public/examples/symbols/pictogram-din-e011-meeting_point.gif
(binary) /manta/public/examples/symbols/char-libra.gif

Error summary

0 total errors