serverless-image-proxy icon indicating copy to clipboard operation
serverless-image-proxy copied to clipboard

Image url doesn't allow for an _IMAGE_NAME_ with '-' or multiple '.'

Open SamWyld opened this issue 8 years ago • 1 comments

When trying to query an image using this format: https://images.graph.cool/v1/PROJECT_ID/FILE_SECRET/IMAGE_NAME.EXTENSION

If the image name has includes '-' or multiple '.' it will fail and return this error: Error: Invalid resize, crop pattern or name of image: image-name.jpg

SamWyld avatar Sep 01 '17 17:09 SamWyld

Thanks a lot for bringing this up! Would you mind adding a few test cases as a PR which reproduce the problem?

Bonus points for also adding the solution to the PR :)

schickling avatar Sep 01 '17 20:09 schickling