alfred-imagemin icon indicating copy to clipboard operation
alfred-imagemin copied to clipboard

Adding resize/downscaling option

Open dia3olik opened this issue 3 years ago • 1 comments

Hey Ryo!

Thanks for the nice workflow!

It would be really useful if the user could in addition to recompress also choose to downscale the image(s) like this:

Imagemin 640

which would resize the image, using the longest side of the image (width or height) and resize it to the resolution specified, keeping the aspect ratio the same as the original so calculating the other side automatically based on that aspect ratio.

Or, if you want to use cjpeg only, at least have the possibility to scale as a percentage (supported by cjpeg natively) like this:

imagemin 1/2

would downscale it to half the res and so on...

It would be really useful!!!

Cheers Ryo!

dia3olik avatar Aug 25 '21 12:08 dia3olik

Hi! Thanks for the feature request. I'll think about adding it👍

kawamataryo avatar Aug 25 '21 23:08 kawamataryo