Use ImageMagick's file inclusion operator (@) to read in a list of files as described in this StackOverflow post, either saving it to a temporary file, or reading it from stdin.
This is more robust as ARG_MAX will not be hit, and it should hopefully be able to deal with paths with whitespaces. This should then make it easier to make the script be callable from anywhere.
Use ImageMagick's file inclusion operator (
@) to read in a list of files as described in this StackOverflow post, either saving it to a temporary file, or reading it from stdin.This is more robust as
ARG_MAXwill not be hit, and it should hopefully be able to deal with paths with whitespaces. This should then make it easier to make the script be callable from anywhere.