This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Webmaster forum > May 2005 > Re: Testing Imagemagick on *nix server?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Testing Imagemagick on *nix server?
Gandalf Parker

2005-05-20, 11:38 pm

"plato" <platoTAKETHISOUT@telpacific.com.au> wrote in
news:428e94df@news.rivernet.com.au:

> Does anyone know a simple script I can use that will test if
> Imagemagick is working on a *nix server


convert -size 100x100 plasma:fractal plasma_fractal1.jpg

creates a pretty pattern in a small jpg

Gandalf Parker
plato

2005-05-21, 4:16 am


"Gandalf Parker" <gandalf@most.of.my.favorite.sites> wrote in message
news:Xns965CC784ECB99gandalfparker@208.201.224.154...
> "plato" <platoTAKETHISOUT@telpacific.com.au> wrote in
> news:428e94df@news.rivernet.com.au:
>
>
> convert -size 100x100 plasma:fractal plasma_fractal1.jpg
>
> creates a pretty pattern in a small jpg
>
> Gandalf Parker


Not sure how I run the command? Do I put it in a PHP page and upload it...do
I need any other details to get it to work.

I suspect Imagemagick isn't working


plato

2005-05-21, 4:16 am


"Gandalf Parker" <gandalf@most.of.my.favorite.sites> wrote in message
news:Xns965CC784ECB99gandalfparker@208.201.224.154...
> "plato" <platoTAKETHISOUT@telpacific.com.au> wrote in
> news:428e94df@news.rivernet.com.au:
>
>
> convert -size 100x100 plasma:fractal plasma_fractal1.jpg
>
> creates a pretty pattern in a small jpg
>
> Gandalf Parker


Got it...it seems to work... must be a problem with my scripts somewhere....


plato

2005-05-21, 4:17 am


"Gandalf Parker" <gandalf@most.of.my.favorite.sites> wrote in message
news:Xns965CC784ECB99gandalfparker@208.201.224.154...
> "plato" <platoTAKETHISOUT@telpacific.com.au> wrote in
> news:428e94df@news.rivernet.com.au:
>
>
> convert -size 100x100 plasma:fractal plasma_fractal1.jpg
>
> creates a pretty pattern in a small jpg
>
> Gandalf Parker

Gandalf,

While this command works I am having difficulty testing the mogrify
command....

My script gives an error and the image isn't reduced in size...how do I test
this command?


Blinky the Shark

2005-05-21, 4:17 am

plato wrote:

> "Gandalf Parker" <gandalf@most.of.my.favorite.sites> wrote in message
> news:Xns965CC784ECB99gandalfparker@208.201.224.154...
[color=darkred]
[color=darkred]
[color=darkred]
[color=darkred]
> Gandalf,


> While this command works I am having difficulty testing the mogrify
> command....


> My script gives an error and the image isn't reduced in size...how do I test
> this command?


Should you be using the resize option?

--
Blinky Linux Registered User 297263
Killing all Usenet posts from Google Groups
Info: http://blinkynet.net/comp/uip5.html
plato

2005-05-21, 4:17 am


"Blinky the Shark" <no.spam@box.invalid> wrote in message
news:slrnd8tkhj.33p.no.spam@thurston.blinkynet.net...
> plato wrote:
>
>
>
>
>
>
>
test[color=darkred]
>
> Should you be using the resize option?
>

No I need to test the mogrify command is working. I am using photopost and
the config-inc file is set to allow either mogrigy or GD 2. The latter works
but when i select the mogrify command option it does nothing and I get an
error message 'which is the same if I use an invalid path to the
command'.... I have the right path, i know Imagemagick is installed but it's
not reducing the size of my images. I mean I have been using this program
for years with no problems, so I don't think it is a script problem on my
side.


David Dorward

2005-05-21, 7:20 am

plato wrote:

[color=darkred]
[color=darkred]
> Not sure how I run the command? Do I put it in a PHP page and upload
> it...


No, you type it at the command line. Testing Image Magick and testing PHP
bindings to Image Magick are two different kettles of fish.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Gandalf Parker

2005-05-21, 7:22 pm

"plato" <platoTAKETHISOUT@telpacific.com.au> wrote in
news:428edfc1@news.rivernet.com.au:

> No I need to test the mogrify command is working. I am using photopost
> and the config-inc file is set to allow either mogrigy or GD 2. The
> latter works but when i select the mogrify command option it does
> nothing and I get an error message 'which is the same if I use an
> invalid path to the command'.... I have the right path, i know
> Imagemagick is installed but it's not reducing the size of my images.
> I mean I have been using this program for years with no problems, so I
> don't think it is a script problem on my side.


Well using my previous example which created a jpg to use....

mogrify -format gif -size 10x10 -thumbnail 10x10 plasma_fractal1.jpg

This should turn the 100X100 jpg into a 10x10 gif

Gandalf Parker
Toby Inkster

2005-05-23, 7:55 am

plato wrote:

> I know it's installed and the path to the mogrify command but for some
> reason they either don't have share enabled or don't have permissions on
> the folder set as I constantly get an error that 'for security reasons
> the path is disabled'.


Try simply running it!

Running "`which mogrify`" at the command line (including the backticks,
but not the double quotes!) ought to give you some help text on how to use
mogrify. If that works, then it means that mogrify is accessible and
executable, and working to an extent.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews