Search found 9 matches
- 2011-03-06T02:53:03-07:00
- Forum: IMagick
- Topic: Displacement map
- Replies: 17
- Views: 49670
Re: Displacement map
I've got the result after the experiments. Soon I'll write about all the details and nuances.
- 2011-03-05T01:35:33-07:00
- Forum: IMagick
- Topic: Displacement map
- Replies: 17
- Views: 49670
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.
I've used your displacement map, but I added padding in the Photoshop - it completely removes the background.
- 2011-03-04T14:27:48-07:00
- Forum: IMagick
- Topic: Displacement map
- Replies: 17
- Views: 49670
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); header( "Content-Type: image/jpg ...
- 2011-03-04T09:07:42-07:00
- Forum: IMagick
- Topic: Displacement map
- Replies: 17
- Views: 49670
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" ); $displace->setImageBackgroundColor ...
- 2011-03-03T13:50:11-07:00
- Forum: IMagick
- Topic: Displacement map
- Replies: 17
- Views: 49670
Re: Displacement map
I use exactly a grayscale displacement map.
- 2011-03-03T10:35:04-07:00
- Forum: IMagick
- Topic: Displacement map
- Replies: 17
- Views: 49670
Re: Displacement map
These are the other options, they are responsible for the positioning..


- 2011-03-03T05:57:02-07:00
- Forum: IMagick
- Topic: Displacement map
- Replies: 17
- Views: 49670
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
- 2011-03-03T02:08:31-07:00
- Forum: IMagick
- Topic: Displacement map
- Replies: 17
- Views: 49670
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 ...
- 2011-03-02T10:00:24-07:00
- Forum: IMagick
- Topic: Displacement map
- Replies: 17
- Views: 49670
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)
Thank you in advance)