Is there any size limitation for album art? I have a user who says adding large artwork (from a scanner) is corrupting the file metadata. I don't know if this is a flac limitation, a tag lib issue, or something I'm doing. Thanks, Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/flac-dev/attachments/20170510/8c7e0eaa/attachment.html>
None, apart from the standard metadata block size limitation (2^24 bytes, e.g. 4GB). Pretty big for any kind of album art... Kind regards. Pyt.> Le 10 mai 2017 à 17:11, Scott Brown - scottcbrown at gmail.com <flac-dev.pyt.8c0cc6600b.scottcbrown#gmail.com at ob.0sg.net> a écrit : > > Is there any size limitation for album art? > > I have a user who says adding large artwork (from a scanner) is corrupting the file metadata. I don't know if this is a flac limitation, a tag lib issue, or something I'm doing. > > Thanks, > Scott > _______________________________________________ > flac-dev mailing list > flac-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/flac-dev
Scott Brown <scottcbrown at gmail.com> wrote:> Is there any size limitation for album art?Slightly less than 16 megabytes.> I have a user who says adding large artwork (from a scanner) is > corrupting the file metadata. I don't >know if this is a flac > limitation, a tag lib issue, or something I'm doing.AFAIK older versions of libFLAC didn't check picture filesize, but the current version doesn't allow to embed too big files.
Pierre-Yves Thoulon wrote:> None, apart from the standard metadata block size limitation (2^24 > bytes, e.g. 4GB). Pretty big for any kind of album art...2^24 = 16777216, i.e. only 16 Megabytes.> Kind regards. > > Pyt. > > >> Le 10 mai 2017 à 17:11, Scott Brown - scottcbrown at gmail.com >> <flac-dev.pyt.8c0cc6600b.scottcbrown#gmail.com at ob.0sg.net> a écrit : >> >> Is there any size limitation for album art? >> >> I have a user who says adding large artwork (from a scanner) is >> corrupting the file metadata. I don't know if this is a flac >> limitation, a tag lib issue, or something I'm doing. >> >> Thanks, >> Scott
lvqcl wrote:> Scott Brown <scottcbrown at gmail.com> wrote: > >> Is there any size limitation for album art? > > Slightly less than 16 megabytes.Not directly related to FLAC, but tangentially related, since FLAC is sometimes converted to Opus with tags imported, but as documented at the bottom of the page here: <https://tools.ietf.org/html/rfc7845#page-24>, Opus allows implementations to ignore any metadata (which includes BASE64-encoded album art) after one Ogg page's worth. That gives a practical limitation of a bit over 47 kB for all album art (before BASE64 encoding), if you would like it to work everywhere. This was done to avoid the need for an unbounded buffer in embedded applications, such as Rockbox. Or, more accurately, the Rockbox implementation was already ignoring tags beyond that point, and the RFC just documented that behavior. I would not be surprised to find that embedded FLAC implementations have similar limits that are much smaller than 16 MB, but I don't know if those are spelled out anywhere.