Question The image appears larger than its original size in web browser ?

Mar 7, 2024
3
0
10
The original PNG image is 1294px wide, but when I view it on the website, the image becomes larger. Even when I open the image in another tab (so no HTML) it's still bigger, so it can't be an HTML or CSS setting.

When I open it in an image viewer or Photoshop, the size is ok.

Using the developer tools, hovering over the image indicates that the image is actually 1294px.
The problem consistently occurs on Firefox, Chromium, and Chrome.

The zoom settings in the browser are at 100%, so that's not the cause.

Windows display settings are also at 100%...no scaling

In an image you can see the difference between the measurement with Photoshop rulers and the one with a Chrome extension that measures the screen...

Since I use photoshop to design the layout of my site, then when I bring the images into wordpress and open the
site in the browser, everything does not match....

m1Wt0p.png


p2muSo.jpg
 
I don't understand what you mean...I created an image in Photoshop 96 dpi 800 x 600 and this is the result..

2zlr5a.png
 
ok, if I resize an image in Photoshop to 130 pixels/inch the dimensions seem the same. Obviously I then have to resize them to 96 before saving them.
It's not ideal but for the moment it can be a solution to match the design of the site in photoshop with that in wordpress.
I'll try to do a test on another computer as soon as I can, to see if it's the same

STUqKV.png