Image scale

Hi,

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.

Is there any way to do it?

style don't create the resource when clean URL is enabled with Nginx like inverse proxy

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

Subscribe with RSS Subscribe to RSS - imagecache