What is the best way to prevent logo distortion and poor quality when allowing users of an app to upload their own logo?
I'm not a fan of allowing any outside logos into an app but it is a Client requirement. The requirement is that a user can upload their logo and it will replace the app logo in a space that is 120px - 160px width. There are several problems to try to prevent when allowing the user to upload a logo:
- poor quality image that is pixelated when uploaded
- wrong size image that will be distorted when displayed
- unvectored text in logo font images ( which can't be prevented )
- wrong aspect ratio logos
I'd like to know what the best parameters to set for an uploaded logo. We can do a check with the code for the px width and height. But the code can not check if the text has been vectorized. Any insights would be nice in this problem. Thanks in advance.