burghoff / Scientific-Inkscape

Scientific Inkscape: Inkscape extensions for figure resizing and editing
528 stars 20 forks source link

Autoexporter bug: marker transparency #25

Closed kjohnsen closed 5 months ago

kjohnsen commented 5 months ago

Describe the bug Markers don't get exported as transparent along with the line.

To Reproduce Steps to reproduce the behavior:

  1. create a line with an arrow marker
  2. set line to semi-transparent
  3. autoexport
  4. see resulting PDF has semi-transparent line, but not arrow marker

SVG attachments autoexport-arrow-bug

Screenshots From resulting PDF: image

Inkscape version: 1.3.2

Additional context On commit 6763d780c6c634af8becbb1c8405c35d5a5e6638.

I'm trying both setting the whole arrow opacity as well as setting the stroke paint. Doing the latter I see even in the Inkscape interface that the marker doesn't change opacity with the rest of the path. Maybe it's an Inkscape problem

burghoff commented 5 months ago

I'll look into it, thanks.

Did you solve the TextParser / parser issue? I just want to double check since that would break almost everything.

(I'm preparing to move my text submodule into Inkscape, since the extension handler doesn't currently have that functionality. It would help free me of scrambling before each new release.)

burghoff commented 5 months ago

Also, until I fix the issue you can just rasterize the offending path (Autoexporter > Rasterizer). That can temporarily solve most vector export issues (at the cost of making that object non-vector).

kjohnsen commented 5 months ago

I did solve the TextParser issue. I had just failed to copy all the code cp -r into the extensions folder. I did a workaround by converting stroke to path for the moment.

burghoff commented 5 months ago

Should be fixed now. Can you try it out? (I made some other big packaging changes, and I would like to make sure they didn't break anything on systems other than my own.)

kjohnsen commented 5 months ago

It's working!