New: Add patch from meos to resize images
This commit is contained in:
parent
ae3cfce7cc
commit
1c2728547b
@ -20,6 +20,7 @@ FPDI 1.2.1 Apache Software License 2.0 No GPL3 only PDF temp
|
||||
FPDI_Protection 1.0.2 Apache Software License 2.0 No GPL3 only PDF encryption (8 files)
|
||||
GeoIP x.x Yes GeoIP Maxmind conversion
|
||||
iWebkit 4.6.2 LGPL 3.0 Yes Iphone templates framework
|
||||
JCrop 0.9.8 MIT Licence Yes JS library to crop images
|
||||
MagPieRss 0.72 GPL 2.0 Yes Load RSS
|
||||
NuSoap 0.7.3 LGPL 2.1 Yes Interfaces with third tools
|
||||
OdtPHP 1.0.1 GPL 2.0 Yes Mibrary to build/edit ODT files
|
||||
@ -44,6 +45,7 @@ Copyright (C) 2010
|
||||
- Regis Houssin <regis@dolibarr.fr>
|
||||
- simnandez
|
||||
- r2gnl
|
||||
- meos
|
||||
|
||||
Copyright (C) 2009
|
||||
- Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
|
||||
@ -97,7 +97,6 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName='_small', $
|
||||
|
||||
$fichier = realpath($file); // Chemin canonique absolu de l'image
|
||||
$dir = dirname($file); // Chemin du dossier contenant l'image
|
||||
$dirthumb = $dir.($outdir?'/'.$outdir:''); // Chemin du dossier contenant les vignettes
|
||||
|
||||
$infoImg = getimagesize($fichier); // Recuperation des infos de l'image
|
||||
$imgWidth = $infoImg[0]; // Largeur de l'image
|
||||
@ -140,6 +139,7 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName='_small', $
|
||||
}
|
||||
|
||||
// On cree le repertoire contenant les vignettes
|
||||
$dirthumb = $dir.($outdir?'/'.$outdir:''); // Chemin du dossier contenant les vignettes
|
||||
create_exdir($dirthumb);
|
||||
|
||||
// Initialisation des variables selon l'extension de l'image
|
||||
|
||||
Loading…
Reference in New Issue
Block a user