{"api_version":2,"name":"galaxy_imagej_crop","version":"1.0","role":"transform","type":"sdk","description":"Crop a rectangular region from an image.","icon":{"path":"M4 3h12l4 4v14H4zM8 11h8M8 15h8m-8 4h5"},"inputs":{"source":{"representations":["bytes"],"formats":[]}},"outputs":{"result":{"view":"bytes"}},"parameters":{"type":"object","properties":{"x":{"type":"integer","default":1,"minimum":0,"maximum":511,"description":"Zero-based left pixel."},"y":{"type":"integer","default":1,"minimum":0,"maximum":511,"description":"Zero-based top pixel."},"width":{"type":"integer","default":2,"minimum":1,"maximum":512,"description":"Crop width in pixels."},"height":{"type":"integer","default":1,"minimum":1,"maximum":512,"description":"Crop height in pixels."}},"additionalProperties":false,"required":[]},"documentation":{"inputs":{"source":"One PNG bytes stream. The adapter accepts static, 8-bit, noninterlaced grayscale PNG up to 512 × 512 pixels. The crop must be fully inside the source raster."},"outputs":{"result":"PNG bytes. The adapter accepts static, 8-bit, noninterlaced grayscale PNG up to 512 × 512 pixels. The crop must be fully inside the source raster."},"parameters":{"x":{"description":"Zero-based left pixel.","help":"Zero-based left pixel.","example":1},"y":{"description":"Zero-based top pixel.","help":"Zero-based top pixel.","example":1},"width":{"description":"Crop width in pixels.","help":"Crop width in pixels.","example":2},"height":{"description":"Crop height in pixels.","help":"Crop height in pixels.","example":1}},"example_job":"name: Crop a rectangular region from an image.\nsteps:\n- id: read_source\n  operator: item_source@1.0\n  inputs: {}\n  params:\n    uri: context:/galaxy/imagej_crop-source.png\n    view: bytes\n- id: process\n  operator: galaxy_imagej_crop@1.0\n  inputs:\n    source: read_source\n  params:\n    x: 1\n    y: 1\n    width: 2\n    height: 1\n- id: client_sink\n  operator: client_sink@1.0\n  inputs:\n    result: process\n"},"execution":{"executor":"python","entrypoint":"galaxy_imagej_crop","config":{}},"source_public":true,"runtime":{"image":"sha256:40db7fee594f1452790d1cc99c2e5429e187eb64633c716b8c6f903c47576975","archive":{"sha256":"e1844833e35390f2eaf9fc9ec7b67057ad0305ad713c0da6c8b055980a66946c","size":73825792,"filename":"python-arrow-2.0-runtime.tar"}},"provenance":{"source_archive":{"sha256":"a63f20d2055e2f0d5583971282b28d4f2f4ff0b91b51929776c126f4bb7bff96","size":21826,"filename":"galaxy_imagej_crop-sources.zip"},"source_repository":"https://github.com/bgruening/galaxytools","source_revision":"cf3d3559b6102373ee65693e99e4ed928d459deb","license":"AFL-3.0 AND MIT","license_file":{"sha256":"0edf5da821de32631cf20d8cd0fe548f4b3425e4b20fc88e8f86927f6213f508","size":1116,"filename":"GALAXY-LICENSE.txt"},"build_instructions":"Compile src/*.py with the python-arrow@2.0 builder. The adapter uses only Python's standard library and the shared XStream SDK. See upstream-manifest.json and fixtures.json for evidence."},"artifact":{"sha256":"01a03ccd9661e9e6bb4d7ad40d816a1d66dbf88927a09f41ec028e8996d1260b","size":18267,"filename":"operator.zip"},"categories":["Galaxy","Data processing","Visualization"],"trust":{"score":4,"assessed_by":"administrator","reviewed_at_ms":1795074395091},"publication":{"author":"dacp-examples","submitted_at_ms":1795074383110,"approved_at_ms":1795074395091,"last_submitted_at_ms":1795074383110,"last_approved_at_ms":1795074395091},"download_count":4}