forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: mrmknet on May 28, 2009, 09:56:40 pm

Title: [Solved]: passing imagemagick options
Post by: mrmknet on May 28, 2009, 09:56:40 pm
Imagemagick work ok for resizing until I try to pass options to the command line
As I add
Code: [Select]
-interpolate bicubicI get
Quote
ERROR creating : albums/userpics/10001/thumb_file.jpg

How can i correct this?
Title: Re: passing imagemagick options
Post by: Nibbler on May 28, 2009, 10:08:29 pm
Are you sure the version of ImageMagick on the server supports that option?
Title: Re: passing imagemagick options
Post by: mrmknet on May 28, 2009, 10:09:24 pm
yes, and it is ok through the command line
Title: Re: passing imagemagick options
Post by: Nibbler on May 28, 2009, 10:14:51 pm
Enable debug mode and upload a file via HTTP. That should give you the command line used and the actual error message.
Title: Re: passing imagemagick options
Post by: mrmknet on May 28, 2009, 11:26:30 pm
This is what i got
Quote
/include/picmgmt.inc.php

    * Notice line 205: Undefined index: OS
    * Warning line 225: unlink(albums/userpics/10001/thumb_IMG_3089-cropped-sharpen.JPG) [function.unlink]: No such file or directory
    * Notice line 205: Undefined index: OS
    * Warning line 225: unlink(albums/userpics/10001/2/thumb_IMG_3141-cropped-sharpen.JPG) [function.unlink]: No such file or directory
Title: Re: passing imagemagick options
Post by: mrmknet on May 28, 2009, 11:54:41 pm
I uninstalled imageagick [which i had installed from source] and installed it from an rpm.
This solved the problem and everything works OK now

Although I do not know why, I decided to share so if someone later have the same problem and reached the topic through a search, he can find a solution

If someone can explain what was wrong with the installation-from-source, it will be appreciated
Title: Re: passing imagemagick options
Post by: Joachim Müller on May 29, 2009, 10:01:10 am
This is what i got
Quote
/include/picmgmt.inc.php

    * Notice line 205: Undefined index: OS
    * Warning line 225: unlink(albums/userpics/10001/thumb_IMG_3089-cropped-sharpen.JPG) [function.unlink]: No such file or directory
    * Notice line 205: Undefined index: OS
    * Warning line 225: unlink(albums/userpics/10001/2/thumb_IMG_3141-cropped-sharpen.JPG) [function.unlink]: No such file or directory
That's the ouput that shows when enabling notices - nobody asked for that.

The debug_output, that's what Nibbler asked for. You haven't posted it.

If someone can explain what was wrong with the installation-from-source, it will be appreciated
Impossible to say, as you deleted the installation from source. We can't say what was wrong. You probably have seen one of those popular forensics series on tv: you have tampered with evidence and ruined the crime scene, so we can't say what was wrong, and there would be not point. Never ask why. From my experience, building from source never is a bright idea - you should always use a package and only build from source if you have no other option.
Your issue clearly is related to webserver setup, which is something we can not support because it's beyond the scope of this board. We can't recommend self-hosting neither.
Anyway, thanks for returning and resolving your thread.