id3 tag remove attached_picture

Post Reply
nrider
User
Posts: 4
Joined: Fri Mar 14, 2014 7:36 pm
Are you a spambot?: no

id3 tag remove attached_picture

Post by nrider » Tue Jul 15, 2014 7:59 pm

Hi,

I am using a component for a website which also uses getid3 and more specifically the file write.id3v2.php. When uploading mp3 files which have album cover art they have trouble playing through the streaming service I am using. So on upload of these files and I am guessing with the use of the file write.id3v2.php I would like to have the attached_picture removed from the tag.

Does anyone know what code I would write or alter in the existing write file or other files to achieve this?

Many thanks.

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

Re: id3 tag remove attached_picture

Post by James Heinrich » Tue Jul 15, 2014 8:19 pm

Take a look at demo.simple.write.php (included in the demos directory of the getID3 distribution).
Make sure that $tagwriter->overwrite_tags = true and only pass the fields you want in the file, all other fields will be removed.

nrider
User
Posts: 4
Joined: Fri Mar 14, 2014 7:36 pm
Are you a spambot?: no

Re: id3 tag remove attached_picture

Post by nrider » Wed Jul 16, 2014 12:21 am

Thank you will check out the overwrite_tags then.

Post Reply