commit 03b07e5b96682c73cba1d307987ec692f9498d3d Author: COW_ILLUMINATI Date: Tue Aug 13 17:26:11 2024 +0000 first commit diff --git a/README b/README new file mode 100644 index 0000000..aed6918 --- /dev/null +++ b/README @@ -0,0 +1,10 @@ +Simple image processor. + +Will read from ./frames and output in ./output + +Run 'bash process.sh' for bulk conversion, with 3000 circles and seed of 1 on 8 threads. + +![screenshot](output/image1.jpg.png) +![screenshot](output/image1_pixel.jpg.png) +![screenshot](output/image2.png.png) +![screenshot](output/image2_pixel.png.png) diff --git a/frames/image1.jpg b/frames/image1.jpg new file mode 100644 index 0000000..6338394 Binary files /dev/null and b/frames/image1.jpg differ diff --git a/frames/image1_pixel.jpg b/frames/image1_pixel.jpg new file mode 100644 index 0000000..2b2dfd1 Binary files /dev/null and b/frames/image1_pixel.jpg differ diff --git a/frames/image2.png b/frames/image2.png new file mode 100644 index 0000000..59ef68a Binary files /dev/null and b/frames/image2.png differ diff --git a/frames/image2_pixel.png b/frames/image2_pixel.png new file mode 100644 index 0000000..81a0a56 Binary files /dev/null and b/frames/image2_pixel.png differ diff --git a/output/image1.jpg.png b/output/image1.jpg.png new file mode 100644 index 0000000..12fabf0 Binary files /dev/null and b/output/image1.jpg.png differ diff --git a/output/image1_pixel.jpg.png b/output/image1_pixel.jpg.png new file mode 100644 index 0000000..9d40e83 Binary files /dev/null and b/output/image1_pixel.jpg.png differ diff --git a/output/image2.png.png b/output/image2.png.png new file mode 100644 index 0000000..be2f59d Binary files /dev/null and b/output/image2.png.png differ diff --git a/output/image2_pixel.png.png b/output/image2_pixel.png.png new file mode 100644 index 0000000..838bcf8 Binary files /dev/null and b/output/image2_pixel.png.png differ diff --git a/process.sh b/process.sh new file mode 100644 index 0000000..43be703 --- /dev/null +++ b/process.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Number of parallel jobs +N=8 + +# Loop through the images in chunks of $N +for ((i=0; i<$(ls frames/ | wc -l); i+=N)); do + # Launch $N jobs in parallel + for ((j=0; j