IM 6.7.6.4 Q16 Mac OSX Snow Leopard.
Seems like my script, 3Dbox, is failing with a segmentation fault. I have not tested it in a while and so am not sure when this started.
The following works with images as jpg and gif.
img1="mandril.jpg"
proc1="-matte +distort Perspective"
s1="0,0 0,24.2195 127,0 99.3534,-49.6767 127,127 81.927,40.9635 0,127 0,112.896"
img2="logo3.gif"
proc2="-matte +distort Perspective"
s2="0,0 -99.3534,-49.6767 127,0 0,24.2195 127,127 0,112.896 0,127 -81.927,40.9635"
img3="zelda3.jpg"
proc3="-matte +distort Perspective"
s3="0,0 -99.3534,-49.6767 127,0 0,-104.25 127,127 99.3534,-49.6767 0,127 0,24.2195"
convert -virtual-pixel transparent -mattecolor none \
\( $img1 $proc1 "$s1" \) \
\( $img2 $proc2 "$s2" \) \
\( $img3 $proc3 "$s3" \) \
-background black -layers merge +repage \
show:
However, this fails if the images are converted to .mpc first.
convert mandril.jpg 1tmp1.mpc
img1="1tmp1.mpc"
proc1="-matte +distort Perspective"
s1="0,0 0,24.2195 127,0 99.3534,-49.6767 127,127 81.927,40.9635 0,127 0,112.896"
convert logo3.gif 1tmp2.mpc
img2="1tmp2.mpc"
proc2="-matte +distort Perspective"
s2="0,0 -99.3534,-49.6767 127,0 0,24.2195 127,127 0,112.896 0,127 -81.927,40.9635"
convert zelda3.jpg 1tmp3.mpc
img3="1tmp3.mpc"
proc3="-matte +distort Perspective"
s3="0,0 -99.3534,-49.6767 127,0 0,-104.25 127,127 99.3534,-49.6767 0,127 0,24.2195"
convert -virtual-pixel transparent -mattecolor none \
\( $img1 $proc1 "$s1" \) \
\( $img2 $proc2 "$s2" \) \
\( $img3 $proc3 "$s3" \) \
-background black -layers merge +repage \
show:
Segmentation fault
Why is this happening? Am I missing something or mistyped something?
possible bug .mpc IM 6.7.6.4 Q16
Re: possible bug .mpc IM 6.7.6.4 Q16
We can reproduce the problem you reported and have a patch. Look for it in ImageMagick 6.7.6-5 Beta within a day or two. Thanks,
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: possible bug .mpc IM 6.7.6.4 Q16
magick wrote:We can reproduce the problem you reported and have a patch. Look for it in ImageMagick 6.7.6-5 Beta within a day or two. Thanks,
Thanks.
Fred