ngmsoftware / will2svg

Python program that reads Wacom WILL file and converts it to SVG.
9 stars 5 forks source link

not working for Bamboo Slate a4 #1

Open kaushik-mrg opened 4 years ago

kaushik-mrg commented 4 years ago

Dear Sir, Thankyou for your code. I am sorry its not working for me as i am using Bamboo Slate a4 (here in section/media, we have Strokes not path) can you suggest how we can proceed

martinsallandm commented 4 years ago

Hello,

It must be something on the format of the data generated by the slate. The unpack for the protobuf is standard, I don't think its protobuff error. Unfortunately this involves analysing the format with a hex editor to check manually what is the data. Try to follow the steps I did here:

https://www.allan666.net/reading-vector-graphics/

I hope it helps!

[]'s

On Tue, Jun 2, 2020 at 11:37 AM v217 notifications@github.com wrote:

I have the slate A4 as well. I changed line 326 of will_reader.py to ` return input_zip.read('sections/media/strokes2539138681126609676.protobuf')

and now I get this error Traceback (most recent call last): File "./will_reader_modifiziert.py", line 341, in (xData, yData, lineData) = processBuffer(buffer) File "./will_reader_modifiziert.py", line 300, in processBuffer (x, y, lineWidth) = decodeMessagePacket(messageBytes) File "./will_reader_modifiziert.py", line 260, in decodeMessagePacket debugPrint(struct.unpack('BBBB',messageBytes[nextPos:])) struct.error: unpack requires a buffer of 4 bytes

`

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ngmsoftware/will2svg/issues/1#issuecomment-637584549, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEY4UL5AOKOBKCYBCXHJR3RUUFBFANCNFSM4LYOAHVQ .

v217 commented 4 years ago

@allanninguem Hi Allan, now I have read your blog post. Not sure if my pull request is still useful. Anyway Thank you for this great software!

martinsallandm commented 4 years ago

Thanks you! I merged your request. Thank you for the contribution!

v217 commented 4 years ago

Great! Thank you, I've made some more changes, but those are not yet ready for a pull request. I've noticed that you can upload several pages in one will-file.

martinsallandm commented 4 years ago

Ha cool!

Pages is something interesting to have %-)

[]'s

On Wed, Jun 3, 2020 at 4:11 AM v217 notifications@github.com wrote:

Great! Thank you, I've made some more changes, but those are not yet ready for a pull request. I've noticed that you can upload several pages in one will-file.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ngmsoftware/will2svg/issues/1#issuecomment-638003677, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEY4UOFFGYIPCQCYNM3Z2LRUXZQJANCNFSM4LYOAHVQ .

v217 commented 4 years ago

The will_reader_slate_A4_cairo.py saves the file with cairosvg. svgtoipe does not support all svg features, so this is a temporary workaround. Since cairo supports natively vector-drawings I don't think it mangles too much with the original svg file.

martinsallandm commented 4 years ago

Cool... But remember that the point is just to have the stroke path and strength, so those are the only two features that matters.

thanks!

[]'s

On Wed, Jun 3, 2020 at 11:41 AM v217 notifications@github.com wrote:

The will_reader_slate_A4_cairo.py saves the file with cairosvg. svgtoipe https://github.com/otfried/ipe-tools does not support all svg features, so this is a temporary workaround. Since cairo supports natively vector-drawings I don't think it mangles too much with the original svg file.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ngmsoftware/will2svg/issues/1#issuecomment-638243431, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEY4UNCBUX2LGUPK64MRC3RUZOKTANCNFSM4LYOAHVQ .

martinsallandm commented 4 years ago

By the way, where are you using this tool? (just out of curiosity %-)

[]'s

On Wed, Jun 3, 2020 at 2:25 PM allan de medeiros martins allan666@gmail.com wrote:

Cool... But remember that the point is just to have the stroke path and strength, so those are the only two features that matters.

thanks!

[]'s

On Wed, Jun 3, 2020 at 11:41 AM v217 notifications@github.com wrote:

The will_reader_slate_A4_cairo.py saves the file with cairosvg. svgtoipe https://github.com/otfried/ipe-tools does not support all svg features, so this is a temporary workaround. Since cairo supports natively vector-drawings I don't think it mangles too much with the original svg file.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ngmsoftware/will2svg/issues/1#issuecomment-638243431, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEY4UNCBUX2LGUPK64MRC3RUZOKTANCNFSM4LYOAHVQ .