Open rsiwady29 opened 9 years ago
Thanks for the PR! I've looked at your code and unless I'm missing something, it seems to be a very particular use case, cause it makes no sense to hardcode some % when calling the compress() since you don't know (and should not trust) the dimensions of the original image uploaded by a user.
Adding an optiona scale parameter to the Compress function. Values should range from 0 to 100, clamped otherwise.