EasyBadge image format

Modified on Tue, 31 Mar 2020 at 10:28 AM

In EasyBadge the images, when stored in a database, are JPEG files with a 30-byte header. The format of the header is:


private struct DigitalIdImageHeader


    public int Magic;  // 0x05082011

    public int Length; // size of header plus image data

    public short Width; // in pixels

    public short Height;

    public short Shades;

    public short ImageType;

    public short CompressionType; // must be 4

    public int Crc;

    public int Info2;

    public int Info3;



The image data, directly taken from a JPEG file follows the header.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article