Crash when uploading images

I am aware that this issue has been resolved as it seems to be an issue with the image conversion library using some unsupported operation on older CPU:s. From what I have understood it can be solved by changing the imageOptimization.resize to false.

The problem is that I use docker and am wonder how the hell do I do that with environment variables i tried with many different combination but then I gave up and just decided to ask what does it convert to. imageoptimization__resize ?

I actually got the environment variable right in the end. I saw it by looking at the generated config on startup and validate that it was in fact set to false. However even the value set to false Ghost crashes on every image upload.

Ghost needs to save the uploaded files in content/images. Does it have write access to that directory (or wherever specified by your config)?

Yes I can see the files being created and they are fully uploaded but I guess somehome the image conversion starts anyway and the process crashes.

Are you sure on that capitalization? It’s not imageOptimization__resize , maybe?

I tried them both but I also realised that if I configure debug mode the config is printed at start and I can confirm that the property is overwritten but the environment variable.

ghost  |   imageOptimization: {
ghost  |     resize: false,
ghost  |     srcsets: false,
ghost  |     defaultMaxWidth: 2000,
ghost  |     contentImageSizes: {
ghost  |       w600: [Object],
ghost  |       w1000: [Object],
ghost  |       w1600: [Object],
ghost  |       w2400: [Object]
ghost  |     },
ghost  |     internalImageSizes: {
ghost  |       icon: [Object],
ghost  |       'signup-form-icon': [Object],
ghost  |       'email-header-image': [Object],
ghost  |       'email-latest-posts-image': [Object],
ghost  |       'email-latest-posts-image-mobile': [Object],
ghost  |       'social-image': [Object]
ghost  |     }
ghost  |   },