[RESOLVED] possible bug IM 7.0.1.0 piping from composite to magick
Posted: 2016-05-04T15:48:25-07:00
For test images and the user's command from Windows, see viewtopic.php?f=3&t=29582#p132839. I have fixed some issues there with his command and tested them below. I would not have used composite, but would have made this one long convert command without the pipes. But I tested it for him and found this issue.
Mac OSX Snow Leopard
All versions are reported properly.
Version: ImageMagick 6.9.3-9 Q16 x86_64 2016-04-30 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp x xml zlib
Version: ImageMagick 7.0.1-0 Q16 x86_64 2016-04-30 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib cairo fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp x xml zlib
Version: ImageMagick 7.0.1-0 Q16 x86_64 2016-04-30 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib cairo fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp x xml zlib
I did these three tests:
This works fine with IM 6.9.3.9 (convert, then composite, then convert again):
This works fine with IM 7.0.1.0 and convert in two places (convert, then composite, then convert):
This works fine with IM 7.0.1.0 and magick and convert mixed (magick, then composite, then convert):
This fails with IM 7.0.1.0 magick only (magick, then composite, then magick):
-bash: magick: command not found
The command finishes, but no output is produced.
Apparently, IM 7 does not like to pipe from composite back to magick.
Mac OSX Snow Leopard
All versions are reported properly.
Code: Select all
convert -version
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp x xml zlib
Code: Select all
im7 magick -version
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib cairo fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp x xml zlib
Code: Select all
im7 convert -version
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib cairo fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp x xml zlib
I did these three tests:
This works fine with IM 6.9.3.9 (convert, then composite, then convert again):
Code: Select all
convert Tx_Sky_Overcast.dds -resize 4096x4096 -background "rgb(6,8,10)" -alpha remove miff:- |\
composite -compose over Tx_Skd_CloudBreak_Mask.dds - -alpha set miff:- |\
convert Tx_Skd_4xCloudy.dds - -composite \
-define dds:compression=dxt5 -define dds:cluster-fit=false Tx_Sky_Overcast_6939.dds
This works fine with IM 7.0.1.0 and convert in two places (convert, then composite, then convert):
Code: Select all
im7 convert Tx_Sky_Overcast.dds -resize 4096x4096 -background "rgb(6,8,10)" -alpha remove miff:- |\
composite -compose over Tx_Skd_CloudBreak_Mask.dds - -alpha set miff:- |\
convert Tx_Skd_4xCloudy.dds - -composite \
-define dds:compression=dxt5 -define dds:cluster-fit=false Tx_Sky_Overcast_7010convert.dds
This works fine with IM 7.0.1.0 and magick and convert mixed (magick, then composite, then convert):
Code: Select all
im7 magick Tx_Sky_Overcast.dds -resize 4096x4096 -background "rgb(6,8,10)" -alpha remove miff:- |\
composite -compose over Tx_Skd_CloudBreak_Mask.dds - -alpha set miff:- |\
convert Tx_Skd_4xCloudy.dds - -composite \
-define dds:compression=dxt5 -define dds:cluster-fit=false Tx_Sky_Overcast_7010magick.dds
This fails with IM 7.0.1.0 magick only (magick, then composite, then magick):
Code: Select all
im7 magick Tx_Sky_Overcast.dds -resize 4096x4096 -background "rgb(6,8,10)" -alpha remove miff:- |\
composite -compose over Tx_Skd_CloudBreak_Mask.dds - -alpha set miff:- |\
magick Tx_Skd_4xCloudy.dds - -composite \
-define dds:compression=dxt5 -define dds:cluster-fit=false Tx_Sky_Overcast_7010magick2.dds
The command finishes, but no output is produced.
Apparently, IM 7 does not like to pipe from composite back to magick.