Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
based on hook_image_default_styles I would like to create an image action for some images I have. However, I would like to resize them in such a way that the final image size cannot exceed the size of 730x400.
For instance if the image is 1600x600 the image has to be resized based on the width, i.e. become 730x273, while if the image is 600x1600 it has to be resized based on the height, i.e. 150x400.
with bitrix enviroment installed like a base webserver, my drupal installation show some issues to create the styles.
After check permissions from filesystem and the configuration of apache they don't show error then check the nginx configuration the problem could be the next couple of lines
with bitrix enviroment /etc/nginx/bx/conf/bitrix.conf
if you don't have bitrix and just have nginx the config file is in /etc/nginx/nginx.conf