I have installed LiipImagineBundle in Symfony 2.1 and I am trying to use it for user profiles' avatars. Liip has some sorts of settings that do not allow you to resize in width and height.
my_heighten:
filters:
relative_resize: { heighten: 60 } # Transforms 50x40 to 75x60
my_widen:
filters:
relative_resize: { widen: 32 } # Transforms 50x40 to 32x26
This means that If you have an image 100px*2000px, resizing in height to 120px will have a width of more than 2000px. I want to resize both portrait and landscape images to include all possible user interactions with the image upload element. I have tried to use
filters:
relative_resize: { heighten: 60, widen: 60 }
and
filters:
relative_resize: { heighten: 60 }
relative_resize: { widen: 60 }
but none of them work.
Has anyone tried anything similar ?
EDIT: I forgot to say that I need a square image 60*60 than will not be cropped.
liip_imagine:
filter_sets:
filter_name:
filters:
resize:
size: [60, 60]
Only this wont crop.