"Cannot open image" error when using ImageMagick Filename Links

I use ImageMagick to process some images from the command line and would like to work with a list of files as specified in foo.txt. From the instructions here: http://www.imagemagick.org/script/command-line-processing.php I see that I can use links to file names from a file with the @ prefix. When I run something like:

montage @ foo.txt output.jpg

everything works as expected, as long as foo.txt is in the current directory. However, when I try to access bar.txt in another directory by running:

montage/some_directory/@bar.txt output2.jpg

I get:

editing: it is not possible to open the image / some _directory/@bar.txt: There is no such file or the directory @ blob.c / OpenBlob / 2480.

I believe the problem is my syntax, but I'm not sure what to change it. Any help would be appreciated.

+3
source share
3 answers

A pretty old entry, but it seems relatively obvious that you need to put @ in front of the full path:

montage @/some_directory/bar.txt output2.jpg
+1
source

As with ImageMagick 6.5.4-7 2014-02-10, paths are not supported by @ syntax. The @ file must be in the current directory and identified only by name.

+1
source

IM, , :

gm -sOutputFile=dest.ext -f file1.ppm file2.ppm file3.ppm

, ?

0

Source: https://habr.com/ru/post/1784321/


All Articles