Resize an image, selected in Finder, to a target width by respecting image ratio.
Select images in Finder, open Alfred and enter rimage and enter a value for the target width, e.g. rimage 300. The image will be resized to target width by respecting ratio.
Choose a file within Alfred and use File Action "Resize Images"
Works with .jpg and .png.