I created a new user-profile settings set, and set "maximum image size" to 600x450.

When logged in as a user who has that profile and no other, thefollowing happens when uploading an image:

The image uploaded is too big (original: 1280x960) so it gets resized. The actual processed image winds up being 800x600 even though the file-browser lists it at 600x450 and displays it at 600x450 too.

So, that's bad enough: The image is twice as big (in area and in filesize) as what I chose for the settings. Talk about poorly optimized. But here's what's worse: When selecting that uploaded image for inserting it into the article, it gets inserted at 800x600, not 600x450. That breaks the layout which is the whole reason I specified 600px width in the first place. Guess what else: I can't even specify a different size because that gets implemented as a style attribute on the image tag instead of height and width attributes - so, the "Filtered HTML" text formatter strips it out and the image is displayed at actual size - 800x600.

OK, so, is this a bug or a support request? Something's going wrong here and I'm surprised nobody else has reported a similar issue.

Thanks a lot!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ufku’s picture

Status: Active » Closed (works as designed)

It's probably an issue with your wysiwyg editor. Note that IMCE does nothing more than providing the URL of your image to the editor. It's not involved in image insertion or displaying.

beanluc’s picture

Thanks for the response, and the pointer. I do buy the idea that something could be fishy in CKEditor at the same time, but, the particular issue (see title) does seem like it absolutely must be IMCE's responsibility. The problem happens entirely within the "Browse Server" window, using uploading, which is IMCE and not CKEditor... Right? In ther words, by the time CKEditor's image dialog receives the uploaded and processed image, the damage is already done. It seems to me that the only part of what I described which is related to the editor is the part about how specified display dimensions is implemented with CSS code.

So please consider reading the original issue right up until "that's bad enough" and stopping right there. The processed image is 800x600 rather than 600x450, that's the problem which I'm reporting. What about the fact that the image is supposed to be resized to the setting in my IMCE profile? The image *is* resized, but, not to the size which was specified in my new profile. Is it not IMCE which instructs the image toolkit what dimensions to use?

Thanks again for attention and help. I'm re-opening this. If it's truly "working as designed", then could I at the very least have the support-request satisfied, with an explanation of what setting the "maximum image size" is supposed to do, before you close it again? And if the answer to that question is, "any larger image is supposed to be resized down to that specified max size", then, it's clearly not "working as designed" and shouldn't be closed as such.

beanluc’s picture

Status: Closed (works as designed) » Active
ufku’s picture

Category: task » support

No way to reproduce what you describe.

padhu’s picture

I am a newbie to Drupal. I created a content type called slide_photos to add images. I created a custom Image style called slide_photo and with an effect to scale the images to 960X300 and with an option of Up scaling allowed. I attached this image style to the new content type. I used the content type to upload my images which are very big say 4270X2840. It gave a message saying that the messages was resized to fit within the maximum allowed dimension of 960X300 pixels.

I use these images in a Views slide show, but the images are mostly 450X300 and I found one with 533X300 size. I don’t know from where these dimensions are picked up. I also see in sites/default/files/style/slide_photo/public folder these images are stored with these varying dimensions of 450X300 and 533X300. I have almost a fresh installation of Drupal with all the modules downloaded in the last one week or less. Is there any bug or am I not setting something?

padhu’s picture

Issue summary: View changes

Deleting part which is related to the wysiwyg editor rather than the IMCE

paulocs’s picture

Hello @all,
I did some tests and I think the issue doesn't apply any more.
I did the upload from a image with dimensions 4500x2550 and it was resized to 1200x680.
So it war right resized as in my IMCE user's configuration the maximum dimension is 1200x1200.

Thanks :)

thalles’s picture

thalles’s picture

Status: Active » Fixed

Thanks @all!

Status: Fixed » Closed (fixed)

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