esimov / caire

Content aware image resize library
MIT License
10.36k stars 384 forks source link

Improve the generated image output when vertical and horizontal resize is used at the same time. #66

Closed esimov closed 3 years ago

esimov commented 3 years ago

Describe the bug

When an image is resized both horizontally and vertically, the seam carving algorithm first will resize horizontally then vertically, but sometimes, depending on the image, this results with some unpleasant outcome. If we would process the image by applying the seam carving algorithm on horizontal and vertical axis intermittently normally the output would be much better.