[Solved]: passing imagemagick options [Solved]: passing imagemagick options
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: passing imagemagick options

Started by mrmknet, May 28, 2009, 09:56:40 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

mrmknet

Imagemagick work ok for resizing until I try to pass options to the command line
As I add
-interpolate bicubic
I get
QuoteERROR creating : albums/userpics/10001/thumb_file.jpg

How can i correct this?

Nibbler

Are you sure the version of ImageMagick on the server supports that option?

mrmknet

yes, and it is ok through the command line

Nibbler

Enable debug mode and upload a file via HTTP. That should give you the command line used and the actual error message.

mrmknet

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

mrmknet

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

Joachim Müller

Quote from: 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
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.

Quote from: mrmknet on May 28, 2009, 11:54:41 PM
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.