RESOLVED:possible bug -compose displace / -extent IM6896
Posted: 2014-08-12T19:04:03-07:00
I have a strange bug that might relate to -compose displace or -extent where the background is not being filled properly unless I add +write PNG:null:
This relates to my trying to compress the code from my cylinderize script into a new script that does not recreate the displacement map each time.
I have simplified the code as far as I can and still reproduce the issue.
input image:

displacement map image:

This code fails to fill the background completely with black and keeps some transparency.

This code works fine so long as I add +write PNG:null: (it does not work if I use +write MIFF:null)

Am I missing some setting that needs to be reinitialized to its default?
This relates to my trying to compress the code from my cylinderize script into a new script that does not recreate the displacement map each time.
I have simplified the code as far as I can and still reproduce the issue.
input image:

displacement map image:

This code fails to fill the background completely with black and keeps some transparency.
Code: Select all
convert -respect-parenthesis \
\( "img5967.jpg" +repage -gravity center -background none -extent 149x224 \
-resize 93.9691x100% -background black -gravity west -extent 149.591x224 \) \
"displace.png" -virtual-pixel black -background black -gravity northwest \
-define compose:args=9.57656x112 -compose displace -composite test3c.png

This code works fine so long as I add +write PNG:null: (it does not work if I use +write MIFF:null)
Code: Select all
convert -respect-parenthesis \
\( "img5967.jpg" +repage -gravity center -background none -extent 149x224 \
-resize 93.9691x100% -background black -gravity west -extent 149.591x224 +write PNG:null: \) \
"displace.png" -virtual-pixel black -background black -gravity northwest \
-define compose:args=9.57656x112 -compose displace -composite test4c.png

Am I missing some setting that needs to be reinitialized to its default?