Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
Can someone please help me to check the quality of the images when we upload any file using file uploader in webform.?
Posted
Comments
Sergey Alexandrovich Kryukov 8-Dec-15 2:18am    
Care to define "quality"? Before "checking" something, you need to know what you are checking. :-)
—SA
[no name] 8-Dec-15 3:22am    
For example any blurness in image.
Sergey Alexandrovich Kryukov 8-Dec-15 10:40am    
All right, you cannot define it. And I don't know how would you define it. How can we "check" something we cannot define?

Look, I have a good idea for you. Forget it. Seriously.

—SA

Is there a reliable method to determine if an image is blurry? No, it depends on the image and the intended subject and intended focusing.

What if the image has a sharp foreground subject, takes up less than half the frame, and the background is intentionally heavily blurred?

The algorithm(s) you use has to have some kind of threshold to determine the level of blurriness that you're willing to accept. Nothing is going to replace looking at each image yourself though.

There's a ton of examples on various algorithms here in this post[^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 8-Dec-15 10:42am    
5, but... I would say, it's not about "reliability" of the method, and not about the level of blurriness. This is just something undefined, and your explanations explain exactly that.
—SA
The only way to do that is to find a 3rd party control. Native .net does not have a library to check what you want.
 
Share this answer
 
Comments
[no name] 9-Dec-15 0:58am    
Can you please suggest any third party controls ?
ZurdoDev 9-Dec-15 7:03am    
No, I've never seen any that do that. As pointed out by Dave in Solution 2, it's a very tough thing to determine.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900