ink2canvas icon indicating copy to clipboard operation
ink2canvas copied to clipboard

Gradient fill causes crash.

Open ReubenM opened this issue 15 years ago • 5 comments

The readme said gradients should be supported, so I figured I should post error caused by gradient fill.

Traceback (most recent call last): File "canvas.py", line 427, in ink.affect() File "/usr/share/inkscape/extensions/inkex.py", line 207, in affect self.effect() File "canvas.py", line 423, in effect self.drawG(ctx, svg) File "canvas.py", line 410, in drawG getattr(self, method)(ctx, child) File "canvas.py", line 410, in drawG getattr(self, method)(ctx, child) File "canvas.py", line 369, in drawPath self.drawAbstractShape(ctx, node, self.drawPathHelper, [ctx, path]) File "canvas.py", line 230, in drawAbstractShape self.setStyle(ctx, node) File "canvas.py", line 223, in setStyle getattr(ctx, method)(style[key]) File "canvas.py", line 133, in setFill self.write("%s.fillStyle = %s;" % (self.obj, self.fillHelper(value, a))) File "canvas.py", line 122, in fillHelper return self.getGradient(rgb[5:-1]) AttributeError: Canvas instance has no attribute 'getGradient'

ReubenM avatar Nov 03 '10 00:11 ReubenM

Sorry about that. I'll fix it later.

hacktoon avatar Nov 04 '10 17:11 hacktoon

No reason to apologize. :D I think this some great stuff you're doing.

ReubenM avatar Nov 04 '10 20:11 ReubenM

@hacktoon

After working with some SVGs, this error seems to be open. It's more than 8 years since this error was opened - can you give a little update on the current status?

Maybe someone would like to contribute to this error / feature ...

(I would be happy if i could use that functionality ...)

CMiksche avatar Feb 01 '19 18:02 CMiksche

I'm sorry. I'm too busy to work on this project right now.

hacktoon avatar Feb 04 '19 20:02 hacktoon

Seems to be the only open issue in an extraordinarily stable utility. Tried a bunch of different shapes and gradients successfully with win 10 + inkscape 0.92 portable edition. Anybody got steps to reproduce these errors?

camouflagedcontribution avatar Oct 03 '19 14:10 camouflagedcontribution