List Info

Thread: convert -fill/-opaque semantics change? (6.0.7.1 -> 6.2.8.0)




convert -fill/-opaque semantics change? (6.0.7.1 -> 6.2.8.0)
country flaguser name
Netherlands
2007-03-08 11:05:08
Hi,

In ImageMagick 6.0.7.1 (as included in RHEL4) I could do:

   convert -fill #ff00007f -opaque #00ff00 input output

to convert (in this example) the color green by a half
transparent
red color.  In ImageMagick 6.2.8.0 (as included in RHEL5)
this just
doesn't work anymore.  It *does* replace the color, but it
ignores
the transparency value.  Is this a syntax and/or semantical
change
(if yes, what is the new command to get the old behaviour?),
or a
bug (I don't hope so...).

Thanks,

--
--    Jos Vos <josxos.nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20
6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20
6948204
_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users

Re: convert -fill/-opaque semantics change? (6.0.7.1 -> 6.2.8.0)
user name
2007-03-08 20:41:21
Jos Vos on  wrote...
| Hi,
| 
| In ImageMagick 6.0.7.1 (as included in RHEL4) I could do:
| 
|    convert -fill #ff00007f -opaque #00ff00 input output
| 
| to convert (in this example) the color green by a half
transparent
| red color.  In ImageMagick 6.2.8.0 (as included in RHEL5)
this just
| doesn't work anymore.  It *does* replace the color, but it
ignores
| the transparency value.  Is this a syntax and/or
semantical change
| (if yes, what is the new command to get the old
behaviour?), or a
| bug (I don't hope so...).
| 
I believe the bug is you did not read the image in BEFORE
you tried to
change it...

Try...
   convert input   -fill #ff00007f -opaque #00ff00  
output

See IM Examples, Basics for details of why this was changed
   http://www.i
magemagick.org/Usage/basics/
It was actually the reason IM went from v5 to v6 in the
first place!


  Anthony Thyssen ( System Programmer )    <A.Thyssengriffith.edu.au>
 -----------------------------------------------------------
------------------
   "He may look like an idiot and talk like an idiot,
         but don't let that fool you.  He is an idiot."
  -- Groucho Marx
 -----------------------------------------------------------
------------------
     Anthony's Home is his Castle     http://www.cit.gu.
edu.au/~anthony/
_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users

Re: convert -fill/-opaque semantics change? (6.0.7.1 -> 6.2.8.0)
country flaguser name
Netherlands
2007-03-09 04:00:45
On Fri, Mar 09, 2007 at 12:41:21PM +1000, Anthony Thyssen
wrote:

> Try...
>    convert input   -fill #ff00007f -opaque #00ff00  
output
> 
> See IM Examples, Basics for details of why this was
changed
>    http://www.i
magemagick.org/Usage/basics/
> It was actually the reason IM went from v5 to v6 in the
first place!

This doesn't work either...  Note that my first example did
work fine
in 6.0.7.1, but not in 6.2.8.0 anymore (didn't try other
versions).

In the meantime I found some articles (not directly related
to my
problem) with Google and this seems to work:

  convert -channel RGBA -matte -fill #ff00007f -opaque
#00ff00 input output

An explanation from IM experts is still welcome...

-- 
--    Jos Vos <josxos.nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20
6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20
6948204
_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )