Godaddy and ImageMagick

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
garrettgriess

Godaddy and ImageMagick

Post 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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Godaddy and ImageMagick

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Godaddy and ImageMagick

Post by anthony »

More than likely you IM is too old. The -distort is a very new feature in IM.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
garrettgriess

Re: Godaddy and ImageMagick

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Godaddy and ImageMagick

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply