Google chrome takes 1.1 gb of memory to download and load a large image (24000x12000) of size 17.2 mb

How does google chrome browser internally work while downloading and processing images?

When one tries to open this image then google chrome task manager shows 1.1 GB of memory footprint(do make sure you use disabled cache while replication) While loading large image, memory footprint

After the image is downloaded and loaded then the memory is released and it drops to 77 MB of memory footprint After image load and download

I couldn't figure out any reason for such high memory consumption. Neither what chrome internally does that consumes such huge memory.

I'm looking for any relevant answer or blog which can help me understand the internal architecture or design which guides chrome to behave such a way.

1 answer

  • answered 2018-08-13 11:04 jmrk

    JPEG is a compressed image storage format. For displaying the image, an application has to uncompress it in memory. A reasonable expectation is 4 bytes per pixel (one byte for each color channel), so your image takes 24000*12000*4 bytes = 1.07 GB.