Page 1 of 1

Create a 3d-box like effect on regular image

Posted: 2012-07-25T00:43:57-07:00
by conf
Hello, guys.
I'm trying to make a 3d-box like effect (don't know how it's called correctly), similar to what raise is doing, so image would look like this:
Image

So what I tried to do:

Having this base image:
Image

I made

Code: Select all

 convert bath.jpg -gravity southwest -splice 25x25 -raise 25 -chop 25x25 framed.jpg 
and got this:
Image

So, as you can see, it's almost what I need excepting bottom right corner, which should be cropped up-right or smth. How I can do it? Crop works only on rectangular basis. Or maybe there's an easier way to do whole effect?
Thank you.

Re: Create a 3d-box like effect on regular image

Posted: 2012-07-25T02:39:28-07:00
by Bonzo
I am sure I posted on the forum about this but here is a link to a php version on my website: Canvas print effect

Re: Create a 3d-box like effect on regular image

Posted: 2012-07-25T05:16:56-07:00
by conf
Thank you very much! Exactly what I need.
The script didn't run from the box, though, I had to make some changes:
1) Add escapeshellcmd around all the $cmd variable
2) Changed in the first $cmd "-write right.miff +delete null:" to "right.miff", because it didn't work that way.

Re: Create a 3d-box like effect on regular image

Posted: 2012-07-25T07:36:34-07:00
by Bonzo
I am glad it works and it was more an example and had no security!

It is funny that on some machines the null: is required and on others it causes a problem.