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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:01:27+00:00 2026-06-13T19:01:27+00:00

Trying to subtract a JPEG image from itself results in a non empty image,

  • 0

Trying to subtract a JPEG image from itself results in a non empty image, i.e. the delta image is almost white, but something from the original image is still visible.

I do not know if this is something intrinsic to the JPEG format, or if it depends on the program I used or on my parameters.

The program I used for a test is ImageMagick.

This is the command (tried with different values of -fuzz):

compare.exe img.jpg img.jpg delta1.jpg
compare.exe -fuzz 1000.0 img.jpg img.jpg delta2.jpg
  • 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-13T19:01:28+00:00Added an answer on June 13, 2026 at 7:01 pm

    The problem can arise because JPEG is a lossy format. There is thus no “perfect answer” to the decompressed form of the image. It also means that a decompressor cannot be tested as returning that perfect answer, and it might well return a different result at each run, even if this result is correct and near enough from the original given the compression parameters.

    You could expect the same decompressor to always return the same bitmap image bits for a given JPEG file but unless the decompressor is explicitely tested for that (and it is definitely not a common requirement), your experiment results can happen without meaning that the decompressor is of worse quality than a decompressor which would always return the same results.

    You could do a PSNR/MSE comparison with respect to the original bitmap several times (i.e. comparing the .bmp to the decompressed .jpg several times), these measures will probably stay nearly constant.

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

Sidebar

Related Questions

I have two arrayLists and I am trying to subtract one arrayList from another.
Im trying to call a method that will add or subtract 1 from a
What I am trying to do is to subtract 7 hours from a date.
I am trying to make a simple program that will subtract an object from
How can I subtract 3 months from the GETDATE() function? What I am trying
I'm trying to subtract two values from each other using twos compliment. I have
Trying to think of a way to subtract 5 minutes from 2 hours. It
I am trying to create a function that can subtract between 2 dates but
I am trying to make an sql query to subtract two values from different
I'm trying to subtract 1 (one) from a value with jQuery. I've managed to

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.