CONVERT and output to another with SAME filename

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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post by Bonzo »

Can you modify the bit of code at the bottom of this page ?

http://www.rubblewebs.co.uk/imagemagick/code.php
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post by Bonzo »

I was not thinking; one problem I find is that if you put /cygdrive/e/tmp/album/IMG_1705.JPG in the code it can throw an error.

If you put $image = "/cygdrive/e/tmp/album/IMG_1705.JPG "; and use $image in your code it works.
I do not know why and it could just be my server setup; this is assuming you are using php.

You are also escaping some " but not all; is this just a typing error?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Could it be that your filename has a space character in it?? You have space in the quotes which seems to indicate that is the case. Remember ALL characters except NULL and slash are actually valid characters under UNIX filesystems, though may not be valid under cgiwin and its use of the windows vfat/ntfs filesystems.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply