Error executing ImageMagick - Return value: 1 Error executing ImageMagick - Return value: 1
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Error executing ImageMagick - Return value: 1

Started by Oli_Pavitt, August 02, 2005, 12:50:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Oli_Pavitt

Hi Guys,

Can anyone assist with the above error message. The error occurs when trying to upload new pictures to the directory.

Warning: rename(./albums/2005/glade_festival_july05/DSC01707.JPG,./albums/2005/glade_festival_july05/DSC01707.JPG): Permission denied in D:\WWW\UK-CL\htdocs\pictures\addpic.php on line 39
Error executing ImageMagick - Return value: 1

I have installed the latest version of the board and also installed the lastest version of ImageMagik with no success. Any assistance would be most welcome.

kegobeer

You probably don't have ImageMagick installed/configured or set permissions correctly.  Have you searched the forums for "imagemagick return value 1" yet?  In the meantime, switch to GD2.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Oli_Pavitt

Hi Kegobeer,

I've search through loads of messages on the board and have found nothing with a solution. The board had been working well for a year and then we updraged the server to windows 2003 and the first errors occured. We then roled back to Windows 2000 to no avail.

I upgraded the version of the board and reinstall ImageMagic with no success. The full errors in debug miode reads as follows.

- - - - - - - ERROR - - - - - - -
Warning: rename(./albums/2005/glade_festival_july05/DSC01707.JPG,./albums/2005/glade_festival_july05/DSC01707.JPG): Permission denied in D:\WWW\UK-CL\htdocs\pictures\addpic.php on line 39
Error executing ImageMagick - Return value: 1

Cmd line :
"C:/Inetpub/Scripts/ImageMagick-5.5.7-Q16/convert" -quality 80 -antialias -geometry 120x90 "D:/WWW/UK-CL/htdocs/pictures/albums/2005/glade_festival_july05/DSC01707.JPG" "D:/WWW/UK-CL/htdocs/pictures/albums/2005/glade_festival_july05/thumb_DSC01707.JPG"

The convert program said:
The filename, directory name, or volume label syntax is incorrect.
- - - - - - - ERROR - - - - - - -

Any help on this would be most welcome as I'm tearing my hair out at the moment.

Oli

kegobeer

You have two issues: permissions for your directories aren't correct, and a strange problem with ImageMagick.

1.  Check all of your directory permissions for your entire Coppermine gallery.  If the script can't rename a file, it doesn't have permission to the directory.  Fixing that may eliminate your ImageMagick problem.

2.  A google search turned up this link.  It may help, but then again it may not.

Fix your permissions issues and report back.  You should also try batch adding images to see if you have similar problems.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

When using IIS, you have to grant full acces to the ImageMagick dir and everything within it for the IUSR_hostname account, when using apache, you'll have to do the same thing for the user the webserver runs under.

Oli_Pavitt

Hi kegobeer & GauGau,

Many thanks for your replies. Thankfully after reading your responses I was able to resolve the issue.

It seems that rolling back the install to Windows 2000 server resulted in the permissions on the folders being removed and also a slight problem with the install of ImageMagic. To resolve the issue I carried out the following.

1) I checked permissions and corrected them on the following folders.

- Route of the affected website
- Coppermine folder
- ImageMagic folder

2) Reinstalled ImageMagic

3) Corrected the Config file on the Coppermine Gallery

Guys your help was and is very much appreciated, Best Wishes Oli Pavitt  ;D