[wp-trac] [WordPress Trac] #8754: Uploading images whose dimensions are greater than the maximum size allowed fail to generate thumbnails and no error/failure message is displayed.
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 30 01:44:18 UTC 2009
#8754: Uploading images whose dimensions are greater than the maximum size allowed
fail to generate thumbnails and no error/failure message is displayed.
---------------------------------------------------------------------+------
Reporter: DRGDC | Type: defect (bug)
Status: new | Priority: normal
Milestone: 2.9 | Component: Upload
Version: 2.7 | Severity: normal
Keywords: image, photo, thumbnail, dimension, size, limit, upload |
---------------------------------------------------------------------+------
Comment(by DRGDC):
I am providing updated information as this bug is frustrating for me. All
I want is a 200x200 thumbnail automatically generated for the first image
in my post (either first uploaded or set to order position 1).
Thumbnail generation is silently failing. Without errors it is next to
impossible to debug. I am attaching an image that fails with the
following configuration:
WordPress 2.8.3
General
* OS: Linux
* Server: Apache/2.2.3 (Red Hat)
* Hostname: blog.radian.net
* IP:Port: 76.12.173.65:80
* Document Root: /xxxxx/xxxxx/htdocs
PHP
* v5.1.6
* GD: bundled (2.0.28 compatible)
* Magic Quotes GPC: Off
* Memory Limit: 16.0 MiB
* Max Upload Size: 30.0 MiB
MYSQL
* v5.0.45
* Maximum No. Connections: 100
* Maximum Packet Size: 1,024.0 KiB
* Data Disk Usage: 3.2 MiB
* Index Disk Usage: 449.0 KiB
I've tried editing /wp-admin/includes/image.php:
function wp_shrink_dimensions( $width, $height, $wmax = 900, $hmax = 900 )
{
return wp_constrain_dimensions( $width, $height, $wmax, $hmax );
}
with the above setting the file upload progress bar hits 100% and then
disappears, but the image doesn't upload.
With the following the file upload progress bar hits 100% and then
disappears, the file is uploaded but no thumbnail is generated:
function wp_shrink_dimensions( $width, $height, $wmax = 200, $hmax = 200 )
{
return wp_constrain_dimensions( $width, $height, $wmax, $hmax );
}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8754#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list