Added back in raster optimising, it's not perfect but it's mostly there. Only a little slow parsing white vertical space now.
Added back in raster optimising, it's not perfect but it's mostly there. Only a little slow parsing white vertical space now.
Found that raster optimisation code seems to be changing the pixel data at the end of the line somewhere. I'm not sure how since it's meant to just be cutting part of the data line out not changing it. will need to investigate further.
Found that raster optimisation code seems to be changing the pixel data at the end of the line somewhere. I'm not sure how since it's meant to just be cutting part of the data line out not changing it. will need to investigate further.
Added option to the menu for users to disable raster optimisations.
Added option to the menu for users to disable raster optimisations.
"""
Changelog 2015-04-20
Trying to fix a bug with exporting rasters on Mac
"""
###
###
### Gcode tools
### Gcode tools
...
@@ -90,7 +93,7 @@ import time
...
@@ -90,7 +93,7 @@ import time
#Image processing for rastering
#Image processing for rastering
importbase64
importbase64
fromPILimportImage
fromPILimportImage
importImageOps
fromPILimportImageOps
importsubprocess
importsubprocess
importsimplestyle
importsimplestyle
...
@@ -998,7 +1001,7 @@ class Gcode_tools(inkex.Effect):
...
@@ -998,7 +1001,7 @@ class Gcode_tools(inkex.Effect):
ifnothasattr(parent,'glob_nodePositions'):
ifnothasattr(parent,'glob_nodePositions'):
#Get the XY position of all elements in the inkscape job.
#Get the XY position of all elements in the inkscape job.