Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Original image download for MRXS files #22

@ai4path

Description

@ai4path

I'm trying to download the originally uploaded MRXS image via the REST API with the following code:


with Cytomine(host=params.host, public_key=params.public_key, private_key=params.private_key, verbose=logging.INFO) as cytomine: 
    image_instances = ImageInstanceCollection().fetch_with_filter("project", params.id_project)
    for image in image_instances:
        image.download(output_file, parent=True)

I reckon the result should be only the originally uploaded zip file. But instead I'm getting a zip file which contains the original image (1x.zip) plus the uncompressed .MRXS and the dat file directory zipped together - basically I'm getting the files back twice. Cytomine core v3.0.0/IMS v1.2.3. Can you please look into it?

Note: parent=False works fine, only downloads the MRXS content once, but is the uncomressed files zipped again (size doesn't match the original zip file). TIFF file download works fine for both parent=True and parent=False, produces expected results.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions