Changeset 6786
- Timestamp:
- 02/11/2008 09:02:44 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image.php
r6784 r6786 41 41 } 42 42 43 @imagecopyresampled( $thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $sourceImageWidth, $sourceImageHeight );43 imagecopyresampled( $thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $sourceImageWidth, $sourceImageHeight ); 44 44 45 45 imagedestroy( $image ); // Free up memory … … 154 154 155 155 if ( $max < 0 || $metadata['width'] * $metadata['height'] < $max ) { 156 $max_side = apply_filters( 'wp_thumbnail_max_side_length', 1 28, $attachment_id, $file );156 $max_side = apply_filters( 'wp_thumbnail_max_side_length', 140, $attachment_id, $file ); 157 157 $thumb = wp_create_thumbnail( $file, $max_side ); 158 159 158 if ( @file_exists($thumb) ) 160 159 $metadata['thumb'] = basename($thumb); … … 189 188 return __('The GD image library is not installed.'); 190 189 191 $image = @imagecreatefromstring( @file_get_contents( $file ) ); 190 // Set artificially high because GD uses uncompressed images in memory 191 @ini_set('memory_limit', '256M'); 192 $image = imagecreatefromstring( file_get_contents( $file ) ); 192 193 193 194 if ( !is_resource( $image ) ) -
trunk/wp-includes/functions.php
r6783 r6786 1071 1071 // separate the filename into a name and extension 1072 1072 $info = pathinfo($filename); 1073 $ext = strtolower( $info['extension'] );1073 $ext = $info['extension']; 1074 1074 $name = basename($filename, ".{$ext}"); 1075 1075 … … 1084 1084 $ext = ''; 1085 1085 else 1086 $ext = ".$ext";1086 $ext = strtolower( ".$ext" ); 1087 1087 $filename = $filename . $ext; 1088 1088 while ( file_exists( $dir . "/$filename" ) ) { -
trunk/wp-includes/shortcodes.php
r6726 r6786 147 147 <style type='text/css'> 148 148 .gallery { 149 width: 450px;150 left: 50%;151 149 margin: auto; 152 150 } … … 157 155 width: 33%; } 158 156 .gallery img { 159 border: 3px solid #cfcfcf;157 border: 2px solid #cfcfcf; 160 158 } 161 159 </style>
Note: See TracChangeset
for help on using the changeset viewer.