Possible to tell if an image is a drawing?
Posted: 2010-02-23T07:48:25-07:00
My application needs to create thumbnails from uploaded images. They can be in gif, jpg, png 8~bit, or png 24~bit format. We will be displaying all thumbnails within the application in a 3:2 aspect ratio. But with images that are drawings, especially those that are logos in a 1:1 ratio, cropping them makes them look awful, especially if they take up the entire canvas.
Can anyone think of a way to know when I should pad out the image instead of shrink the image to fit? Is there a way to know whether an image is a drawing? Is it enough to know that it is 1:1 to know that it should probably be padded out? Should we just not allow images that are not 3:2?
Thanks in advance for any input.
Can anyone think of a way to know when I should pad out the image instead of shrink the image to fit? Is there a way to know whether an image is a drawing? Is it enough to know that it is 1:1 to know that it should probably be padded out? Should we just not allow images that are not 3:2?
Thanks in advance for any input.