glennrp wrote:Looks like the old sRGB versus linear problem is contributing to this.
Ah, so if the text is black the problem doesn't occur (checked with 6.9.1-3 on Cygwin).
So workaround may be:
Code: Select all
convert -background transparent -resize 1024x768 -fill '#000000B8' -font Arial -pointsize 50 label:'Test Stamp' -alpha off -fill '#AAAAAA' -opaque black -alpha on test.png
It looks similar result is generated but I don't know how antialias exactly works.
(On Cygwin, Arial not found, so I omit -font for this test. Also I'm not sure if this works on 6.9.1-2.)
Alpha: graya(170,0) #AAAAAA00
Colors: 196
Histogram:
133270: (170,170,170, 0) #AAAAAA00 graya(170,0)
10808: (170,170,170,184) #AAAAAAB8 graya(170,0.721569)
4141: (170,170,170,185) #AAAAAAB9 graya(170,0.72549)
2974: (170,170,170,186) #AAAAAABA graya(170,0.729412)
1965: (170,170,170,187) #AAAAAABB graya(170,0.733333)
1565: (170,170,170,183) #AAAAAAB7 graya(170,0.717647)
1537: (170,170,170, 1) #AAAAAA01 graya(170,0.00392157)
But the current 6.9.1-9 release on Windows, it does not work. As Fred said, it seems there stays another problem.
[EDIT]
With 6.9.1-9 on Windows
Code: Select all
convert -background transparent -resize 1024x768 -fill '#000000B8' -font Arial -pointsize 50 label:'Test Stamp' -type 'TrueColorAlpha' -alpha off -fill '#AAAAAA' -opaque black -alpha on test.png
seems to work as well.
Alpha: graya(170,0) #AAAAAA00
Colors: 198
Histogram:
168052: (170,170,170, 0) #AAAAAA00 graya(170,0)
10458: (170,170,170,184) #AAAAAAB8 graya(170,0.721569)
4593: (170,170,170,185) #AAAAAAB9 graya(170,0.72549)
2812: (170,170,170,186) #AAAAAABA graya(170,0.729412)
1752: (170,170,170,187) #AAAAAABB graya(170,0.733333)
1532: (170,170,170,188) #AAAAAABC graya(170,0.737255)
1288: (170,170,170,183) #AAAAAAB7 graya(170,0.717647)