crop + distort perspective + append creates a gap
Posted: 2009-06-05T09:43:21-07:00
Hello all,
I'm trying to split an image into two and then add a distortion effect to both sides and then reappend the images:
When ever I do this there is a small gap (maybe 1 pixel) between the two appended images. The code is part of a video compositing script, so that the values for the perspective distortion will change for each new image being processed. I need virtual pixels to be transparent because as the image is distorted it reveals a background image. The original image is 844x634, but it doesn't matter which size image I take. My question is if I'm doing anything wrong that's causing the gap? Or if there's any way to get rid of it?
Yours, Rob
I'm trying to split an image into two and then add a distortion effect to both sides and then reappend the images:
Code: Select all
convert test.png -crop 50%x100%+0+0 -alpha on -virtual-pixel transparent -distort perspective ' 0,0 0,0 0,634 0,634 422,634 422,634 422,0 422,0 ' \( test.png -gravity east -crop 50%x100%+0+0 -alpha on -virtual-pixel transparent -distort perspective ' 0,0 0,0 0,634 0,634 422,634 422,634 422,0 422,0 ' \) +append test.png
Yours, Rob