*** empty log message ***

git-svn-id: http://piwigo.org/svn/trunk@26 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2003-07-21 19:47:14 +00:00
parent 55a0a61aaf
commit 2fa9252446
25 changed files with 1065 additions and 1123 deletions
+6 -1
View File
@@ -17,11 +17,16 @@
$tab_ext_create_TN = array ( 'jpg', 'png', 'JPG', 'PNG' );
// is_image returns true if the given $filename (including the path) is a
// picture according to its format and its extension.
// As GD library can only generate pictures from jpeg and png files, if you
// ask if the filename is an image for thumbnail creation (second parameter
// set to true), the only authorized formats are jpeg and png.
function is_image( $filename, $create_thumbnail = false )
{
global $conf, $tab_ext_create_TN;
if ( is_file ( $filename ) )
if ( is_file( $filename ) )
{
$size = getimagesize( $filename );
// $size[2] == 1 means GIF