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

  • Home
  • SEARCH
  • 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 6701073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:53:24+00:00 2026-05-26T06:53:24+00:00

Is there an image library available that allows a user to extract pixels from

  • 0

Is there an image library available that allows a user to extract pixels from a png file that has been loaded onto disk without decompressing it?

So I have 100k 8bit images of size 512×512 where each one is about 10kb when in png format. This means that I would only need 1GB of RAM to store all the images at runtime for a program Im writing.

Is it possible to efficiently retrieve pixels from an image like this?
I.e. lets say I have an array images where images[i] references a png image that has been loaded but not uncompressed to RAM (is this what happens when you load a png image?)

Then ideally I would like to write something like

pixel = images[i].getPixel(x,y);

Anyone know if this is possible? Which library? Where my assumptions are false?

  • 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-26T06:53:25+00:00Added an answer on May 26, 2026 at 6:53 am

    I don’t think you’ll be able to get a pixel without decompressing at least the preceding part of the image. When you open a file, it will just point to the compressed data on disk. When you run it through a PNG library, it will be decompressed.

    Your best bet, I think, and the canonical library for reading and writing PNGs, is libpng. It provides great low-level access to image data and metadata, and is probably going to be the fastest/most efficient option. It allows you to decompress the data row by row (and perhaps chunk by chunk–I can’t remember), so you can probably decompress until you get your pixel, then toss the decompressed data and move to the next image.

    The downside is that it’s probably not as programmer friendly as some other options. The documentation is comprehensive to the point of being tedious, IMO, but there may be simpler tutorials out there. On the other hand, you’ll probably need all the details in the manual to accomplish what the minimal decompression you’re going for. It will also help explain the PNG file format so you can better manage data down to the chunk level.

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

Sidebar

Related Questions

Is there any alternative image manipulation library for .net? I would prefer something that
Is there any c# library that handles lossless conversion between different image formats?
Is there a standard mechanism or known library that will convert .png images to
Is there a library/simple way to flip an image? Flip image like this: AABBCC
Is there an open source .NET library that can render PDFs to images (for
I need to extract and decode barcodes and text from images. Is there any
Is there a freely available library to create a MPEG (or any other simple
Is there any open-source library to replace proprietary Intel Image Processing Library? At first
I am writing an open-source library to extract image metadata and store as XMP
I find the codeigniter image library is very useful, lot of features there. Only

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.