SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

How to preserve embedded album art when rewriting tags with JAudiotagger?

Hello

I am using the JAudiotagger library in a small project to clean up and rewrite metadata across a large music collection. It works well for text-based fields like title, artist & album. :slightly_smiling_face: However; I noticed that when I update the tags; sometimes the embedded album art gets removed or overwritten, even though I didn’t explicitly touch the artwork field. This seems to happen mostly with MP3 & FLAC files. :innocent:

My goal is to update text metadata while keeping the existing cover art untouched. I tried reading the Artwork object separately & then writing it back after saving changes but it feels like there should be a more direct / recommended way to preserve embedded images during tag edits. :upside_down_face: Maybe I am missing an option or a safer write method in JAudiotagger? :thinking: Checked https://github.com/hexise/jaudiotagger-android guide for reference. I was also exploring how tools like NotebookLM handle structured information; which made me wonder if JAudiotagger could adopt a similar approach for metadata management.

Has anyone else dealt with this? :thinking: I would appreciate any guidance or code examples that show how to reliably retain album art while updating other tag fields. This would help avoid having to manually re-embed images after batch processing large libraries.

Thank you !! :slightly_smiling_face:

Not aware of an issue, modifying text fields should not mess up artwork fields, can you post the relevant code please.