-
Notifications
You must be signed in to change notification settings - Fork 33
cannot vectorize image with gradient background #28
Comments
That is so cool! I added the cliprect for something completely different. And you solve a new problem with that. Love it! That is the workaround for that issue. :-) It is definitly being fooled by the coloring of the background. |
I don't know about the type of preprocessing you're doing - would being able to define a threshold for black/white help with this? Or maybe it could determine that from the image itself? The cream and white are quite different from the grey/black.... Just thinking out loud - I don't know at all how to do this, or if it would help. |
(and yes, it is cool :)) |
Try this: python-2.7 with Pillow-5.1.0 or python-3.6 with Pillow-5.2.0
Wow, that looks like Pillow is misbehaving! No wonder poor autotrace has trouble thereafter! |
|
Urghs! So the cutoff is actually the culprit... :/ How weird. Do you mean to add the functionality back in when the linked issue is solved (or check for version numbers?) |
hmm, probably not worth it. cutoff=2 was more a safety idea than a necessity. |
Okay, thanks! |
This leaf gives me a headache. All I can do currently is this:
![grafik](https://user-images.githubusercontent.com/1108546/45031028-00abd900-b04e-11e8-9c2e-b3c453658139.png)
Original image from #15 by @trader4300:
The text was updated successfully, but these errors were encountered: