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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:02:22+00:00 2026-06-14T07:02:22+00:00

This is sort of an architectural/conceptual question regarding how a system (specifically a web

  • 0

This is sort of an architectural/conceptual question regarding how a system (specifically a web browser) handles compressed images.

We’re dealing with an “image gallery” web app at work that has eleven 1920×1080 images on a page that you can swipe through on an iPad. We’re finding it to be extremely slow and I’m almost certain it’s because the iPad is having trouble with having so many large images in memory and on the page at the same time.

Some have suggested we compress the images more; they’re currently PNGs, and they want to recompress them to JPG. Obviously the file size will be smaller, but unless the iPad (and others) have a way of directly rendering a compressed image to the screen (frame-buffer), I’d think they’d have to decompress the image into memory before rendering. In that case, it seems like the compression wouldn’t affect the performance of rendering them. (Other than the slight added processing power of decompressing them “more”.)

Is my understanding and assumptions correct? Should we resize, or recompress the images?

Thanks

More information- read this before you tell me “yeah compressed images are smaller” – I’m a developer, not a user:

Using less space is not the same as using less memory. We’re not having a problem with storage, we’re having a problem with performance of rendering. The code is simple and just animates between one div and the next to give the “swipe” effect to the gallery.

When we remove the images from the equation, the performance is fine; so I’m fairly certain the bottleneck is the images, not the code.

The question being asked is “does compression make the image use less memory” because others want to compress the images more to gain performance. As far as I understand the architecture of compression though, you still have to decompress it to its original size in memory to use it and thus the compression does not affect memory usage; only storage and transmission.

  • 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-14T07:02:24+00:00Added an answer on June 14, 2026 at 7:02 am

    Does compressing an image make the image use less memory?

    No, the image will use the same amount of memory (alas pixels) if displayed on a monitor for example.

    Compression applies to the container of the image, usually a file or a temporary memory buffer, but on screen it uses the same.

    This is because you need to allocate each pixel to be displayed.

    For an 1920×1080 image in 24-bits it will use 1920 x 1080 x 3 bytes (one byte for each color component in RGB -> 1 byte = 8 bits), or 6,220,800 bytes (roughly 6 mb).

    Should you re-compress?

    It will not take less space in memory when displayed but can be faster to load into memory. But that’s about it.

    Now the application need to decide if it will decompress it only when shoing the image (which will cause a lag) or decompress all and be able to display them instantly. This decision is application based so you will need to the check the specific application.

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

Sidebar

Related Questions

I know that this sort of question has been asked here before, but still
I asked this sort of question before ( Application fails to dynamically _re_load JavaScript
This question is about making an architectural choice prior to delving into the details
This is a pretty straightforward architectural question, however it's been niggling at me for
This is question about MVC web-app architecture, and how it can be extended to
This is my first time doing this sort of project so apologies if the
I am mocking in this sort of situation: class A { public IB B
I have this sort of format asp.net MVC View -> Service Layer -> Repository.
I know this sort of code is not best practice, but nevertheless in certain
The UNIX sort command can sort a very large file like this: sort large_file

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.