Page 1 of 1

[RESOLVED] possible bug IM 7.0.1.0 piping from composite to magick

Posted: 2016-05-04T15:48:25-07:00
by fmw42
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.

Code: Select all

convert -version
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

Code: Select all

im7 magick -version
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

Code: Select all

im7 convert -version
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):

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
-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.

Re: possible bug IM 7.0.1.0 piping from composite to magick

Posted: 2016-05-04T16:17:28-07:00
by magick
Your command works for us without complaint:
  • 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
We're using ImageMagick 7.0.1-1 under Fedora Linux.

Re: possible bug IM 7.0.1.0 piping from composite to magick

Posted: 2016-05-04T16:24:26-07:00
by fmw42
Strange! Perhaps only on Mac OSX? Can anyone else duplicate the failure and error message?

Re: [RESOLVED] possible bug IM 7.0.1.0 piping from composite to magick

Posted: 2016-05-04T16:38:14-07:00
by fmw42
Never mind. It was my mistake. I am using IM 7 via my im7 script from make, but not make install, so I can run many versions of IM on my Mac. I forgot to preface each part of the command with im7, so I was getting a mixed IM 6 and IM 7 result.