kawamataryo / alfred-imagemin

Alfred workflow - Minify images with Imagemin
MIT License
31 stars 1 forks source link

Adding resize/downscaling option #8

Open dia3olik opened 3 years ago

dia3olik commented 3 years ago

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!

kawamataryo commented 3 years ago

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