Support » Plugin: PDF Image Generator » Spaces in file names

  • chototoro


    Hi, just to let you know, i noticed the thumbnail creation fails if the uploaded PDF filename contains spaces. It also fails if there is a space somewhere in the path to wordpress (which is of course not recommended at all, but it can happens when working on a local server, or a python simplehttpserver for instance).
    To correct this problem, a solution can be to use the filter ‘pigen_filter_convert_imageMagick’, parse the command to find where the file paths are, and add single quotes around them.
    But the thing is that there is a first command, not filtered (on line 434 in pdf-image-generator.php), used to detect the colorspace of the PDF. So, in case this PDF filename contains spaces, this command will fail anyway.
    I would therefore suggest a small update of the plugin, if possible, with just the addition of single quotes directly around file paths in every command used.

    Nonetheless, thank you very much for this plugin which is very useful! 🙂


Viewing 1 replies (of 1 total)
  • Plugin Author Mizuho Ogino


    Hi chototoro.

    It’s a helpful information.
    Line-434 problem is also reported by the other user.
    The next version will support the issue and release as soon as it’s ready.

    Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Spaces in file names’ is closed to new replies.