Changeset 59849 in spip-zone
- Timestamp:
- Mar 27, 2012, 7:49:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/latexwheel/trunk/latexwheel_fonctions.php
r59796 r59849 1 1 <?php 2 2 3 function latex_copier_img($img,$dossier,$chemin=''){ 4 // Convertir puis copier une image, en retournant le chemin à partir du fichier .tex principal 5 6 /* Récupération de l'ext*/ 7 8 $match = array(); 9 if (preg_match(",\.([^.]+)$,", $img, $match)){ 10 $ext = $match[1]; 11 } 12 13 /* Cas particulier des .gif qui seront converti en .png*/ 14 if ($ext == 'gif'){ 15 include_spip('filtres/images_transforme'); 16 $img = image_format($img); 17 $ext = 'png'; 18 } 19 /*Préparation de l'adresse final*/ 20 if ($chemin ==''){ 21 $final = md5($img).'.'.$ext; 22 } 23 else{ 24 $final = $chemin.'/'.md5($img).'.'.$ext; 25 } 26 zippeur_copier_fichier($img,$dossier.'/'.$final); 27 return $final; 28 29 } 3 30 function lang_polyglossia($lang){ 4 31 // function permettant de convertir une #LANG en nom du package polyglossia
Note: See TracChangeset
for help on using the changeset viewer.