Menu

#398 Issue parsing file list containing quotes

v1.0_(example)
open
nobody
None
5
2016-09-11
2016-09-10
No

While using a batch script to echo a list of files to be processed by montage I need to quote the filepath because of special characters contained in the path. When feeding the file list to montage through @ it will give an error: [No such file or directory]

The file list will cointain paths as follows:
"C:\images & resources\file_a_1.jpg"
"C:\images & resources\file_a_2.jpg"

I cannot create the list wiyhout the quotes but with them it will literally assume the quotes as part of the filename or path.

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2016-09-11

    Why do you need to include the quotes into the file that you use as the list of input files? Does it work if you use a text editor to remove the quoting?

    GraphicsMagick will use the paths as specified and does not care about any special characters (the shell or batch script may care but GraphicsMagick does not).

    A known issue at this time is that Unicode or UTF-8/16 characters do not work in filenames passed to GraphicsMagick under Windows.

     
  • joint_striker

    joint_striker - 2016-09-11

    Removing the quotes from the text file does solve the problem, but as I mentioned the list is produced automatically from a batch script and the quotes are included because it is the only way the batch file will print them with special chars like "&".

    I suppose I could try to use another tool to sanitize the file list before calling GraphicsMagick.
    It's just that I was atttempting the same thing with ImageMagick and there's no issue there with teh quotes.

     

Log in to post a comment.

MongoDB Logo MongoDB