Opened 10 years ago
Closed 10 years ago
#31120 closed defect (bug) (worksforme)
Upload bug: Square pictures bigger than 2500px
Reported by: | wpstkw | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.1 |
Component: | Media | Keywords: | |
Focuses: | Cc: |
Description
Hi!
The bug happens only with quare pictures (jpg in my case) bigger than 2500pixels. The upload stops at 100% and there are no thumbnails for this picture.
Maybe a "Out of memory" bug but without error message if the first picture works.
If I upload only one of this pictures I get an Out of memory (allocated 67633152) (tried to allocate 4096 bytes) in /.../wp/wp-includes/media.php on line 2043 message.
post_max_size = 128M
upload_max_filesize = 128M
memory_limit = 256M
max_execution_time = 42
Attached you will find screenshots and a working and a not working picture.
regards
ST
Attachments (5)
Change History (10)
#3
@
10 years ago
@Sergey: maybe, but for square pictures only. "Normal" Pictures I can upload with 12M and 3000x6000px and regarding the upload_max_filesize Info. It's out of phpinfo(). And why the uploader requires more than 64M for a 1.2M picture?
#4
@
10 years ago
I think this bug is more related to the GD library that is not able to load the picture to generate the thumbnails.
When GD loads a jpeg image, it converts it into bitmap so only the original jpeg file resolution is taken into account in the number of bytes needed. The difference of treatment between square and rectangle images is a mystery though. And 3000x3000 image should not take up to 64M in memory, but only 34M if my computation is right (32 bits per pixel). Do you use any plugin that could make some post-treatment to uploaded images ? Or do you use another php library to manipulate images ?
I tried to upload your images on my local WordPress install with your PHP settings without issues.
Just for clarification. The bug happens not with not sqare pictures. Rectangle pictures i can upload in all sizes.