Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Glitch_This work on folders like a batch operation? #40

Open
LinuxBeaver opened this issue Mar 20, 2022 · 2 comments
Open

Can Glitch_This work on folders like a batch operation? #40

LinuxBeaver opened this issue Mar 20, 2022 · 2 comments

Comments

@LinuxBeaver
Copy link

I'd like to know if GT can apply operations to every image in a folder.

@TotallyNotChase
Copy link
Owner

you should be able to do it via your shell, something like this in bash perhaps-

for file in /dir/*
do
  glitch_this [options] "$file"
done

@jeeftor
Copy link

jeeftor commented Mar 29, 2024

#!/bin/bash

# For each file in the input directory
for file in ./input/*; do
  # Get the filename
  filename=$(basename "$file")
  
  # Calculate file/without extension
  output_file=$(echo $filename | cut -f 1 -d '.').gif

  echo $output_file

  # Run the script on the file
  echo $file

    glitch_this $file  -sd 69 -c -f -i .2 -st 7 -g -o ./output/$output_file 1
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants