This topic contains 6 replies, has 2 voices, and was last updated by  Duo_Liang 2 months, 2 weeks ago.

  • Author
    Posts
  • Participant
    Ryan_Coleman
    Senior Member
    Member since: 16.07.2018
    Number of posts: 118

    So I am trying to upload an image to the signature capture section, handdrawn value, and I am having an issue with one file. When I upload the file and view it in the Admin section, it shows just a solid black line and not the full image like I expect.

    Are there any certain requirements like image size or whatnot that would be causing this issue?

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 828

    Score

    0

    Hi Ryan,

    Could you share the image to developer@esignlive.com if it doesn’t contains sensitive information? When you convert the image to base64 string (I assume you were using the .Net dll I shared to you in previous thread), there’ll be a threshold value for RGB average determining whether to draw the pixel, which could be a reason in your case.

    Duo


    Duo Liang
    OneSpan Junior Technical Evangelist
    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 828
    Approved answer

    Score

    0

    Hi Ryan,

    According to our discussion in private thread, I think the reason causing the short output is the background color of your uploaded image.
    It seems that in the .Net dll code, it can’t recognize transparent background, and once I opened and re-saved it in Windows Paint Application, the background color becomes white and everything works fine afterwards.

    Duo


    Duo Liang
    OneSpan Junior Technical Evangelist
    Participant
    Ryan_Coleman
    Senior Member
    Member since: 16.07.2018
    Number of posts: 118

    Score

    0

    Duo,

    Thanks for the help on this. Changing the color to a solid white did make a difference.

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 828

    Score

    0

    Hi Ryan,

    Always glad to help!
    I’ve modified the dll code I sent you in previous thread.

    Here, few more steps are added in order to fit the size limitation(898 * 238 && < 65535 characters in length) and avoid transparent background issue. The sample usage is still the same as before:

    using Silanis.ESL.SDK;
    var code = new ImageConverter().convertImage(“your_file_path”, 128);

    Hope this could help!
    Duo


    Duo Liang
    OneSpan Junior Technical Evangelist
    • This reply was modified 2 months, 2 weeks ago by  Duo_Liang.
    • This reply was modified 2 months, 2 weeks ago by  Duo_Liang.
    • This reply was modified 2 months, 2 weeks ago by  Duo_Liang.
    • This reply was modified 2 months, 2 weeks ago by  Duo_Liang.
    Attachments:
    You must be logged in to view attached files.
    Participant
    Ryan_Coleman
    Senior Member
    Member since: 16.07.2018
    Number of posts: 118

    Score

    0

    That is awesome, thank you!

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 828

    Score

    0

    I’ve tested for more than 20 signature and stamps. Please feel free to try the code and feedback to me if the code doesn’t work on specific cases.

    Duo


    Duo Liang
    OneSpan Junior Technical Evangelist

You must be logged in to reply to this topic.