no way to change fill/stroke opacity with gradient / pattern

Bug #169019 reported by Funinvegas
4
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

If you draw a line (I used the caligraphic brush)
And then set a flat stroke flat color, and an alpha of half or so.
Then switch the stroke paint to be a gradiant, the alpha setting from the
flat color gets applied to the gradiant and there is now way to adjust it
or remove it without switching back to flat color and changing (which can
make you lose your gradient settings).

Either the stroke opacity should be adjustable from the gradiant tab, or
the opacity should not apply and it should just use the gradiant from the
gradiant definition.

Revision history for this message
Mercury (mercury13) wrote :

1. "the flat color gets applied to the gradiant". Cannot reproduce, 0.45.1-1 WinXP.

2. In gradient editor you can adjust alpha for both ends.

Revision history for this message
prkos (prkos) wrote : Stroke gradient/pattern opacity capped according to flat color opacity

I recreated it on WinXP, dev build 16th Dec

If you reduce alpha on flat colour of a stroke, then choose a gradient (linear or radial), the gradient will set the current alpha of the flat color as the highest value for the gradient alpha, so even if you go edit the gradient, and it shows bright red on one stop (255 alpha for example) in the gradient editor, still on drawing it looks very faint (exactly how faint depends on the alpha of the flat color from the beginning).

I checked it on square, elipse and caligraphy stroke.

The same procedure on a fill works ok, only the stroke is affected.

Changed in inkscape:
status: New → Confirmed
tags: removed: alpha opacity
Revision history for this message
su_v (suv-lp) wrote :

Testing with Inkscape 0.47, 0.48.3.1 and Inkscape 0.48+devel r11572 on OS X 10.7.4:

a) Pattern:
Reproduced when switching from a flat stroke color with reduced alpha to a pattern.
Not reproduced when switching from a flat fill color with reduced alpha to a pattern (existing 'fill-opacity' is dumped, the value is reset to '1').

b) Gradients:
Reproduced when assigning a gradient via gradient tool on--canvas (affects both fill and stroke equally).
Reproduced when switching a flat stroke color with reduced alpha to a gradient via 'Fill & Stroke' dialog.
Not reproduced when switching a flat fill color with reduced alpha to a gradient via 'Fill & Stroke' dialog (existing 'fill-opacity' is dumped, the value is reset to '1').

Note:
AFAIU the 'fill-opacity' and/or 'stroke-opacity' properties may be present in the style attribute or not (represented in Inkscape by the 'Alpha' sliders in the color chooser for flat fill/stroke colors), and can not be edited from within the GUI as long as the object uses a paint server like gradient or pattern for fill and/or stroke. The issue could also occur when editing SVG files created outside of Inkscape.

Gradients:
The opacity slider of the 'fill&stroke' dialog adjusts the 'stop-opacity' value of selected gradient stops. The 'Alpha' slider (for fill-opacity and stroke-opacity) is either
- disconnected from the corresponding value in the 'style' attribute (current stable)
- or linked to the global opacity slider (latest trunk r11572)

An alternative solution for bug #1028425 (changes committed in r11572) might have been to keep and fix the separation of 'fill-/stroke-opacity' (via 'Alpha' slider) and 'stop-opacity' (via 'Opacity' slider) in the Fill&Stroke dialog, instead of linking 'Alpha' to the global 'Opacity' slider for the special case of editing the style properties of selected gradient stops. OTOH, there is no correspondent solution for pattern fills.

Changed in inkscape:
status: Confirmed → Fix Released
su_v (suv-lp)
Changed in inkscape:
status: Fix Released → Confirmed
Revision history for this message
jazzynico (jazzynico) wrote :

Related (or duplicate): Bug #1658288 "100% Opacity in inkscape is not fill-opacity="1" in file".

mray (mrayyyy)
tags: added: bug-migration
Revision history for this message
mray (mrayyyy) wrote :

Hi - thanks for reporting this bug, I've manually migrated it to Inkscape's new bug tracker on GitLab, and closed it here.

Please feel free to file new bugs about the issues you're seeing at http://inkscape.org/report.

Moved to: https://gitlab.com/inkscape/inbox/issues/345
Closed by: https://gitlab.com/mray

Changed in inkscape:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.