Very long time of parsing of tags (mp3, mp4, ...)

Lukáš Lalinský lalinsky at gmail.com
Sat Mar 5 17:00:54 CET 2011


On Sat, Mar 5, 2011 at 1:00 PM, Vladimir Skuzovatkin <skzvlad at gmail.com> wrote:
> I have another question about the attached image.
> I found that the file size does not decrease after removal of the picture.
> For example,
>     mp3 file without picture have size: 2 078 346 bytes,
>     size of jpg file to attach: 314 225 bytes,
>     size of this mp3 file after attaching the picture: 2 390 164 bytes,
>     and size of this mp3 file after deleting of all attached pictures: 2 390
> 164 bytes.
> Why file size does not decrease after removal of the picture?

TagLib doesn't resize the file just to reduce the size, because it's
an expensive operations that should be ideally avoided. It uses the
remaining space as padding. This is not possible with all audio
formats, it does so where possible.

Lukas


More information about the taglib-devel mailing list