Search found 9 matches

by Acrossfy
2011-03-06T02:53:03-07:00
Forum: IMagick
Topic: Displacement map
Replies: 17
Views: 47738

Re: Displacement map

I've got the result after the experiments. Soon I'll write about all the details and nuances.
by Acrossfy
2011-03-05T01:35:33-07:00
Forum: IMagick
Topic: Displacement map
Replies: 17
Views: 47738

Re: Displacement map

You don`t understand, I have many times tried different values, including those that you recommended. This does not affect the results.
I've used your displacement map, but I added padding in the Photoshop - it completely removes the background.
by Acrossfy
2011-03-04T14:27:48-07:00
Forum: IMagick
Topic: Displacement map
Replies: 17
Views: 47738

Re: Displacement map

<?php $shirt = new imagick( "shirt.jpg" ); $image = new imagick( "image.png" ); $displace = new imagick( "displace.png" ); $image->compositeImage( $displace, Imagick::COMPOSITE_DISPLACE, 14, -10 ); $shirt->compositeImage( $image, Imagick::COMPOSITE_OVER, 60, 80); heade...
by Acrossfy
2011-03-04T09:07:42-07:00
Forum: IMagick
Topic: Displacement map
Replies: 17
Views: 47738

Re: Displacement map

Code: <?php $image = new imagick( "image.jpg" ); $image->setImageVirtualPixelMethod(Imagick::VIRTUALPIXELMETHOD_TRANSPARENT); $image->setImageBackgroundColor( new ImagickPixel( "none" ) ); $image->setImageFormat("png"); $displace = new imagick( "displace.png" ...
by Acrossfy
2011-03-03T13:50:11-07:00
Forum: IMagick
Topic: Displacement map
Replies: 17
Views: 47738

Re: Displacement map

I use exactly a grayscale displacement map.
by Acrossfy
2011-03-03T10:35:04-07:00
Forum: IMagick
Topic: Displacement map
Replies: 17
Views: 47738

Re: Displacement map

These are the other options, they are responsible for the positioning..
Image
by Acrossfy
2011-03-03T05:57:02-07:00
Forum: IMagick
Topic: Displacement map
Replies: 17
Views: 47738

Re: Displacement map

I'm interested in this particular part of code, how to implement it in imagick syntax?

Code: Select all

convert image.jpg displace.png -alpha set -virtual-pixel transparent -compose displace -set option:compose:args -5x-5 -composite result.png
by Acrossfy
2011-03-03T02:08:31-07:00
Forum: IMagick
Topic: Displacement map
Replies: 17
Views: 47738

Re: Displacement map

My example: $displace->adaptiveResizeImage( 100, null ); $image->adaptiveResizeImage( 100, null ); $image->compositeImage( $displace, Imagick::COMPOSITE_DISPLACE, 0, 0 ); $shirt->compositeImage( $image, Imagick::COMPOSITE_OVER, 188, 200 ); It works - http://pix.am/HhAE.png . But image don`t transfor...
by Acrossfy
2011-03-02T10:00:24-07:00
Forum: IMagick
Topic: Displacement map
Replies: 17
Views: 47738

Displacement map

Hello, could you tell me how to make something like this – viewtopic.php?f=1&t=16921#p62696 using imagick?
Thank you in advance)