Fill in the proper arguments. Also be sure the script downloads as tshirt.sh and not tshirt. Be sure that you call the script exactly as the its name when downloaded or change the script name as desired to be consistent with now you want to call it.

While run this command I am getting the error like this unrecognized virtual pixel method `none' @ error/convert.c/ConvertImageCommand/2940.
And some times I'm getting the commented lines in tshirt script in the terminal window.

If I'm trying to using this following code , Its working fine and get a result.

What are the exact errors that you get from the PHP code that I suggested above when using my example images all at the same location as the script?

Does that fail the same way?

Can you provide your input images so I can test your command above? You can upload them to some place such as dropbox.com and put the URL here or send them to me privately by email to fmw at alink dot net

Try again, but put the full path to convert. I need to know what delegates you have and what version of Imagemagick is being used.

Those images are from my web site.

But what error messages did you get from the command to process those images in the PHP code when both images and output and script are in the same place? And what is your exact PHP code for this example?

My guess is that your ancient version of Imagemagick has a bug in it. Version 6.6.9.7 is over 230 versions old. I suggest that you upgrade your version of Imagemagick. I would suggest you upgrade to the latest version, but at least 6.8.6.0 to avoid other color and grayscale issues that were being made starting with about your version of IM. See viewtopic.php?f=4&t=21269.

My guess is that your ancient version of Imagemagick has a bug in it. Version 6.6.9.7 is over 230 versions old. I suggest that you upgrade your version of Imagemagick. I would suggest you upgrade to the latest version, but at least 6.8.6.0 to avoid other color and grayscale issues that were being made starting with about your version of IM. See viewtopic.php?f=4&t=21269.

Thank you for the help. Sorry for getting back a bit late, as I was setting up the servers from scratch and after multiple attempts I have now successfully installed both Imagemagick 6.9.3-5 and Imagick 3.3.0 on my server. I tried the commands on your above post using shell script and it worked fine!!

fmw42 wrote:Sorry, I do not use Imagick and I do not think you can run my scripts from Imagick. You will need to use PHP exec() as far as I know.

Many system administrators suggested me that running on exec() command puts the server vulnerable to threats. Also, my main target is to integrate this feature on the site, which way a user can customize the text on the tshirt like I mentioned in my OP. I tried searching for functions in the imagick, but I am still unlucky to get hold of the right functions to achieve the wrinkle effect.