Need help from Photoshop Gurus

itsme220

Senior Member
Joined
Sep 1, 2006
Messages
620
Reaction score
0
Greetings :)

I have a Full page graphics image in home page. Currently the

File size =968K
The Image size is as per below

2q2050i.jpg


1) What is the actual size of image we should maintain?

I read in somewhere..

Some Examples (as of original writing)

Here are some examples of bigger corporation websites using full screen background images:

1400 x 875 –1.6 ratio– Patagonia
1920 x 1080 –1.78 ratio– General Motors
1920 x 1165 –1.65 ratio– Zara Clothing
Here are a few full width, partial height implementations:
2560 x 1707 –1.5 ratio– Burberry
1800 wide — Burger King
1600 wide — Nike
1440 wide — Adidas

If I change my resolution from 300 Pixels/Inch to 96 Pixels/Inch the image size reduced.This may affect the full page home image quality and display area.

2gtubsi.jpg


1) What should be the settings to reduce the file size without compromising image dimension(width & height)?

2) What is the actual image width and height for full size Home page design?


Thank you :)
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
Greetings :)

I have a Full page graphics image in home page. Currently the

File size =968K
The Image size is as per below

2q2050i.jpg


1) What is the actual size of image we should maintain?

I read in somewhere..



If I change my resolution from 300 Pixels/Inch to 96 Pixels/Inch the image size reduced.This may affect the full page home image quality and display area.

2gtubsi.jpg


1) What should be the settings to reduce the file size without compromising image dimension(width & height)?

2) What is the actual image width and height for full size Home page design?


Thank you :)

filesize is determined by the total number of pixels, the file format used to store, the number of colours representation per pixel, the compression technique used, the number of layers and number of channels.

The dots per inch, line per inch and similar measurement will not affect the file size. It is just an indication for the output device to respect.

Previously we will normally use 72dpi for monitor, but these days we use 96dpi since screen are more dense and for Retina display, it is 2x more dense.

In actual case, you do not use these dpi as absolute, just indicative because it truth, that dpi number does not really equate to real physical metrics.

If you want to maintain the same image dimension but smaller file, either use less colours representation per pixel, or use a file format that support lossless or lossy compression. Lossy compression yield much higher compression at the expense of losing real data, and the lower the quality setting, the more information you lose. This is what the most popular JPEG is doing. JPEG had lossless compression too, but more seldom used :)
 
Last edited:

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
UPDATE

Just more information since now I am in front of my comp.

First, as your screenshots shows 5MB is just the raw calculation without taking into consideration of the compression and storage technique.

It is simply a calculation of 1900(W) * 9209(H) * 3(bytes for RGB) / 1024 / 1024 [MB]

Your file size is a lot smaller which indicate that you are using a lossy compression for storage.

The simpler way of course is just set a low quality setting during compression, but the side effect is the introduction of more and more visual artifacts. if you want to reduce the artifacts while compression, just apply a noise reduction filter or smooth out your image. The filter alone will reduce in the file size if less is needed to represent the noise(or minor details) found in the image.

See the Nikon RAW sample I have used below and you will understand

A screenshot of the original RAW
mjsumx.png


Notice when I try to compress it at highest quality, it is going to end up as 3MB.
I then try to smooth out the details using Noiseware NR filter, notice how much details are originally found in the photograph and when I use an extreme NR setting, a lot of the details are removed ?
2gy7zf4.png


Then when I use the same settings to compress again, and now it dropped to 2MB.
2lq0ck.png


So the quality of your source matters a lot. If yours is not a photograph and just graphics design such as vector art converted into image, then the treatment will be different.

Courtesy to https://www.rawsamples.ch/index.php/en/nikon
 
Last edited:

itsme220

Senior Member
Joined
Sep 1, 2006
Messages
620
Reaction score
0
Thank you DavidKW :)

Nice of you taking time to explain in greater details.
According to the link https://www.webmalama.com/the-best-full-screen-background-image-sizes-for-web-design/

The Best Full Screen Background Image Sizes for Web Design


Here are some examples of bigger corporation websites using full screen background images:

1400 x 875 –1.6 ratio– Patagonia
1920 x 1080 –1.78 ratio– General Motors
1920 x 1165 –1.65 ratio– Zara Clothing
Here are a few full width, partial height implementations:
2560 x 1707 –1.5 ratio– Burberry
1800 wide — Burger King
1600 wide — Nike
1440 wide — Adidas

Most popular websites uses lowest possible width is 1440 and 1600.

I am using a sample image (Test1.jpg) for reference. Image is shared here

The File Size is 1793K.We can not use such a large file size in home page(Full page image)

The image size is

1zol2ts.png


This image has only 72 DPI resolution.

I googled and found I should save using photoshop Save For Web Option

The image size get drastically reduced.The quality is set to 30. Width 1900 Height 900

Save for Web 30% Quality
dcvs75.png


The file size reduced from 1793KB to 260KB when I use Save for Web option.
Same original Image if I export as Jpeg, 50% quality, the file size even further reduced to 226Kb. which is better than Save for web option

Export As, 50% quality

20z2ss6.png


1) If I want to have Full home page design, we need to keep 96 DPI and Width of 1900 x height of 900. Am I correct? or different Width & height
2) Can I simply change the resolution from 72 DPI to 96 DPI and let photoshop uses it own algorithm to improve resolution enhancement?
3). What the best option? Save for Web with 30% Quality or Export as Jpeg with 50% quality?

Thank you once again for strong constructive contributor to HWZ forum and educate us. :)
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
1) If I want to have Full home page design, we need to keep 96 DPI and Width of 1900 x height of 900. Am I correct? or different Width & height

2) Can I simply change the resolution from 72 DPI to 96 DPI and let photoshop uses it own algorithm to improve resolution enhancement?

I must stress again, discard your notion of DPI. It is not really that relevant to web because DPI is not fixed from one display to another. When you see the media query using it, they can using it to differentiate devices and to present different image renditions. These days between we have normal DPI displays and retina displays and with the mixture of mobile devices of various high resolution displays, that's why the DPI is used.

Even so, when you have 1900pixels across a display as large as 32inch or as small of 4inch. To fill up the display horizontally, you will need 1900pixels across. It doesn't matter if the image is 300dpi or 72dpi. I hope I make this very clear. So please throw the dpi concept out of the window. That's for hardcopies like your photo print out when you are talking about metrics like centimetres, inch, feet, hectare etc. Suppose if I want a 4R(4x6in) photograph and I want to print at 300dpi, then the image I need should have 1800 pixels across in landscape.

In the digital world presentation, DPI is not really applicable in this matter. Read this http://stackoverflow.com/questions/...-or-is-it-irrelevant-when-building-for-retina

3). What the best option? Save for Web with 30% Quality or Export as Jpeg with 50% quality?

Save for web is just a convenient tool for you to choose in various web raster file format and then manipulate the settings and you can preview the effect and see if the filesize fits your requirement. It does not do anything different from if you, for eg: change the RGB model to an indexed RGB model and then change the colour index table from 256(8bits) to 16bits(4bits).


Allow me to explain further. Even if your screen is 1900px across, it doesn't mean you need to use a 1900px in width image. You can scale the image at client side to whatever size you wish and let client interpolation take place. If you image is only 190px, and you need to scale across 1900px in the browser, and it means 10x scaling. Obviously, your image will look blur. But if your image is just 950px across, then the scaling is only 2x and 2x on the mobile is actually not obvious at all. Even in desktop, it will only only slightly blur, not that worse. It's like viewing 720p video vs 1080p video on your desktop. In exchange, you get not 2x less pixels, but in fact 4x less pixels (assuming image aspect ratio is maintained). This means, the bytes you saved in pixel resolution gives you the ability to compress less.

The more you compress your image using JPEG technique, the more original data you lose. For different image type, the effect can be visually significant. The most obvious one is obviously lose in details, which can be alright for some image usage. Compressing too aggressively can result in noise-like artefacts generated in sharp edges areas. Blocky artefacts are also created as a result due to discontinuity in the macro blocks within JPEG.

You can observe these effects as such
compression-glasses.jpg


Rather you want to just have a lower resolution image with higher quality image, so the browser will scale up and create a slightly blur but pleasing looking image.

For mobile, because screen asset is physically smaller. That's why higher compression artefacts and blurring is less pronounce. Hence you are encouraged to have different image size and quality rendition to tackle mobile devices.

Allow me to show you a demonstration of how different size images of same quality compression looks when scaled across the same browser width.

The images below will show 4 files from top to bottom - #1-1900px, #2-1425px, #3-950px, #4-475px
Code:
$ ls -lh Test*.jpg
-rw-r--r--@ 1.8M Aug 21 02:22 Test1900.jpg
-rw-r--r--@ 1.1M Aug 21 02:24 Test1425.jpg
-rw-r--r--@ 511K Aug 21 02:24 Test950.jpg
-rw-r--r--@ 140K Aug 21 02:25 Test475.jpg

Code:
<html>
  <head>
    <style type="text/css">
    img {
      width: 100%;
      clear: both;
      border: 1px solid red;
    }
    </style>
  </head>
  <body>
    <img src="./Test1900.jpg">
    <img src="./Test1425.jpg">
    <img src="./Test950.jpg">
    <img src="./Test475.jpg">
  </body>
</html>

#1 and #2
2k0nqe.png


#2 and #3
r7rb.png


#3 and #4
oh7als.png


You can see from the filesize, it dropped alot with MAXIMUM QUALITY setting. If you take a look at image #3 which is 950px, it is still looking very acceptable. This is using a browser with of 1000px.

Even if I will view it across my desktop at 1900px for a 1000px, it still looks pretty okay.
2q9a0r4.png


If you want to compress further, you can do so, but take note of the JPEG artifacts introduced in the process. For your image, I think a compression of the 1900px at 40% is acceptable. Lower and the artefacts will be too obvious.

If I scale down the image to 950px, I can still compress at a good quality of 80% with a resultant file size of 208KB

There are more you can do actually. The image you have shared has pretty obvious chromatic noise. Use a noise reduction tool to further reduce the chroma noise and you can achieve better quality with smaller filesize. This will just gain you marginal benefits though.

I hope what I have explained give you better understanding to image size and compression quality topics.
 
Last edited:

itsme220

Senior Member
Joined
Sep 1, 2006
Messages
620
Reaction score
0
I hope what I have explained give you better understanding to image size and compression quality topics.



21j7w1y.jpg



Thank you davidkw. I salute you for your sincere help and explain in greater details. This not only helps me others who are keen to know the fundamentals.
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
Thank you davidkw. I salute you for your sincere help and explain in greater details. This not only helps me others who are keen to know the fundamentals.

You are welcome. As long as it helps :)
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top