Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Unassigned: Color issue with Pango [1347]

$
0
0
Hi,

First off, thanks for this library, it's been a great help so far.

We've noted that there seems to be a bug with Pango and colors.

```
public static MagickImage TestPangoColors()
{
MagickImage image = new MagickImage(MagickColor.Transparent, 500, 500);
image.FontPointsize = 80;
image.BackgroundColor = MagickColor.Transparent;
image.Font = "Arial";
image.Format = MagickFormat.Png;
String pangoString = "pango:<span fgcolor=\"#545251\">TEST</span>";
image.Read(pangoString);

return image;
}
```
The result is white text instead of gray. There are certain colors which seem to work, e.g. specifying fgcolor="red" works. Same goes for fgcolor="#FF00FF", which gives purple.

Could this be an issue with the pango library bundled with the dll? The same code works well from the imagemagick command line.

```
convert -background white -gravity center -size 300x -font Arial pango:"<span underline='none' weight='400' style='normal' fgcolor='red'>TEST</span>" win:
```
We're using the following versions of ImageMagick.

```
<packages>
<package id="Magick.NET-Q16-AnyCPU" version="7.0.0.0011" targetFramework="net45" />
<package id="Magick.NET-Q16-AnyCPU.Sample" version="7.0.0.0011" targetFramework="net45" />
<package id="Magick.NET-Q8-AnyCPU" version="7.0.0.0011" targetFramework="net45" />
</packages>
```

Please let me know if you need any further information.
Comments: I can also reproduce the issue with the command line. I would also expect this since the command line and Magick.NET use the exact same version of Pango. But I think you are using the ImageMagick 6 version of convert and I am testing with ImageMagick 7 that is being used by Magick.NET. I just committed a patch to the SVN repository of ImageMagick to fix this bug. This will be fixed in the next release of Magick.NET

Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>