Closed pyprism closed 5 years ago
Yes, I have the same issue. ResizeToFill will just crop the image, most of the time. ResizeToFit will cause image distortion if the h/w ratio is different from the original image.
Image resizing is a tricky thing especially if you have images with different ratio as input and you want as output images of the same size. Now before I try to answer your question I first want from you to provide us with more information.
ResizeToFill
(with desired size as arguments);ResizeToFIt
(with the same size arguments as above);ResizeToCover
(with the same size arguments as above);@pyprism can you do this?
@zhuyuecai why do you think that ResizeToFit
is causing image distortion? Can you provide some examples of distorted images created with that processor?
Currently this is my model:
If I use ResizeToFill, some images automatically cropped. Then I tried ResizeToFit but sometimes it is not respecting image height (412) . How to use django-imagekit without auto cropping and sacrificing width/height ?