saade / filament-autograph

A Filament package to collect signatures.
https://filamentphp.com/plugins/saade-autograph
MIT License
45 stars 9 forks source link

[Bug]: After saving download is not working #1

Closed casbizz closed 11 months ago

casbizz commented 1 year ago

What happened?

When i draw something and save as file directly, everything works ok, but when you save it in the database and open the record again, it shows correctly, but when you save it as file there is no line anymore. In my case i used it for a signature, but the signature is not visible anymore

How to reproduce the bug

Screenshot 2023-08-24 101846

Package Version

3.0.0

PHP Version

8.2.8

Laravel Version

10.19.0

Which operating systems does with happen with?

Windows

Notes

No response

saade commented 1 year ago

thanks for reporting that, I will take a look at this over the weekend

casbizz commented 1 year ago

thanks for reporting that, I will take a look at this over the weekend

I forget to tell you: "Very nice stuff you are making and sharing"

noahlocke commented 12 months ago

@casbizz how are you able to "save" the signature to your database? I just entered #3 as I'm unable to do so...

casbizz commented 11 months ago

Here some screenshots: It saves in the database. The field is of type text in the database.

And in the filament resource i used the follwing:

SignaturePad::make('signature') ->label(__('Sign here')) Screenshot 2023-10-04 133619

        ->dotSize(2.0)
        ->lineMinWidth(0.5)
        ->lineMaxWidth(2.5)
        ->throttle(16)
        ->minDistance(5)
        ->velocityFilterWeight(0.7)
        ->exportPenColor('#000-')
        ->exportBackgroundColor('#fff')
        ->undoable(false)
        ->clearable(false)
        ->downloadable(),

[cid:a555a0ce-7835-4e56-9d1b-e04c92de7b1d]

Met vriendelijk groet, Caspar Bisschop CasBizz Holding B.V. @.**@.> 0654953817


From: Noah Locke @.> Sent: Sunday, October 1, 2023 11:50 PM To: saade/filament-autograph @.> Cc: Caspar Bisschop @.>; Mention @.> Subject: Re: [saade/filament-autograph] [Bug]: After saving download is not working (Issue #1)

@casbizzhttps://github.com/casbizz how are you able to "save" the signature to you database? I just entered #3https://github.com/saade/filament-autograph/issues/3 as I'm unable to do so...

— Reply to this email directly, view it on GitHubhttps://github.com/saade/filament-autograph/issues/1#issuecomment-1742213062, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJRKZCLM47COV5Y6R5ASNT3X5HQUHANCNFSM6AAAAAA34UP2SE. You are receiving this because you were mentioned.Message ID: @.***>

abhi051002 commented 7 months ago

@casbizz hello please help me on this topic i was unable to store the signature to data please share me the code how to do it??