possible bug .mpc IM 6.7.6.4 Q16
Posted: 2012-04-04T16:17:51-07:00
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?
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?