Jump to content

Edit History

mantas393

mantas393


More info

Prestashop 1.7 default functionality limits us to only resizing images. 

I wonder what you usually use when you want to get desired size of an image? Do you make some code overrides or use some module?

What would be the code solution/module that takes a width and height and will resize and crop the image to ensure the resulting image is the exact size I requested. The aspect ratio is maintained but parts of the image may be cropped, however the resulting image is centered?

For example if I have an image that is 640 x 480 and requested 400 x 100 image, I would expect the resulting image will be resized to 400 x 300 and then the height is cropped resulting in a 400 x 100 image.

mantas393

mantas393


More info

Prestashop 1.7 default functionality limits us to only resizing images. 

Is there are module that takes a width and a height and will resize and crop the image to ensure the resulting image is the exact size I requested. The aspect ratio is maintained but parts of the image may be cropped, however the resulting image is centered?

For example if I have an image that is 640 x 480 and requested 400 x 100 image, I would expect the resulting image will be resized to 400 x 300 and then the height is cropped resulting in a 400 x 100 image.

mantas393

mantas393


More info

Prestashop 1.7 default functionality limits us to only resizing images. 

Is there are module that takes a width and a height and will resize and crop the image to ensure the resulting image is the exact size I requested. The aspect ratio is maintained but parts of the image may be cropped, however the resulting image is centered?

For example if I have an image that is 640 x 480 and requested 400 x 100 image. I would expect the resulting image will be resized to 400 x 300 and then the height is cropped resulting in a 400 x 100 image.

mantas393

mantas393


More info

Prestashop 1.7 default functionality limits us to only resizing images. 

Is there are module that takes a width and a height and will resize and crop the image to ensure the resulting image is the exact size I requested. The aspect ratio is maintained but parts of the image may be cropped, however the resulting image is centered?

For example if I have an image that is 640 x 480 I would expect the resulting image will be resized to 400 x 300 and then the height is cropped resulting in a 400 x 100 image.

mantas393

mantas393


Mistakes

Prestashop 1.7 default functionality limits us to only resizing images. 

Is there are module that takes a width and a height and will resize and crop the image to ensure the resulting image is the exact size I requested. The aspect ratio is maintained but parts of the image may be cropped, however the resulting image is centered?

 

mantas393

mantas393

Prestashop 1.7 default functionality limits us to only resizing images. I miss some default function, like in Wordpress that could resize and then cr

Is there are module that takes a width and a height and will resize and crop the image to ensure the resulting image is the exact size I requested. The aspect ratio is maintained but parts of the image may be cropped, however the resulting image is centered.

 

×
×
  • Create New...