That's question mainly to Kode54. Would it be possible to add option to foo_id3v2 to set custom padding size. I've noticed that almost all my mp3 use only about 20% of padding space. It's a waste of free space especially when you have flash player. Every bit of memory is crucial.
foo_id3v2 v1.13 has been uploaded.
id3lib's padding code was supposed to pad the file size up to an even multiple of 2KB, not the tag size, but since I render the tag to memory and don't actually link the ID3_Tag class to the file, the padding function had no way of knowing the file size. So, I had to add an extra function to the class to set the file size, and I had to fix the ID3_Tag::Size() function to not pass the header size to ID3_Tag::PaddingSize, since it already takes it into account. Otherwise, the estimate comes up ~10 bytes short of the actual tag size. God, what a spoony library.
Of course, if you find this still produces too much padding, you can now disable padding altogether.
The new "write tags without padding" option works great! Thanks Kode54! You saved my life again