cancel
Showing results for 
Search instead for 
Did you mean: 

Bitmap metadata not getting deleted from BitmapDatabase.hpp/cpp

I am having an issue adding a bitmap into my project, its ID doesn't seem to get added into the bitmap database, but in debugging this I noticed that there is a bunch of info from a bunch of bitmaps that got deleted from the project long ago.

I go into images, hit +, point the file picker at my .png file, add it in, looks great, put in a screen, looks great. Generate code, compile the code, compiler can't resolve the symbol for the bitmap ID. Grr.

Maybe I just don't understand how these files work, but they do say that I should not edit them since they are generated by imageconverter. I expect that the database is borked, but if I delete it, and generate code, that makes a bigger mess. Apparently there is a trick that I don't know.

Okay, how do I fire up imageconverter so that my bitmap gets an ID and the old stuff gets deleted?

(4.24.1)

12 REPLIES 12

I just copied a 'random file' readme.md into assets/images and I get the same error. Maybe a rule to accept only specific file types is needed.

 

Run Simulator
    Generate
        Done
    Generate Assets
        make -f simulator/gcc/Makefile assets -j8
        Reading ./application.config
        Reading ./target.config
        ERROR: assets/images/README.md not supported by image converter
        generated/simulator/gcc/Makefile:221: recipe for target 'images' failed
        make[1]: *** [images] Error 1
        make[1]: *** Waiting for unfinished jobs....
        simulator/gcc/Makefile:45: recipe for target 'assets' failed
        make: *** [assets] Error 2
        Failed
    Failed

 

 

 

Nice!

It looks like there is a bad assumption about file types here.

(Windows hasn't created my files yet... "I'm still waiting" -  Talking Heads, Crosseyed and Painless)

 

Hello @Andrei Chichak ,

 

TouchGFX only support PNG and SVG as images, so it makes sense if other formats are rejected.

Can you disable the creation of the Thumbs.db file by right clicking on the folder, advanced setting, select always show icon, never thumbnails.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)