Magento-nginx-config
Magento-nginx-config copied to clipboard
image filter: too big response
Good afternoon,
And a happy new year 2022.
I have met some casualties when I was working on our back-office with high definition pictures, Nginx return 415 error code HTTP for product images when editing.
When I was checked the error log of Nginx, messages lead me to the directive image filter :
2022/01/05 13:59:30 [error] 2137574#2137574: *1241 image filter: too big response: 1479857 while sending response to client
image_filter_buffer
#Set the maximum size of the read image buffer, otherwise 415 error will occur.
I think it will be a good idea to include this one in a comment or leave as it is,
Ilan Parmentier
this error most likely tells you that you need to compress your images first, are you trying to sell high resolution images or some art that required product image to be more than 1.5mb ??
As you may know, Magento can resize your image automatically when you send it by the product infos interface (it can be defined in the configuration of the BO).
It is very convenient when you have more than ten photos by product and you do not want to resize them by a software, as it will be very time consuming when you inserting a lot of products for one session in a day.
right, but >1mb and even 5mb is too much for global config, you probably need to update your specific configuration, thank you for info, i need to take a look at magento 2 image resize, before it was the problem, it resize files back to big size.
right, but >1mb and even 5mb is too much for global config, you probably need to update your specific configuration, thank you for info, i need to take a look at magento 2 image resize, before it was the problem, it resize files back to big size.
When you submit the file in the drag & drop part of the product infos, Magento will resize and compress the image with ImageMagic or GD extension from PHP. So you will charge 1MO but it will downsize it after processing. You can configure the width and height of the resized image in the back-office.