Giter VIP home page Giter VIP logo

Comments (7)

nilsbehlen avatar nilsbehlen commented on June 12, 2024

Is it really a bitmap or did you just change .png to .bmp?
You can also set debug log to 1, check for these lines

[17-08-2023 09:21:44] [CCredential.cpp:333] CCredential::GetBitmapValue
[17-08-2023 09:21:44] [CCredential.cpp:346] (long) -1
[17-08-2023 09:21:44] [CCredential.cpp:380] (long) 0

and post them here.

from privacyidea-credential-provider.

KommunistGangsta avatar KommunistGangsta commented on June 12, 2024

I created a new 128x128 BMP image on paint.NET, and pasted a PNG logo on it.

Unless paint.NET saves the BMP in an incompatible version...

Here are the log lines you asked for

[01-09-2023 11:13:22] [CCredential.cpp:333] CCredential::GetBitmapValue
[01-09-2023 11:13:22] [CCredential.cpp:346] (long) 32
[01-09-2023 11:13:22] [CCredential.cpp:355] (long) 0
[01-09-2023 11:13:22] [CCredential.cpp:380] (long) 0

from privacyidea-credential-provider.

nilsbehlen avatar nilsbehlen commented on June 12, 2024

hm there is no error but the image is not loaded. LoadImageA is very picky unfortunately, so you could try creating that image with Paint, that has always worked for me.

from privacyidea-credential-provider.

KommunistGangsta avatar KommunistGangsta commented on June 12, 2024

hmm, in that case i'll try creating one with Paint and see if that works

Cheers

from privacyidea-credential-provider.

KommunistGangsta avatar KommunistGangsta commented on June 12, 2024

Which BMP do you usually save in Paint?

16 color, 256 color or 24-bit?

from privacyidea-credential-provider.

nilsbehlen avatar nilsbehlen commented on June 12, 2024

16 iirc, unfortunately you cannot use high quality/transparency....

from privacyidea-credential-provider.

KommunistGangsta avatar KommunistGangsta commented on June 12, 2024

Thanks brother! It worked :)
Created with Paint in 16 color (4 bit-depth), and now the logo shows up!

With Paint.NET the BMP was being saved in 32 bit-depth, and apparently is not supported.

Thanks for the help!

from privacyidea-credential-provider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.