Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find image file size in chrome inspect element

By using Google Chrome's inspect element, I can see image dimensions easily. like it is explained in Google's website.

But I want to know the image file size too (size, like 50kb). I know that I can first download and then look at the image file size on my computer, but I don't think it is the best way.

I want to know if I can find out about image file size in Chrome's inspect elements.

like image 609
Peyman Avatar asked Sep 12 '20 10:09

Peyman


People also ask

How do I see the size of an image in inspect element?

Right-click the image whose size you want to know and select Inspect. View your image's width and height displayed in the Chrome DevTools. (Note, the first number is always the width). If your image is not highlighted by default, click the inspect element button.

How do I see file size in Chrome?

Open Developer tools ( Ctrl + Shift + I or Settings Icon at the top-right of your browser window => Tools => Developer tools ) on the needed page, switch to the Network tab and reload page. In the Size column you'll see the size of everything loaded (Documents, Stylesheets, Images, Scripts, ...).

How do I find out the size of an image?

You can also right-click on an image & choose properties from the drop-down menu. A new window will appear with several tabs. You'll click the details tab, and there you'll find you image size and dimensions.

How do I find the size of an image in chrome?

Right-click the image whose size you want to know and select Inspect. View your image's width and height displayed in the Chrome DevTools. (Note, the first number is always the width). If your image is not highlighted by default, click the inspect element button and hover over the image.

How to find the image URL from Inspect Element?

Here is what you need to do if you want to know the image URL from the inspect element: Get to the devTools part by hitting F12. Click on Elements in the top menu. It will show the page source. Hover your mouse over the image you are interested. When you hover over the various images, it will result in a popup of the images in a thumb size.

What is the Inspect Element in Google Chrome?

The Inspect Element feature of the Google Chrome browser is a powerful yet easy-to-use tool. It’s an important part of Chrome Developer Tools that you can use to check the source code of any website. But it doesn’t end there.

How do I view the width and height of an image?

View your image's width and height displayed in the Chrome DevTools. (Note, the first number is always the width). If your image is not highlighted by default, click the inspect element button and hover over the image. Was this helpful? How can we improve it?


1 Answers

You can either find the file in sources or network tab.

For example, I inspect your avatar and see this url:

https://lh6.googleusercontent.com/-6jIAe62Q10s/AAAAAAAAAAI/AAAAAAAAABw/kRBVixTmLmk/photo.jpg?sz=128

I can look it up in the sources tab by finding the appropriate domain. The file size is listed at the bottom, under the preview.

Developer tools, Sources tab, Image file selected in the left pane according to the url. The size is displayed at the bottom of the middle section.

The sizes are also displayed in the network tab but it has to be open before the image loads, otherwise it doesn't capture. Here it is filtered to show only images:

Developer tools, Network tab, filtered to show images, the size for all files is visible in the Size column.

like image 157
Džuris Avatar answered Oct 19 '22 01:10

Džuris