FLAC picture data length

Locked
DazBYorks
User
Posts: 11
Joined: Wed Jul 15, 2009 5:13 pm
Are you a spambot?: no

FLAC picture data length

Post by DazBYorks » Fri Jul 17, 2009 4:25 pm

Hi,

Please could the following be officially added in module.audio.flac.php after;

Code: Select all

        $picture['image_data'] = substr($meta_data_block_data, $offset, $length);
        $offset += $length;

Code: Select all

        $picture['data_length'] = strlen($picture['image_data']);
Daz

James Heinrich
getID3() v1 developer
Posts: 1474
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: FLAC picture data length

Post by James Heinrich » Mon Jul 20, 2009 11:39 am

It's a trivial thing to get it at runtime if you need that value, but hey, why not. Consider it added to the next release.

DazBYorks
User
Posts: 11
Joined: Wed Jul 15, 2009 5:13 pm
Are you a spambot?: no

Re: FLAC picture data length

Post by DazBYorks » Wed Jul 22, 2009 9:14 am

Hi,

Thanks. It is trivial, but the addition makes it consistent(ish) with ID3.

Daz

Locked