Skip to main content
added 491 characters in body
Source Link
rhermans
  • 37.4k
  • 4
  • 61
  • 152

Export "ZIP"

As explained by @Szabolcs, "GZIP" will not accept more than one file, so here I show an example with "ZIP".

Where I use a single image, you can have many.

img = Import["https://i.sstatic.net/gZ8oj.png"]

enter image description here

Export[
    "TestFile.ZIP"
    ,{
        img
    }
    ,{
        "ZIP"
        ,{
            {"image.dcm","DICOM"}
        }
    }
]

enter image description here

In your case, change the list {img} with all the image objects and {{"image.dcm","DICOM"}} with the file and format names.

CreateFile

Alternatively you could use CreateFile with a similar syntax.

img = Import["https://i.sstatic.net/gZ8oj.png"]

enter image description here

Export[
    "TestFile.ZIP"
    ,{
        img
    }
    ,{
        "ZIP"
        ,{
            {"image.dcm","DICOM"}
        }
    }
]

enter image description here

In your case, change the list {img} with all the image objects and {{"image.dcm","DICOM"}} with the file and format names.

Export "ZIP"

As explained by @Szabolcs, "GZIP" will not accept more than one file, so here I show an example with "ZIP".

Where I use a single image, you can have many.

img = Import["https://i.sstatic.net/gZ8oj.png"]

enter image description here

Export[
    "TestFile.ZIP"
    ,{
        img
    }
    ,{
        "ZIP"
        ,{
            {"image.dcm","DICOM"}
        }
    }
]

enter image description here

In your case, change the list {img} with all the image objects and {{"image.dcm","DICOM"}} with the file and format names.

CreateFile

Alternatively you could use CreateFile with a similar syntax.

added 130 characters in body
Source Link
rhermans
  • 37.4k
  • 4
  • 61
  • 152
img = Import["https://i.sstatic.net/gZ8oj.png"]

enter image description here

Export["TestFileExport[
    "TestFile.ZIP"
    ,{
        img
    }
    ,{
        "ZIP"
        ,{
            {"image.dcm","DICOM"}
        }
    } 
]

enter image description here

In your case, change the list {img} with all the image objects and {{"image.dcm","DICOM"}} with the file and format names.

img = Import["https://i.sstatic.net/gZ8oj.png"]

enter image description here

Export["TestFile.ZIP",{img},{"ZIP",{{"image.dcm","DICOM"}}}]

enter image description here

In your case, change the list {img} with all the image objects and {{"image.dcm","DICOM"}} with the file and format names.

img = Import["https://i.sstatic.net/gZ8oj.png"]

enter image description here

Export[
    "TestFile.ZIP"
    ,{
        img
    }
    ,{
        "ZIP"
        ,{
            {"image.dcm","DICOM"}
        }
    } 
]

enter image description here

In your case, change the list {img} with all the image objects and {{"image.dcm","DICOM"}} with the file and format names.

Source Link
rhermans
  • 37.4k
  • 4
  • 61
  • 152

img = Import["https://i.sstatic.net/gZ8oj.png"]

enter image description here

Export["TestFile.ZIP",{img},{"ZIP",{{"image.dcm","DICOM"}}}]

enter image description here

In your case, change the list {img} with all the image objects and {{"image.dcm","DICOM"}} with the file and format names.