Closed (fixed)
Project:
IMCE
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2009 at 03:52 UTC
Updated:
22 Nov 2010 at 05:00 UTC
When uploading an image via IMCE/FCKeditor (from the add node page > click “insert/edit image” button, then click “browse” then click “upload”) it always says the image is too large. This is what it said when I tried to upload an image that was 400*560 and 33kb:
“11:27:02 Uploading IMG_2835.JPG…
11:27:04 The selected file IMG_2835.JPG could not be uploaded. The image is too large; the maximum dimensions are 3000*3000 pixels.
11:27:04 Upload failed.”
Comments
Comment #1
OneTwoTait commentedSorry, this if for 6.x-1.1 not 6.x-1.x-dev.
Comment #2
everydayjones commentedI was having the same issue using TinyMCE. I went into my public_html folder and found my php.ini file. In that file, I was able to find this:
upload_max_filesize = 2M
I changed it to
upload_max_filesize = 12M
Now it works :)
Comment #3
OneTwoTait commentedThat doesn't seem to be the issue here. Isn't it telling me the dimensions are too large when in fact the dimensions are not too large?
Comment #4
everydayjones commentedI don't believe it matters about dimensions if your file size is too large.
Comment #5
OneTwoTait commentedIn that case, it can be broken down into two errors:
1 - It is giving a message that the dimensions are too large, which is the wrong message in this case.
2 - It thinks any file size is too large.
Comment #6
ufku commentedActually this issue is related to file.inc of core. The code is:
if (image_get_toolkit() && image_scale($file->filepath, $file->filepath, $width, $height)) {
......
}
else {
$errors[] = t('The image is too large; the maximum dimensions are %dimensions pixels.', array('%dimensions' => $maximum_dimensions));
}
According to this piece of code you probably have a problem with your image toolkit because it is either missing or it's not capable of scaling images.
Comment #7
yan commentedI had the same problem when I tried to upload a picture of about 100px width and 30kb of size as user 1. I reviewed the settings and found that the maximum dimensions were set to "1000x" (without a value for the height). Setting it to "1000x1000" or 0 solved the problem for me.
Comment #8
kpm commentedI had a similar problem. I discovered it was caused because I had used a capital letter "X" in an imageCache setting (ImageCache_Profiles) for a dimensions dialogue.
So, I had "1600X1400" in the maximum settings dialogue rather than "1600x1400". When I changed the cap to lower case, the error went away. That was on a Linux Apache server. Case matters.
Comment #9
ufku commentedThis is probably due to incorrect value set for Maximum resolution.