Page 1 of 1

Godaddy and ImageMagick

Posted: 2007-12-01T00:12:26-07:00
by garrettgriess
Hello, I'm trying to get curved or arched text to work on godaddy.
They have both versions 5 and 6 which I've tried this on, but with no luck.

I'm executing the code directly from php like this:

Code: Select all

$path6 = "/usr/local/bin/";
exec($path6 . "convert -size 400x200 xc:white -fill orange -font res/arial.ttf -pointsize 24 -draw \"gravity Center text 0,0 'This is my text'\" -trim test.jpg");
This code works fine, but the second I add something like -distort Arc 120, the image will no longer be created.

Is this a problem with godaddy?
Are there certain commands that can't be ran on godaddy?
Or is there something about my code that doesn't work with -distort?
(I just started learning this, so any help would be great.)

Thanks,
-Garrett

Re: Godaddy and ImageMagick

Posted: 2007-12-01T01:37:05-07:00
by Bonzo
If you look at my site you can see some code to find out more info about you IM installation.

Previous post about this: http://redux.imagemagick.org/discourse- ... 2053529985

Re: Godaddy and ImageMagick

Posted: 2007-12-02T22:26:35-07:00
by anthony
More than likely you IM is too old. The -distort is a very new feature in IM.

Re: Godaddy and ImageMagick

Posted: 2007-12-03T13:09:22-07:00
by garrettgriess
If this is the case, which I assume it is, is there any other way to make text curve or arc using older versions?

Thanks,
-Garrett

Re: Godaddy and ImageMagick

Posted: 2007-12-03T20:01:02-07:00
by anthony
There is a DIY method re-creating the distort using -fx methods.
This uses a two step 'distortion map' method (as a proof of concept).
http://imagemagick.org/Usage/distorts/#lut_circlar_arc
also the next 'polar' method.

You can also use the 'arched' text compond font method, using the -wave distortion operator.
http://imagemagick.org/Usage/fonts/#arch
and http://imagemagick.org/Usage/distorts/#wave