PHP Classes

APIC to a real image

Recommend this page to a friend!

      ID3 Tag Reader  >  All threads  >  APIC to a real image  >  (Un) Subscribe thread alerts  
Subject:APIC to a real image
Summary:Writing the APIC data into a image file.
Messages:2
Author:Ronald
Date:2007-06-25 10:14:59
Update:2007-06-29 07:48:39
 

  1. APIC to a real image   Reply   Report abuse  
Picture of Ronald Ronald - 2007-06-25 10:14:59
I'm trying to use the APIC data extracted in the array to write an image. I remove the MIME description in the beginning, ie. image/jpeg, and write the rest of the raw data to a file based on the description, in this case .jpg. Note I use binary safe mode so that the data doesn't corrupt.
But this doesn't seem to work. Is there something else I need to do? Is the data extracted with the class correct?

  2. Re: APIC to a real image   Reply   Report abuse  
Picture of Ronald Ronald - 2007-06-29 07:48:40 - In reply to message 1 from Ronald
It was solved by removing the excess bytes in the beginning of the data. This includes the MIME header and some trash bytes (\32). Remember to do this with a binary safe method!