{"id":58,"date":"2026-01-10T19:32:07","date_gmt":"2026-01-11T00:32:07","guid":{"rendered":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/?post_type=chapter&#038;p=58"},"modified":"2026-01-11T21:32:45","modified_gmt":"2026-01-12T02:32:45","slug":"chapter-3-images","status":"publish","type":"chapter","link":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/chapter\/chapter-3-images\/","title":{"raw":"Chapter 5 \u2022 Images","rendered":"Chapter 5 \u2022 Images"},"content":{"raw":"<h2>Image Resolution<\/h2>\r\nWith photographic images on the web, designers walk a fine line between image quality and file size. Digital bitmapped photos are made up of a matrix of microscopic colored squares, or picture elements (pixels).\r\n\r\nBitmapped images have larger file sizes than vector graphic illustrations and are \"use-specific,\" meaning their resolution should be set correctly for the intended reproduction size. Excessively high resolutions and large photos reduce download speed, while too-small images may show \"pixelization\" in which individual pixels can be seen and create a \"stair-stepped\" effect.\r\n\r\nWhen thinking about the appropriate resolution of bitmapped images, consider the reproduction size you want to use. E.g., if you have a fixed-width page, 1024px wide, a good idea is to set the resolution of full-width images to double that number, or 2048px, to leave room for future enlargement. Likewise a half-width image would be 512px wide and could be sized to 1024px width.\r\n\r\n[caption id=\"attachment_60\" align=\"aligncenter\" width=\"1024\"]<a href=\"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-content\/uploads\/sites\/449\/2026\/01\/wong-sizes.jpg\"><img src=\"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-content\/uploads\/sites\/449\/2026\/01\/wong-sizes.jpg\" alt=\"\" width=\"1024\" height=\"683\" class=\"wp-image-60 size-full\" \/><\/a> Figure 3-1. This original image by Stephen Wong on Unsplash measured 5472\u00d73648px and is too big for a normal fixed-width page. Insets show the relative size of the image at the resolutions written on them.[\/caption]\r\n<table style=\"margin: 0 auto\">\r\n<tbody>\r\n<tr>\r\n<th style=\"text-align: center\" colspan=\"2\">Resolutions and File Sizes for the Balloon Image<\/th>\r\n<\/tr>\r\n<tr>\r\n<th style=\"font-weight: normal\"><em>resolution<\/em><\/th>\r\n<th style=\"font-weight: normal\"><em>file size<\/em><\/th>\r\n<\/tr>\r\n<tr>\r\n<td>5472\u00d73648<\/td>\r\n<td>1.7 MB<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>2400\u00d71600<\/td>\r\n<td>291 K<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>1920\u00d71280<\/td>\r\n<td>194 K<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>640\u00d7426<\/td>\r\n<td>37 K<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h2>Procedure<\/h2>\r\nAssume you want a banner image that's 1024px wide. You want an image size that's 1024 to 2048px wide, depending on whether you want to leave open the option to reproduce the image at a larger size. You download an image or take a photo similar to the balloon image above, which originally was 5472px wide\u2014way too big for its intended use.\r\n<ol>\r\n \t<li>Open the image in Photoshop, Preview, or other image-editing program.<\/li>\r\n \t<li>Set the resolution to 1024 or 2048px.<\/li>\r\n \t<li>Resave in JPEG or PNG (for transparency) format.<\/li>\r\n<\/ol>\r\n<h2>Image Formats for the Web<\/h2>\r\nImages for the web should be in a compressed format such as JPG, PNG, or GIF. Three key considerations are:\r\n<ul>\r\n \t<li>the bit depth, or number of colors, that the image can address. Eight-bit images can address 256 colors (2<sup>8<\/sup>), while 16-bits support 16.7 million colors.<\/li>\r\n \t<li>whether transparency is required, e.g., to delete the background<\/li>\r\n \t<li>color mode should be RGB or grayscale, not CMYK or indexed color<\/li>\r\n<\/ul>\r\n<table style=\"border-collapse: collapse;width: 100%;height: 104px\" border=\"0\">\r\n<tbody>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;height: 15px\"><em>Image Format<\/em><\/td>\r\n<td style=\"width: 25%;height: 15px\"><em>Transparency<\/em><\/td>\r\n<td style=\"width: 50%;height: 15px\"><em>Comments<\/em><\/td>\r\n<\/tr>\r\n<tr style=\"height: 14px\">\r\n<td style=\"width: 25%;height: 14px\">JPG<\/td>\r\n<td style=\"width: 25%;height: 14px\">no<\/td>\r\n<td style=\"width: 50%;height: 14px\">compressed format for the web<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;height: 15px\">PNG 8- or 16-bit<\/td>\r\n<td style=\"width: 25%;height: 15px\">yes<\/td>\r\n<td style=\"width: 50%;height: 15px\">compressed format, supports transparency<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;height: 15px\">GIF 8-bit<\/td>\r\n<td style=\"width: 25%;height: 15px\">yes<\/td>\r\n<td style=\"width: 50%;height: 15px\">compressed format, also supports transparency<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;height: 15px\">TIFF<\/td>\r\n<td style=\"width: 25%;height: 15px\">no<\/td>\r\n<td style=\"width: 50%;height: 15px\">uncompressed format for printing<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px\">\r\n<td style=\"width: 25%;height: 15px\">PSD<\/td>\r\n<td style=\"width: 25%;height: 15px\">yes<\/td>\r\n<td style=\"width: 50%;height: 15px\">uncompressed format for printing<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h2>Reference Document<\/h2>\r\nHow-to Images: rich-adams.net &gt; Completed Tutorials &gt; Home &gt; <a href=\"https:\/\/adamsr12.github.io\/grc365\/how-to-images.html\" target=\"_blank\" rel=\"noopener\">How-to Images<\/a> (link at bottom of page)","rendered":"<h2>Image Resolution<\/h2>\n<p>With photographic images on the web, designers walk a fine line between image quality and file size. Digital bitmapped photos are made up of a matrix of microscopic colored squares, or picture elements (pixels).<\/p>\n<p>Bitmapped images have larger file sizes than vector graphic illustrations and are &#8220;use-specific,&#8221; meaning their resolution should be set correctly for the intended reproduction size. Excessively high resolutions and large photos reduce download speed, while too-small images may show &#8220;pixelization&#8221; in which individual pixels can be seen and create a &#8220;stair-stepped&#8221; effect.<\/p>\n<p>When thinking about the appropriate resolution of bitmapped images, consider the reproduction size you want to use. E.g., if you have a fixed-width page, 1024px wide, a good idea is to set the resolution of full-width images to double that number, or 2048px, to leave room for future enlargement. Likewise a half-width image would be 512px wide and could be sized to 1024px width.<\/p>\n<figure id=\"attachment_60\" aria-describedby=\"caption-attachment-60\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-content\/uploads\/sites\/449\/2026\/01\/wong-sizes.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-content\/uploads\/sites\/449\/2026\/01\/wong-sizes.jpg\" alt=\"\" width=\"1024\" height=\"683\" class=\"wp-image-60 size-full\" srcset=\"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-content\/uploads\/sites\/449\/2026\/01\/wong-sizes.jpg 1024w, https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-content\/uploads\/sites\/449\/2026\/01\/wong-sizes-300x200.jpg 300w, https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-content\/uploads\/sites\/449\/2026\/01\/wong-sizes-768x512.jpg 768w, https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-content\/uploads\/sites\/449\/2026\/01\/wong-sizes-65x43.jpg 65w, https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-content\/uploads\/sites\/449\/2026\/01\/wong-sizes-225x150.jpg 225w, https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-content\/uploads\/sites\/449\/2026\/01\/wong-sizes-350x233.jpg 350w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption id=\"caption-attachment-60\" class=\"wp-caption-text\">Figure 3-1. This original image by Stephen Wong on Unsplash measured 5472\u00d73648px and is too big for a normal fixed-width page. Insets show the relative size of the image at the resolutions written on them.<\/figcaption><\/figure>\n<table style=\"margin: 0 auto\">\n<tbody>\n<tr>\n<th style=\"text-align: center\" colspan=\"2\">Resolutions and File Sizes for the Balloon Image<\/th>\n<\/tr>\n<tr>\n<th style=\"font-weight: normal\"><em>resolution<\/em><\/th>\n<th style=\"font-weight: normal\"><em>file size<\/em><\/th>\n<\/tr>\n<tr>\n<td>5472\u00d73648<\/td>\n<td>1.7 MB<\/td>\n<\/tr>\n<tr>\n<td>2400\u00d71600<\/td>\n<td>291 K<\/td>\n<\/tr>\n<tr>\n<td>1920\u00d71280<\/td>\n<td>194 K<\/td>\n<\/tr>\n<tr>\n<td>640\u00d7426<\/td>\n<td>37 K<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Procedure<\/h2>\n<p>Assume you want a banner image that&#8217;s 1024px wide. You want an image size that&#8217;s 1024 to 2048px wide, depending on whether you want to leave open the option to reproduce the image at a larger size. You download an image or take a photo similar to the balloon image above, which originally was 5472px wide\u2014way too big for its intended use.<\/p>\n<ol>\n<li>Open the image in Photoshop, Preview, or other image-editing program.<\/li>\n<li>Set the resolution to 1024 or 2048px.<\/li>\n<li>Resave in JPEG or PNG (for transparency) format.<\/li>\n<\/ol>\n<h2>Image Formats for the Web<\/h2>\n<p>Images for the web should be in a compressed format such as JPG, PNG, or GIF. Three key considerations are:<\/p>\n<ul>\n<li>the bit depth, or number of colors, that the image can address. Eight-bit images can address 256 colors (2<sup>8<\/sup>), while 16-bits support 16.7 million colors.<\/li>\n<li>whether transparency is required, e.g., to delete the background<\/li>\n<li>color mode should be RGB or grayscale, not CMYK or indexed color<\/li>\n<\/ul>\n<table style=\"border-collapse: collapse;width: 100%;height: 104px\">\n<tbody>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;height: 15px\"><em>Image Format<\/em><\/td>\n<td style=\"width: 25%;height: 15px\"><em>Transparency<\/em><\/td>\n<td style=\"width: 50%;height: 15px\"><em>Comments<\/em><\/td>\n<\/tr>\n<tr style=\"height: 14px\">\n<td style=\"width: 25%;height: 14px\">JPG<\/td>\n<td style=\"width: 25%;height: 14px\">no<\/td>\n<td style=\"width: 50%;height: 14px\">compressed format for the web<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;height: 15px\">PNG 8- or 16-bit<\/td>\n<td style=\"width: 25%;height: 15px\">yes<\/td>\n<td style=\"width: 50%;height: 15px\">compressed format, supports transparency<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;height: 15px\">GIF 8-bit<\/td>\n<td style=\"width: 25%;height: 15px\">yes<\/td>\n<td style=\"width: 50%;height: 15px\">compressed format, also supports transparency<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;height: 15px\">TIFF<\/td>\n<td style=\"width: 25%;height: 15px\">no<\/td>\n<td style=\"width: 50%;height: 15px\">uncompressed format for printing<\/td>\n<\/tr>\n<tr style=\"height: 15px\">\n<td style=\"width: 25%;height: 15px\">PSD<\/td>\n<td style=\"width: 25%;height: 15px\">yes<\/td>\n<td style=\"width: 50%;height: 15px\">uncompressed format for printing<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Reference Document<\/h2>\n<p>How-to Images: rich-adams.net &gt; Completed Tutorials &gt; Home &gt; <a href=\"https:\/\/adamsr12.github.io\/grc365\/how-to-images.html\" target=\"_blank\" rel=\"noopener\">How-to Images<\/a> (link at bottom of page)<\/p>\n","protected":false},"author":6,"menu_order":5,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-58","chapter","type-chapter","status-publish","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-json\/pressbooks\/v2\/chapters\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-json\/wp\/v2\/users\/6"}],"version-history":[{"count":12,"href":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-json\/pressbooks\/v2\/chapters\/58\/revisions"}],"predecessor-version":[{"id":76,"href":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-json\/pressbooks\/v2\/chapters\/58\/revisions\/76"}],"part":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-json\/pressbooks\/v2\/chapters\/58\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-json\/pressbooks\/v2\/chapter-type?post=58"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-json\/wp\/v2\/contributor?post=58"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/webdesign2\/wp-json\/wp\/v2\/license?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}