Lymphatus / caesium-image-compressor

Caesium is an image compression software that helps you store, send and share digital pictures, supporting JPG, PNG, WebP and TIFF formats. You can quickly reduce the file size (and resolution, if you want) by preserving the overall quality of the image.
https://saerasoft.com/caesium
GNU General Public License v3.0
3.67k stars 217 forks source link

Keep aspect ratio when resizing to specific dimension. #164

Closed keyur1610 closed 9 months ago

keyur1610 commented 1 year ago

When resizing images to a specific dimension, user should be able to set either height or width to 'Auto'.

For example, if I set the width to 1200px then I should have the option to set the height to 'Auto' so that resizing does not change the aspect ratio.

To be clear, using 'long edge' or 'short edge' does not achieve this same behaviour in bulk resizing.

I was able to do what I described in the past version, a couple of years ago.

flansch commented 1 year ago

I sometimes have the requirement to bring a batch of pictures all to the same width (i.e. columnn width on a website), regardless of their orientation. So I also would be glad to see this implemented.

vitalii-onopriienko commented 1 year ago

Without this feature, this application has become useless for me. Such a shame. The best option for image bulk optimization.

Lymphatus commented 1 year ago

I think I'll start working on this with the upcoming (2.6.0) version.

criquio commented 1 year ago

I was using version 1.7.0 which has this feature. Today, I downloaded version 2.5.1 and I noticed it does not have it. I got a bit upset because it's one of the most important feature in this kind of software. The compress power in newer version, in other hand, is much more better. I compressed a png file in both versions and it got 5 times smaller in the newer one. The original size was 166 kb. The older version compressed it to 51.88 kb while the newer one compressed it to 10.4 kb. I also reduced it's dimensions to half the original one.

Lymphatus commented 9 months ago

Added in v2.6.0