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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:54:38+00:00 2026-06-08T19:54:38+00:00

My application requires VERY small size jpeg files (less than 2.5KB) to be stored

  • 0

My application requires VERY small size jpeg files (less than 2.5KB) to be stored as DATA (CANNOT BE A LINK) in a QR code. Both quality and size are a concern. Any byte I can save might mean that I can make the QR code easier to read. Luckily, they all have a standard resolution (160×240) and color depth (24 bits).

I had an idea of taking part of the header out of the JPEG files themselves, and have the application add the header back into the data array later, which would save a good 600 bytes (wow). The way I’m doing compression so far is to keep a “gold standard file” and compress that file with Q = 80-10% until it fits into 2.5KB.

Because a different compression ratio means a different header, my idea would be to pass the final compressed image through ANOTHER pass of a known, standard compression. But then if the “standard compression” is greater than the original compression the image settled on, the size may actually be GREATER than the final compressed image.

Is there a standard method of doing something like this? I feel like I might be onto something, but I can’t seem to get it to work.

  • 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-08T19:54:40+00:00Added an answer on June 8, 2026 at 7:54 pm

    What I eventually ended up doing was having multiple levels of compression, and I stored the header (D0-DB) and the Huffman Table (C4). I am able to save roughly 550 bytes this way with a simple replace algorithm. It’s not 100% ideal, but it’s not half bad either. I lose around 50 bytes, but the trade off with increased quality and app program memory size makes it worth it.

    To make it easier to scan, I decreased the maximum size to 1.9KB prior to the replace algorithm.

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

Sidebar

Related Questions

I am making my first android application, and it requires switching between activities very
I'm doing a very small windows application consisting of just a single executable. As
So I have an application which requires very fast access to large volumes of
I am doing a very small online store application in PHP. So I have
I'm currently developing a heavily multi-threaded application, dealing with lots of small data batch
How to obfuscate code quickly. I have a very small Java App and I
Hi i'm developing an application which requires me to run some bash code is
My application requires Adobe Flash player to install. So if you are trying to
My application requires that I have access to the file system. Regardless if the
My application requires the .NET Framework version 3.5. I recently ran into a customer

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.