FLTK logo

[fltk/fltk] FLTK (nanosvg) does not rasterize some SVG images correctly. (Issue #1599)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
[  All Forums  |  Back to fltk.issues  ]
 
[ Previous Message ] [ New Message | Reply ] [ Next Message ]

[fltk/fltk] FLTK (nanosvg) does not rasterize some SVG images correctly. (Issue #1599) Gonzalo Garramuño 13:27 Sep 03  
 
ggarra13 created an issue (fltk/fltk#1599)

Description of the Bug Report
It seems nanosvg, which FLTK uses internally, does not rasterize some images correctly. Seems to have a problem with a monochrome .svg.

To Reproduce

svg_show_bug.zip

Steps to reproduce the behavior:

  1. Unzip the above archive.
  2. Do:

fltk-config --compile main.cpp --use-images

The resulting file will have a nice RGBA image in the button.

  1. Change main.cpp for the "broken.svg".
  2. Compile again.
  3. The button will have no svg image. It should display an "A" image.

You can open either image on inkscape and you will see they are both valid .svg.

Expected behavior
Work with both .svg

FLTK Version
Git 1.5 HEAD

FLTK Configure / Build Options
N/A

Operating System / Platform:
Please be as precise as possible, e.g. "Linux: Ubuntu 20.04"

  • OS: Linux Ubuntu 26.04 LTS

Additional context
Add any other context about the problem here.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/1599@github.com>

[ Direct Link to Message ]
 
     
[ Previous Message ] [ New Message | Reply ] [ Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.