To be honest, I didn't understand why this was happening ... There should be a "safety-valve" in X3 to prevent TALL images from trying to resize at width 1280px ... Tall images resized at 1280 px width, usually means something around
1280 x 1920 px, which often exhausts a a standard PHP
8 MB memory limit. I am looking into our code as we speak, and I see there is a flaw ... This should be fixed in a new X3 release next week!
Studio Graou wrote:Ou si je comprend bien, mon serveur aurait du mal a redimensionner certaines images. Mais pourquoi ?
Your server certainly has a memory limit for processes, and it is not at 2048M as diagnostics says. That memory is in places, but it's certainly not available always ... You are sharing resources somehow. The math below is simple and proves there is a limit on your server:
For this image,
anything 1049 width and over, will fail:
w1049
(
EDIT: After checking later, suddenly this request worked ... This proves that your server memory resources are
fluctuating. Even the
W1280 image requested worked suddenly:
https://d.pr/i/LVBD). Confusing!
Anything 1048 width and below, will succeed:
w1048
Studio Graou wrote:Je remarque aussi que le problème viens des images en mode portrait.
Pourtant ça le fait sur certaine et d'autres.
Why this image specifically?
Because it depends on the aspect-ratio, orientation, image-bits, image-channels and the visitors screen size (which decides what image size to request). This is a TALL image, which means a
width-1280 request requires a 1280 x 1920 px images (which fails resize on your server). As mentioned, I will fix it in next X3 release. It works different for other images that are not tall, because they can handle a much wider resize-request, exceeding the requirements of X3.
Edit: I did some further research on your server, and it seems the resources available fluctuates. Sometimes I can request a large image, other times it fails. The resources may be limited relative to the resource-usage from other users. Your 2048M is far from guaranteed at any point in time it seems.
Check this, at some point w2180 worked:
... and another time, I get ERROR for a much lower request:
... then suddenly works again for a bigger size request:
Your server may be "virtual dedicated", but it is still sharing resources with others and the resources (performance) is fluctuation. This is a bit poor from OVH if you ask me ... What plan are you using? But ok, regardless of this, next fix will prevent TALL images from being requested at 1280px width ... even though your server
should be able to handle them.