excellenteasy / grunt-image-resize

Unmaintained. If you'd like to take this over please let us know. Resizing images made easy - thanks to imagemagick.
MIT License
57 stars 46 forks source link

Scale Images? #13

Closed aholla closed 10 years ago

aholla commented 10 years ago

Hi, is it possible to use a "scale" value to resize the images instead of "pixels".

I see in the example it has:

$ convert rose.jpg -resize 50% rose.png

I have an 'HD' folder of various different sized images and I would like to duplicate it and resize all the images to a scale e.g. 50% to create s SD version of the assets.

If available, it could be a flag in the options e.g: "scaleImages : true"

Thanks

normanrz commented 10 years ago

By any chance, have you tried "50%" as values for width and height? I'm curious if it works out of the box.

aholla commented 10 years ago

Ah! yep that works, just specify the width or hight as a percentage : width : "50%".

You should pute a note in the docs for other people.

Thanks!