aws-lambda-image icon indicating copy to clipboard operation
aws-lambda-image copied to clipboard

Enhancement - parameter to double the size with @2x

Open johndpope opened this issue 4 years ago • 3 comments

https://cdn.shopify.com/s/files/1/0023/8639/5172/products/[email protected]?v=1569423464

While it's trivial to just manually double the size / dimensions it would be a nice to have to pass in @2x somewhere in the url to upscale this.

/100x100/. -> @2x would upscale to 200x200

johndpope avatar Jan 18 '21 08:01 johndpope

This seems to be something configurable with ImageMagick syntax: https://imagemagick.org/script/command-line-processing.php#geometry - you can either upscale or downscale.

I don't understand why you want to upscale your image though - you are not improving the image dimension in any way by upscaling.

phy25 avatar Apr 17 '21 04:04 phy25

technically if the original image is say 1mb - 1000x1000 pixels- and you mostly want 100x100 - but for retina - you want @2x it would be 200x200 - the phone would be downloading a larger (though not largest) resolution.

johndpope avatar Apr 20 '21 00:04 johndpope

fyi https://github.com/awslabs/serverless-image-handler

johndpope avatar Apr 20 '21 00:04 johndpope