Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
1c272854
Commit
1c272854
authored
15 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
New: Add patch from meos to resize images
parent
ae3cfce7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
COPYRIGHT
+2
-0
2 additions, 0 deletions
COPYRIGHT
htdocs/lib/images.lib.php
+1
-1
1 addition, 1 deletion
htdocs/lib/images.lib.php
with
3 additions
and
1 deletion
COPYRIGHT
+
2
−
0
View file @
1c272854
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
htdocs/lib/images.lib.php
+
1
−
1
View file @
1c272854
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment