Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8892683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:04:07+00:00 2026-06-14T23:04:07+00:00

i want to check selected input image file’s current quality (Resolution/dpi/ppi) . my control

  • 0

i want to check selected input image file’s current quality (Resolution/dpi/ppi).

my control is image uploader jquery plugin.

How can i get the quality of selected file?

(i need selected image file’s resolution not screen resolution)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:04:08+00:00Added an answer on June 14, 2026 at 11:04 pm

    Note:

    The answer is in C# not Javascript, there is no way to do this in JS and that was not a requirement in the original question.

    About your original question

    This is a big dependency of what you consider a "high quality" Image (nice reading BTW). But anyway the quality factor is not stored directly in the JPEG file, so you cannot read directly from the file.

    Most of these factors involve complex imaging algorithms. But do not be disappointed, you can read some properties using the PropertyItems property on the Image class and make some calculations to get an idea of the quality of the image based on size and dpi or ppi. This is a simple example:

    Bitmap bmp = new Bitmap("winter.jpg");
    Console.WriteLine("Image resolution: " + bmp.HorizontalResolution + " DPI");
    Console.WriteLine("Image resolution: " + bmp.VerticalResolution + " DPI");
    Console.WriteLine("Image Width: " + bmp.Width);
    Console.WriteLine("Image Height: " + bmp.Height);
    

    This will help too: How can I get the resolution of an image? (JPEG, GIF, PNG, JPG)

    "But I want to check selected files image quality before uploading"

    If you want to check the image quality before upload (as you said in comments), that’s a big plus to the question. The only built-in method to get the numbers you’re after is by creating a new instance (and decoding the entire image) – which is going to be highly inefficient. But… hey! here is a start point: How do I reliably get an image dimensions in .NET without loading the image?

    Further reading:

    • Reading Image Headers to Get Width and Height
    • http://en.wikipedia.org/wiki/Image_quality
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to check the file size of the file selected by user, at
I want to check on the client side that a file has been selected
I want to check a particular file exist in Azure Blob Storage. Is it
I want to check whether any Zip file is present on a specified path.
I have created a Check box JQuery Plugin, but when i want to get
I'm using the jquery multiselect control from: http://abeautifulsite.net/notebook/62 I need to manually check one
I have the following: <input id=user_profile_pic name=user[profile_pic] type=file> On the server I check to
I have an HTML, PHP - Jquery form. The last input is a file
I want to enable the input field when check box is checked. Also, I
I want to store the values based on the check-box selected sequentially.but i have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.