trying to imitate zazzle...

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
djmon84
Posts: 8
Joined: 2010-04-05T04:55:59-07:00
Authentication code: 8675308

trying to imitate zazzle...

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: trying to imitate zazzle...

Post 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
Post Reply