Help with using IM convert

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
crao
Posts: 2
Joined: 2013-01-31T12:46:38-07:00
Authentication code: 6789

Help with using IM convert

Post by crao »

Hi,

I've been using Debian Squeeze's IM, version 6.6.0-4, 32bit, for some time to do some image conversions. Everything seems to be fine. Recently, due to additional needs, I upgraded to the latest version, 6.8.2-2, 64bit. I am noticing some strange behaviors.

The issue can be illustrated by running the following command:

convert ball6-7.png +append ball6.png

What I am noticing is that, the latest version of IM seems to be adding some opaque layer on top of the image, thus causing the image color to be distorted. Also, it appears that the alpha channel is removed from the output as well, thus causing the transparent background to turn black. The image files can be retrieved from the following 2 links.

https://www.dropbox.com/s/gapsfcd9i7ukk85/ball6-7.png
https://www.dropbox.com/s/qnxroe7yyksa2zq/ball6.png

Advanced thanks to anyone who helps.

convert -list configure on the latest system shows:

CC gcc -std=gnu99 -std=gnu99
CFLAGS -pthread -I/usr/include/OpenEXR -I/usr/include/lqr-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -fopenmp -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
CODER_PATH /usr/local/lib/ImageMagick-6.8.2/modules-Q16/coders
CONFIGURE ./configure
CONFIGURE_PATH /usr/local/etc/ImageMagick/
COPYRIGHT Copyright (C) 1999-2013 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib mpeg fftw fontconfig freetype jng jp2 jpeg lcms lqr lzma openexr pango png ps tiff x xml zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-gvc=no --with-rsvg=no --with-wmf=no --with-perl=no
DOCUMENTATION_PATH /usr/local/share/doc/ImageMagick-6.8.2
EXEC-PREFIX /usr/local
EXECUTABLE_PATH /usr/local/bin
FEATURES DPC OpenMP
FILTER_PATH /usr/local/lib/ImageMagick-6.8.2/modules-Q16/filters
HOST x86_64-unknown-linux-gnu
INCLUDE_PATH /usr/local/include/ImageMagick
LDFLAGS -L/usr/local/lib
LIB_VERSION 0x682
LIB_VERSION_NUMBER 6,8,2,2
LIBRARY_PATH /usr/local/lib/ImageMagick-6.8.2
LIBS -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -llqr-1 -lglib-2.0 -lpng12 -lfftw3 -lfontconfig -lXext -lSM -lICE -lX11 -llzma -lbz2 -pthread -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread -pthread -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm -lgomp -lpthread
NAME ImageMagick
PCFLAGS -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 2013-01-31
SHARE_PATH /usr/local/share/ImageMagick-6.8.2
SHAREARCH_PATH /usr/local/lib/ImageMagick-6.8.2/config-Q16
SVN_REVISION 10882
TARGET_CPU x86_64
TARGET_OS linux-gnu
TARGET_VENDOR unknown
VERSION 6.8.2
WEBSITE http://www.imagemagick.org

Path: [built-in]

Name Value
-------------------------------------------------------------------------------
FEATURES OpenMP
NAME ImageMagick
QuantumDepth 16
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Help with using IM convert

Post by snibgo »

I can reproduce the problem on Windows 7 in 6.8.2-0. It did not occur in v 6.8.1-10.

The problem is independant of "+append". It seems that IM 6.8.2 is simply removing transparency:

Code: Select all

"%IMG682%convert" -size 100x100 xc:none -fill Red -draw "rectangle 20,20 80,80" t.png
"%IMG682%convert" t.png t2.png
t2.png has black where t.png was transparent.
snibgo's IM pages: im.snibgo.com
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Help with using IM convert

Post by snibgo »

I have reported this on the bugs forum: viewtopic.php?f=3&t=22720
snibgo's IM pages: im.snibgo.com
crao
Posts: 2
Joined: 2013-01-31T12:46:38-07:00
Authentication code: 6789

Re: Help with using IM convert

Post by crao »

Thank you, I will follow that issue on the bug forum.
Post Reply