Creating my static const uint8_t PROGMEM image for Arduino

Hello everyone,

Using a Arduino Mega and a 32x32 LED display I can run the Adafruit library.
My attention then focused on one exemple from the library. “colorweel_progmem_32x32”

it is composed of 2 parts the main code :

#include <RGBmatrixPanel.h>
#include "image.h" // Precomputed colorwheel image is here

#define CLK  8   // USE THIS ON ADAFRUIT METRO M0, etc.
//#define CLK A4 // USE THIS ON METRO M4 (not M0)
//#define CLK 11 // USE THIS ON ARDUINO MEGA
#define OE   9
#define LAT 10
#define A   A0
#define B   A1
#define C   A2
#define D   A3

RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false);

void setup() {
  int     i, len;
  uint8_t *ptr = matrix.backBuffer(); // Get address of matrix data

  // Copy image from PROGMEM to matrix buffer:
  memcpy_P(ptr, img, sizeof(img));

  // Start up matrix AFTER data is copied.  The RGBmatrixPanel
  // interrupt code ties up about 40% of the CPU time, so starting
  // it now allows the prior drawing code to run even faster!
  matrix.begin();
}

void loop() {
  // Do nothing -- image doesn't change
}

And then the image.h that the code is referring to :

#include <avr/pgmspace.h>

static const uint8_t PROGMEM img[] = {
    0xC2, 0xC2, 0xC2, 0xC2, 0xC2, 0xC2, 0xC2, 0xE2, 0xE2, 0xC2, 0xC2, 0xE2,
    0xC2, 0xE2, 0xE2, 0xCE, 0xAF, 0x65, 0xE4, 0x26, 0xE2, 0xA1, 0x20, 0xE3,
    0xE0, 0xA1, 0x23, 0x23, 0x20, 0x20, 0x20, 0x20, 0xC0, 0xC0, 0xC0, 0xC0,
    0xC2, 0xC2, 0xC2, 0xC0, 0xC2, 0xE0, 0xE2, 0xE0, 0xC8, 0xC0, 0xCA, 0xEA,
    0xEA, 0xAA, 0x22, 0x2A, 0xE2, 0xE2, 0xE2, 0x22, 0x22, 0x22, 0x22, 0x22,
    0x22, 0x22, 0x22, 0x22, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0,
    0xC0, 0xC0, 0xC0, 0xC2, 0xE0, 0xEB, 0xE9, 0xEA, 0xEB, 0xE9, 0xEB, 0xE0,
    0x23, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x40, 0x82, 0x82, 0x82, 0x82, 0x82, 0x82, 0xA2, 0xA2, 0x82, 0x8A, 0xAA,
    0xAA, 0x8A, 0xEF, 0xCF, 0xEB, 0xE8, 0x2D, 0xED, 0x68, 0xAF, 0x26, 0x61,
    0xE2, 0xA1, 0xA1, 0x22, 0x22, 0x20, 0x20, 0x00, 0x80, 0xC0, 0xC0, 0xC0,
    0xC0, 0xC2, 0xC2, 0xC0, 0xC2, 0xE8, 0xEA, 0xE8, 0xEA, 0xCA, 0x88, 0xA8,
    0xAC, 0xAE, 0xAE, 0x6E, 0x6A, 0xEA, 0xEA, 0xA2, 0x22, 0x22, 0x22, 0x22,
    0x22, 0x22, 0x22, 0x20, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0,
    0xC0, 0xC0, 0xCA, 0xCA, 0xCB, 0xEB, 0xEA, 0xEB, 0xEA, 0xEB, 0xEA, 0xAB,
    0xAE, 0x2E, 0x21, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    0x42, 0xC2, 0xC2, 0xC2, 0xC2, 0xC2, 0xC2, 0xEA, 0xEA, 0xEA, 0xCA, 0xCA,
    0xEA, 0x8F, 0x8F, 0xEE, 0xCA, 0xAB, 0x2E, 0xEB, 0x2B, 0x2C, 0xE9, 0x6F,
    0x6C, 0xA3, 0xA1, 0x22, 0x22, 0x22, 0x20, 0x00, 0x40, 0x80, 0x80, 0x80,
    0x80, 0x82, 0x82, 0x80, 0x8A, 0x8A, 0xA8, 0xAA, 0xAA, 0x88, 0x8A, 0x8A,
    0xAE, 0xAE, 0xAE, 0x6A, 0x6A, 0x6A, 0xAE, 0xAE, 0xA2, 0x22, 0x22, 0x22,
    0x22, 0x22, 0x22, 0x02, 0x80, 0xC0, 0x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BF, 0xB5, 0x2D, 0xA5,
    0x26, 0xAE, 0xA4, 0x26, 0x2C, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x09, 0x89,
    0x89, 0x89, 0x89, 0x89, 0x8B, 0x8A, 0x8A, 0x88, 0x88, 0x8F, 0xAF, 0xAD,
    0xAB, 0x8B, 0x8F, 0xAC, 0xAC, 0xAE, 0xA7, 0x27, 0x27, 0xAE, 0xAE, 0xAE,
    0xA6, 0x06, 0x00, 0x00, 0x00, 0x00, 0x0A, 0x8A, 0x8A, 0x8A, 0x8A, 0x8B,
    0x8B, 0x8B, 0x8A, 0x8A, 0x8B, 0x8A, 0x8B, 0x8B, 0x8E, 0xAE, 0xAE, 0xAF,
    0xAF, 0xAF, 0xAF, 0xAF, 0xAD, 0x27, 0x27, 0x25, 0x27, 0x05, 0x00, 0x00,
    0x00, 0x00, 0x08, 0x0B, 0x8B, 0x8B, 0x8B, 0x8B, 0x8B, 0x9F, 0x9F, 0x9F,
    0xBF, 0xBB, 0x8F, 0x8B, 0xAB, 0x8F, 0xBB, 0xBF, 0x9F, 0xB7, 0x3F, 0xA6,
    0xAC, 0x2C, 0xA6, 0xA4, 0x8E, 0x0C, 0x00, 0x00, 0x00, 0x09, 0x18, 0x18,
    0x98, 0x98, 0x98, 0x98, 0x98, 0x8B, 0x8B, 0x8B, 0x89, 0x8F, 0xBC, 0xBA,
    0xBA, 0x98, 0x8D, 0x8F, 0xAF, 0xAE, 0xA6, 0x27, 0x2F, 0x2F, 0xAE, 0xAE,
    0x06, 0x04, 0x04, 0x00, 0x00, 0x00, 0x0A, 0x8A, 0x8A, 0x8A, 0x8B, 0x8B,
    0x8B, 0x8A, 0x8A, 0x8B, 0x8B, 0x8A, 0x8A, 0x8E, 0x8F, 0xAF, 0xAF, 0xAF,
    0xAD, 0xAD, 0xAD, 0xAF, 0xA7, 0xA5, 0x27, 0x25, 0x27, 0x05, 0x00, 0x00,
    0x00, 0x08, 0x08, 0x08, 0x09, 0x8B, 0x8B,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 0xA5, 0xA5, 0x27, 0x07, 0x05, 0x07, 0x07, 0x01,
    0x10, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0A, 0x8E, 0x8E, 0x8E, 0x8A, 0x8A,
    0x8E, 0xBE, 0xBA, 0x8E, 0x8A, 0xBE, 0xBE, 0x96, 0xAE, 0x86, 0xBE, 0xBE,
    0x36, 0x84, 0x0C, 0x0C, 0x04, 0x04, 0x04, 0x00, 0x08, 0x08, 0x08, 0x08,
    0x08, 0x08, 0x08, 0x88, 0x88, 0x88, 0x8C, 0x8E, 0x8E, 0x9D, 0x9B, 0xA8,
    0xAE, 0xBD, 0xBF, 0x9E, 0x95, 0xB4, 0xAD, 0xAE, 0xAE, 0x8F, 0x05, 0x04,
    0x04, 0x04, 0x04, 0x04, 0x00, 0x1A, 0x1A, 0x1A, 0x1A, 0x1B, 0x9B, 0x9A,
    0x9A, 0x9B, 0x9A, 0x9B, 0x9A, 0x8B, 0x8E, 0x9E, 0x9E, 0x8E, 0x8D, 0xAD,
    0xAD, 0xAF, 0xA7, 0xA5, 0xA7, 0x25, 0x07, 0x05, 0x07, 0x07, 0x05, 0x00,
    0x10, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x9E, 0x9E, 0x9E, 0x9A, 0x9A,
    0x9E, 0xAA, 0xAA, 0xBE, 0x9A, 0x8E, 0xA6, 0x9E, 0x86, 0xA6, 0x9E, 0xB6,
    0xB6, 0x0C, 0x0C, 0x04, 0x04, 0x04, 0x04, 0x00, 0x10, 0x08, 0x08, 0x08,
    0x08, 0x08, 0x08, 0x08, 0x88, 0x88, 0x8C, 0x8E, 0x8E, 0x89, 0x89, 0x8A,
    0xAC, 0xAF, 0xAC, 0x95, 0x97, 0x96, 0xAF, 0xAF, 0x0E, 0x05, 0x05, 0x04,
    0x04, 0x04, 0x04, 0x00, 0x0A, 0x1A, 0x1A, 0x1A, 0x1A, 0x1B, 0x1B, 0x1A,
    0x9B, 0x9B, 0x9A, 0x9B, 0x9B, 0x9E, 0x9F, 0x9F, 0x9F, 0x9F, 0x9F, 0xAF,
    0xAF, 0xAD, 0xA5, 0xA7, 0x05, 0x07, 0x05, 0x07, 0x07, 0x07, 0x05, 0x05,
    0x10, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0C, 0x0C, 0x08, 0x8A, 0x8E,
    0x8E, 0x8A, 0xBE, 0xBA, 0x9E, 0x9E, 0xA6, 0xBE, 0x96, 0xAE, 0x24, 0x14,
    0x1C, 0x0C, 0x0C, 0x04, 0x04, 0x04, 0x04, 0x00, 0x08, 0x18, 0x18, 0x18,
    0x18, 0x18, 0x18, 0x18, 0x18, 0x9C, 0x9C, 0x9C, 0x9E, 0x9A, 0x89, 0x8F,
    0xAD, 0xAE, 0xAD, 0xB7, 0x94, 0x9D, 0x9E, 0x0D, 0x04, 0x05, 0x05, 0x04,
    0x04, 0x04, 0x04, 0x04, 0x18, 0x1A, 0x1A, 0x1A, 0x1A, 0x1B, 0x1B, 0x1A,
    0x1B, 0x1A, 0x9B, 0x9A, 0x9B, 0x9F, 0x9E, 0x9E, 0x9E, 0x9D, 0x9D, 0x8D,
    0xAD, 0xA7, 0x07, 0x05, 0x07, 0x05, 0x05, 0x07, 0x07, 0x05, 0x05, 0x04,
    0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x1C, 0x1C, 0x18, 0x18, 0x1E,
    0x18, 0x1E, 0x1C, 0xBA, 0xAE, 0x34, 0x3E, 0x24, 0x1E, 0x0C, 0x04, 0x1C,
    0x1C, 0x0C, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x18, 0x18, 0x18, 0x18,
    0x18, 0x18, 0x18, 0x18, 0x18, 0x1C, 0x1C, 0x1C, 0x98, 0x1A, 0x9A, 0x9C,
    0x9F, 0x8F, 0x06, 0x84, 0x1E, 0x1D, 0x1C, 0x05, 0x04, 0x05, 0x05, 0x05,
    0x04, 0x04, 0x04, 0x04, 0x1A, 0x1A, 0x1A, 0x1A, 0x1B, 0x1B, 0x1B, 0x1A,
    0x1B, 0x1A, 0x1B, 0x1A, 0x1E, 0x9E, 0x9F, 0x9F, 0x9F, 0x9D, 0x9D, 0x1F,
    0x07, 0x05, 0x05, 0x07, 0x05, 0x05, 0x07, 0x07, 0x05, 0x05, 0x05, 0x05};

I played a little with the code to modify the original image but now I wonder how to import my own image into it.
I Think I am looking for a JPG to progmem convertor but I’m really not sure and I tried already different convertor but It never really worked.

Do some of you would have advice for that ?

Thank You,

Lucien.