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

OneTwoTait’s picture

Version: 6.x-1.x-dev » 6.x-1.1

Sorry, this if for 6.x-1.1 not 6.x-1.x-dev.

everydayjones’s picture

I 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 :)

OneTwoTait’s picture

That 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?

everydayjones’s picture

I don't believe it matters about dimensions if your file size is too large.

OneTwoTait’s picture

In 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.

ufku’s picture

Category: bug » support

Actually 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.

yan’s picture

Version: 6.x-1.1 » 6.x-1.3

I 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.

kpm’s picture

I 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.

ufku’s picture

Status: Active » Fixed

This is probably due to incorrect value set for Maximum resolution.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.