Changeset 51854 in spip-zone


Ignore:
Timestamp:
Sep 26, 2011, 2:36:14 PM (8 years ago)
Author:
kent1@…
Message:

Modification de la récupération de Covers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/getID3/inc/recuperer_id3.php

    r41247 r51854  
    3131        $file_info = $getID3->analyze($fichier);
    3232        getid3_lib::CopyTagsToComments($file_info);
    33 
    3433        if(sizeof($file_info)>0){
    3534                // Cover art?
     
    3736                        foreach($file_info['id3v2']['APIC'] as $cle=>$val){
    3837                                if (isset($file_info['id3v2']['APIC'][$cle]['data']) && isset($file_info['id3v2']['APIC'][$cle]['image_mime']) && isset($file_info['id3v2']['APIC'][$cle]['dataoffset'])) {
    39                             $imagechunkcheck = getid3_lib::GetDataImageSize($file_info['id3v2']['APIC'][$cle]['data']);
     38                                        $imageinfo = array();
     39                            $imagechunkcheck = getid3_lib::GetDataImageSize($file_info['id3v2']['APIC'][$cle]['data'],$imageinfo);
    4040                            $extension = getid3_lib::ImageTypesLookup($imagechunkcheck[2]);
    4141                            if($extension == 'jpeg')
Note: See TracChangeset for help on using the changeset viewer.