I've recently had several .flac files that were tagged with 16 MB+ covers; which I've attempted to edit with Mp3tag; however Mp3tag won't load the cover for such file (tags are loaded alright).
That would be acceptable however attempting to remove all tags or just edit any tags just results in "Cannot write file" error message. It would be nice if this could at least be fixed, to be able to remove the invalid tag block - though I guess since the metadata area does not shrink when editing with Mp3tag, it may not be possible?
I could view the tags and the cover in other apps, using Icaros as property handler it displayed fine in explorer as well. If this is to be closed as won't fix, I understand but it would be really great if I didn't need to re-encode such files.
Yeah I'm aware of the limitation with the flac file format; but imho not being able to remove such block without re-encoding externally is a bug in Mp3tag to me. I'm not looking to have 20 MB covers in my files, quite the opposite.
Funny that the cover loads with other libraries though.
I would investigate how the invalid falc tag got written in the first place and then see if that step can be revoked at the source or left out in the future.
Here is a thread / post that gives a hint about another program that may help you:
So, upon your inquiry "how", I've checked the source of the tagging app that caused to generate such file and it just ignores the spec and looks like other apps that read it do too. Again, I'm just asking to be able to remove such blocks instead of ending up with an error.
As we know:
But in the PICTURE block of the offending flac file the size of picture data is 0x011231F0 which corresponds to the 17.1 MB cover that follows. I can send you such file for testing but I'd prefer to not share publicly as its copyrighted.
I'd like to know the name of and an URL to this app and if you already reported the issue.
Yes, I know -- I'm just not sure if it's worth the effort from my side. I don't consider this a bug in Mp3tag, but more of an inconvenience that's (to my knowledge) currently only affecting you.
Have you tried removing the erroneous block via metaflac as outlined above?
I've sent you both the file and the url in a PM, hope that's okay.
Yeah, metaflac won't remove the PICTURE block if it's above 24bit size.
I understand; well, yeah, it is rather inconvenient and I was hoping this could get fixed in the future but I get that this is more of an edge case and not a bug that would be affecting most of the users.
Kind of cryptic that you are asking for support here to use mp3tag to help fix this issue, but aren't willing to share with the community what program you were using that ignored the spec. Sharing information is how we can help others that may come across this thread as they search for solutions.
The software used to create this is clearly broken, and the time I'd need to address the symptom is of much less benefit compared to addressing the cause of the issue.
You could try to open an issue at the source.
This way every user of your "tagging app" would benefit from a fix at the source and no more causing out-of-spec modifications.