Page 1 of 1

php thump crop

Posted: Sat Feb 26, 2011 5:29 am
by objet
Hi I want to build a script in php that take from user an image and split(crop) the image to 8 or 12 parts equal in the size for puzzel. my problem is how to crope the image to some number 8? I have a link for libery name phpthumb the adress is : http://phpthumb.gxdlabs.com/ In the libery there is a folder examples/crop_basic.php the file crop_basic.php do the missuen but only for one part is crop I dont know how to crop more then one Can you help me please thx

Re: php thump crop

Posted: Sat Feb 26, 2011 2:45 pm
by McInfo
Are you building a jigsaw puzzle that users interact with by dragging pieces around in their browser windows? If so, you could serve the whole image (no cropping) and use it as the background of many puzzle-piece-sized elements. Use the background-position CSS property to shift the background of each element to the correct offset. There is still the minor mathematical burden of determining the offsets, but that is unavoidable. If you need help with the math, please describe the parameters of your problem in more detail.

Re: php thump crop

Posted: Sat Feb 26, 2011 6:17 pm
by litebearer
might take a look here also...
http://www.nstoia.com/sat/crop/

Re: php thump crop

Posted: Sun Feb 27, 2011 2:39 am
by objet
Thx
I found my nessery on website: http://www.nstoia.com/sat/crop/,
Thx again