Hello all,
@tmortagne mentioned:
But if we disable it by default, some stuff will need to be fixed for sure as we often notice a few UI issues every time we disable that (mainly code assuming that the source image always have the right size and don’t set it explicitly in the
).
I would love to have some examples here, since my understanding about the imageDimensionsIncludedInImageURL parameter is that it only controls whether the width and height parameters passed to the xwiki image syntax are appended to the image URL in order to fetch a resized image from the server. What this does not do is
- disable the possibility to resize an image on the server (if the width and height parameters are explicitly passed in the download URL of the attachment)
- disable any sort of “default” resizing.
So I don’t understand what is the thing that a code could rely on and disabling this parameter would endup in it being disabled…
Do you have any example here?
@MichaelHamann mentioned that
Non-technical users have no idea how or when to resize an image, they will just upload an image they got from a camera, and then you have a 5MB download for a thumbnail-sized image.
Indeed, but I’ve also seen XWiki instances crashing with out of memory because they had to generate a ton of thumbnails for images, for the display on the same page (because the requests from the browser do come at the same time, for resized images, because the browser is loading each image async).
Also, let’s not underestimate the fact that once that thumbnail is downloaded, any usage of it on the browser will use it from the browser cache (thumbnail size or full size), whereas, if you do the resize on the server, any new size will result in a new processing and a new transfer to the browser.
I’m not saying that not resizing images on the server is the obvious thing to do, I’m saying that it’s not such a dumb and unacceptable idea, there are some benefits to it.
I don’t have a strong opinion about this issue, even if I did hear the complain about the quality quite a lot. I ended up on this thread because I was trying to understand whether it can cause any issues in pages to disable that or not. From what @tmortagne is saying, yes, from what everyone else is saying, no. From what I understand that this feature should do, no, so I am curious if we have a bug or not.
Thanks,
Anca