Convert Image to PDF from List: Problems with Blank Space

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
LittleKI
Posts: 32
Joined: 2015-01-11T11:55:29-07:00
Authentication code: 6789

Convert Image to PDF from List: Problems with Blank Space

Post by LittleKI »

Hi,

i use this Command lIne to convert Images that are stored in the same folder to a single PDF. But this doesn't work when the image file names have blank space. This is the Command line:

Code: Select all

convert @file-list output.pdf
This works with a file list like this

Code: Select all

001.tif
002.tif
but not with a file list like this

Code: Select all

frist image.tif
second image.tif
when i try the second file there is no error or anything. i looks like convert is still running, but after minutes of waiting there is not output.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert Image to PDF from List: Problems with Blank Space

Post by fmw42 »

IM cannot figure out what to do with first and second. They have no suffix and are not image files.

IM image lists can only include images, not labels. If you have an image name with a space in it, then enclose the whole image name in quotes.
Post Reply