Page 1 of 1

trying to imitate zazzle...

Posted: 2011-04-18T14:15:34-07:00
by djmon84
hi all!

First of all, sorry for my english!

I don't know if you know zazzle tech, making images "on the fly" (take a look if you want: http://www.zazzle.com/mahas_muggs_class ... 2293935566)
I'm trying to imitate this technology (win + apache + php with imagick) and is started composing users images with mug's models on the fly, but I cant!
For example, with mugs i'm trying to combine "wave distortion" (http://www.imagemagick.org/Usage/warping/#wave) , "barrel distort", etc.
I found also this link: http://www.fmwconcepts.com/imagemagick/ ... /index.php but i'ts very complex to apply in my server enviroment (win + apache + php) it seems to be easier in Linux enviroment and appears that the script uses a lot of memory...

what you suggest me to do?

Thanks!

Re: trying to imitate zazzle...

Posted: 2011-04-18T14:26:24-07:00
by fmw42
djmon84 wrote:hi all!

I found also this link: http://www.fmwconcepts.com/imagemagick/ ... /index.php but i'ts very complex to apply in my server enviroment (win + apache + php) it seems to be easier in Linux enviroment and appears that the script uses a lot of memory...

Thanks!
Yes, my script run mostly under Linux/Max unix. However, I believe that the script should be callable in your environment, but you would have to use PHP exec function to call the script. It is not a PHP Imagick script. It would run under Wndows/Cygwin as a script also. But it does not run under plain Windows.

Code: Select all

These scripts can be used with PHP exec command.

Pointers for use:
Download the script
Change the name to add or remove the .sh as desired when running
Set the script to executable (chmod u+x)
Edit the script to add the full path to convert, identify and any other IM command
Edit the script to change the default directory (found after the defaults section) from dir="." to dir="/tmp"
In the exec command use bash /fullpathto/scriptname(.sh) arguments /fullpathto/inputimage /fullpathto/outputimage.
Note that "bash" may or may not be necessary
Fred