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 524863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:36:44+00:00 2026-05-13T08:36:44+00:00

This is really a two part question, since I don’t fully understand how these

  • 0

This is really a two part question, since I don’t fully understand how these things work just yet:

My situation: I’m writing a web app which lets the user upload an image. My app then resizes to something displayable (eg: 640×480-ish) and saves the file for use later.

My questions:

  1. Given an arbitrary JPEG file, is it possible to tell what the quality level is, so that I can use that same quality when saving the resized image?
  2. Does this even matter?? Should I be saving all the images at a decent level (eg: 75-80), regardless of the original quality?

I’m not so sure about this because, as I figure it: (let’s take an extreme example), if someone had a 5 megapixel image saved at quality 0, it would be blocky as anything. Reducing the image size to 640×480, the blockiness would be smoothed out and barely less noticeable… until I saved it with quality 0 again…

On the other end of the spectrum, if there was an image which was 800×600 with q=0, resizing to 640×480 isn’t going to change the fact that it looks like utter crap, so saving with q=80 would be redundant.

Am I even close?

I’m using GD2 library on PHP if that is of any use

  • 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-05-13T08:36:44+00:00Added an answer on May 13, 2026 at 8:36 am
    1. JPEG is a lossy format. Every time you save a JPEG same image, regardless of quality level, you will reduce the actual image quality. Therefore even if you did obtain a quality level from the file, you could not maintain that same quality when you save a JPEG again (even at quality=100).

    2. You should save your JPEG at as high a quality as you can afford in terms of file size. Or use a loss-less format such as PNG.

    Low quality JPEG files do not simply become more blocky. Instead colour depth is reduced and the detail of sections of the image are removed. You can’t rely on lower quality images being blocky and looking ok at smaller sizes.

    According to the JFIF spec. the quality number (0-100) is not stored in the image header, although the horizontal and vertical pixel density is stored.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is really a two part question: I'm seeing some users in the Grantee
This is really a two part question. First, is it possible to detect if
This is really a two part question . I'm struggling with two problems that
This is a two part question, really. Preface: I use WinRAR to compress files.
This is really a two part question, but they're kinda related: How does Windows
So this is really a two-part question: why isn't it working, and should I
I am having a really hard time getting this to work. I have two
I'm really new to JavaScript and jQuery. My question is this. I have two
This is a two part question: Part 1 First, dealing with calculating the entropy
I guess this is more or less a two-part question, but here's the basics

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.