# chunking files and then zipping the generated outputs

**URL:** <https://forum.knime.com/t/chunking-files-and-then-zipping-the-generated-outputs/30037>\
**Category:** KNIME Analytics Platform\
**Created:** [January 19, 2021, 1:19pm UTC](https://forum.knime.com/t/chunking-files-and-then-zipping-the-generated-outputs/30037 "2021-01-19T13:19:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![naraj](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/n/43a26b/32.png) [@naraj](https://forum.knime.com/u/naraj)\
**Post date:** [January 19, 2021, 1:19pm UTC](https://forum.knime.com/t/chunking-files-and-then-zipping-the-generated-outputs/30037/1 "2021-01-19T13:19:56Z")

</div>

Hi,

I am trying to chunk a batch of images into a defined number of images and then zip each chunk.  
I am wondering if anyone can help.

Thanks,  
Nasir

---

<div class="post-metadata">

**Author:** ![julian.bunzel](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@julian.bunzel](https://forum.knime.com/u/julian.bunzel)\
**Post date:** [January 21, 2021, 2:22pm UTC](https://forum.knime.com/t/chunking-files-and-then-zipping-the-generated-outputs/30037/2 "2021-01-21T14:22:24Z")

</div>

Hey @naraj,

this should be easily possible. How does your data look like? Do you have a table with one image per row or do you have a table of file locations?

I created a workflow for the second case which can be found [here](https://hub.knime.com/julian.bunzel/spaces/Public/latest/Forum/Examples/CompressChunks).  
For the first case, you would need to write the images to a directory first, list the images in the directory and then use the component in the workflow.

Best,  
Julian

---

<div class="post-metadata">

**Author:** ![naraj](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/n/43a26b/32.png) [@naraj](https://forum.knime.com/u/naraj)\
**Post date:** [January 23, 2021, 5:06pm UTC](https://forum.knime.com/t/chunking-files-and-then-zipping-the-generated-outputs/30037/3 "2021-01-23T17:06:12Z")

</div>

Hi Julian,

Thanks a lot for the reply. It was indeed useful.  
So, as you said, I just needed a table which has a list of the location of images.

Best wishes,  
Nasir

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [January 30, 2021, 5:06pm UTC](https://forum.knime.com/t/chunking-files-and-then-zipping-the-generated-outputs/30037/4 "2021-01-30T17:06:18Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
