{"id":1202,"date":"2016-04-15T10:04:42","date_gmt":"2016-04-15T10:04:42","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/?p=1202"},"modified":"2016-04-16T20:21:50","modified_gmt":"2016-04-16T20:21:50","slug":"national-5-media-types-revision","status":"publish","type":"post","link":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/2016\/04\/15\/national-5-media-types-revision\/","title":{"rendered":"National 5 &#8211; Media Types (Revision)"},"content":{"rendered":"<h3><strong>Standard file formats:<\/strong><\/h3>\n<ul>\n<li><strong>Text<\/strong>:\n<ul>\n<li><strong>txt<\/strong> &#8211; only text stored no formatting<\/li>\n<li><strong>rtf<\/strong> &#8211; Rich Text Format, text and formatting stored, new standard allow for the storing of embedded images.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Audio<\/strong>:\n<ul>\n<li><strong>wav<\/strong> &#8211; uncompressed audio<\/li>\n<li><strong> mp3<\/strong> &#8211; compressed audio<\/li>\n<\/ul>\n<\/li>\n<li><strong>Graphics<\/strong>:\n<ul>\n<li><strong> jpeg<\/strong> &#8211; used for photographs due to strong compression<\/li>\n<li><strong> bmp<\/strong> &#8211; uncompressed<\/li>\n<li><strong>gif<\/strong> &#8211; used for animations and drawings, few colours<\/li>\n<li><strong>png<\/strong> &#8211; compressed with partial transparency.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Video<\/strong>:\n<ul>\n<li><strong>mp4<\/strong> &#8211; compressed<\/li>\n<li><strong>avi<\/strong> &#8211; uncompressed<\/li>\n<\/ul>\n<\/li>\n<li><strong>Pdf<\/strong>: Portable Document Format &#8211; used to retain the look and format of a document across difference platforms. Document always looks the same regardless of screen size, fonts etc.<\/li>\n<\/ul>\n<h3>Factors affecting file size and quality<\/h3>\n<ul>\n<li><strong>Resolution<\/strong> &#8211; the number of pixels used to make up the picture.<\/li>\n<li><strong>Colour Depth<\/strong> &#8211; the number of possible colours used to make up a pixel. The more possible colours the greater the file size.<\/li>\n<li><strong>Sampling Rate<\/strong> &#8211; in sound files the number of recordings taken per second., the greater the sample rate the higher the quality and file size.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Calculation of file size for colour bitmap.<\/h3>\n<p style=\"padding-left: 30px\"><em>Horizontal Pixels =\u00a0image width x resolution(DPI)<\/em><\/p>\n<p style=\"padding-left: 30px\"><em>Vertical Pixels = image height x resolution(DPI)<\/em><\/p>\n<p style=\"padding-left: 30px\"><em>Number of pixels =\u00a0Horizontal Pixels x Vertical Pixels<\/em><\/p>\n<p style=\"padding-left: 30px\"><em>File Size = Number of pixels x colour depth (in bits)<\/em><\/p>\n<p><strong>Example 1<\/strong><\/p>\n<p><a href=\"https:\/\/blogs.glowscotland.org.uk\/nl\/public\/ColtnessHS-ComputingScience\/uploads\/sites\/12638\/2016\/04\/N5G.png\"><img decoding=\"async\" data-attachment-id=\"1214\" data-permalink=\"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/2016\/04\/15\/national-5-media-types-revision\/n5g\/\" data-orig-file=\"https:\/\/blogs.glowscotland.org.uk\/nl\/public\/ColtnessHS-ComputingScience\/uploads\/sites\/12638\/2016\/04\/N5G.png\" data-orig-size=\"293,293\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"N5G\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/blogs.glowscotland.org.uk\/nl\/public\/ColtnessHS-ComputingScience\/uploads\/sites\/12638\/2016\/04\/N5G.png\" data-large-file=\"https:\/\/blogs.glowscotland.org.uk\/nl\/public\/ColtnessHS-ComputingScience\/uploads\/sites\/12638\/2016\/04\/N5G.png\" class=\"alignnone size-full wp-image-1214\" src=\"https:\/\/blogs.glowscotland.org.uk\/nl\/public\/ColtnessHS-ComputingScience\/uploads\/sites\/12638\/2016\/04\/N5G.png\" alt=\"N5G\" width=\"293\" height=\"293\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/nl\/public\/ColtnessHS-ComputingScience\/uploads\/sites\/12638\/2016\/04\/N5G.png 293w, https:\/\/glow-prod-nl.s3.eu-west-1.amazonaws.com\/nl\/public\/ColtnessHS-ComputingScience\/uploads\/sites\/12638\/2016\/04\/N5G-150x150.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&amp;X-Amz-Security-Token=IQoJb3JpZ2luX2VjEKn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCWV1LXdlc3QtMSJGMEQCIAJrqSA6M7shNsKZ9peBvDJDSfz0xjqOh%2BJbQQBz2mPMAiAAqfr4xPNGXtpExK3DqWECMsTQUDmWr4mCaeNgmDqHXiq5BQhyEAUaDDI3MzU3MDE5NTQzMyIMO9bSO3EGl80A4JiGKpYF1KvikEuuF0C%2FgCmgqOPgOa7uSCglF9z7SZsoqT9S8g8ckTMTFBsN0N9Pw6YDGA4qRnDCbO%2F%2BoaSWdFCX4JJa1O3I58sWdqtxn8gXNgBQF4n75%2BwqX0hqyi7bZ1plDxqKVcSdMHg4lxLNuUXYuBby1Q%2FVHaZghbeFA%2BRdYGVyJDZ%2FVQ4cuafnuGV52CX9hy%2BGwf6fBo53rihdLzX0RUQ4N1wHFnuOXR0z4PPyPmiiKziCHBLod71P7vajEcqTO6xSmFFX43lcsE6yBloxxg7mUttoB2nvs8bbV%2F6ceVnRT%2FmpnYFhpbuU3y%2FMr0xA2JE4toyVNa22SBEFwqHgjiy257K4FBKSbqzoXiCxwXtf1xGIUyiw8xm2BvQyNX6TUdOMltYZstpyshwFyjWWxlhCFN4veVtqBqHVBddRapu57J%2FPJ2pU2aQjctuMtE%2Brux8DrP28DNHW78F5LxS%2BrUxe7ctGRZ7ALsqys8cefwrq1%2FJ0eXmCDZkqTB%2FiPVn1w3VQeVEPznCE%2BSzAvWORMuQ9b%2FIxL9z502lGmlK2HBvjOHTEvV3zmyakbc4ugFikrhpSWR4PZjA0ObbqTbRCCaoMCFaCDgU7D40ILVD%2FBFIEeIyBeePCRbzA87iDvZ6pA7%2FSDWKKRGnJiumokol8zXZo2Zp7zTMzjarfmbzcpirFkuHHZW%2BxfphGD2nP5ehUll5K6zfB4OsGx7XWqeHkGubc%2FuJN9QwDiC34QI65hJaA85YVMbVoQJou8WZGLhctPxlhnjUKNalgGrjVqWeBapYMZyXylp8cHwYWCFSee%2BfKE%2FNcPxhsfp6RnODoTzHpExD2%2FrfD1bVJiq7MgQ5h6K9m322Gka2CtZu6LFOrCq80b35TzwGL7rEw0MS%2B1QY6sgERPTmKGhx1dJKLy7YkdG6mIBAXtqF3ZS3%2FpthC8Kt6nwxCIPbBfADSIfgLvl%2FO7fscFWWZbBfBN%2FG5ip8yckEjB9hLnm83p0mdG%2BpAzbnffYmb7Af4d2IUhXpPKuMPphDHJLewXkG1%2FL8Y45m%2BRktwBOFKtcxJ4FCxofrIZaoF%2B%2FNq1TjFFnmqtoTIPRF0ERQ1FEf34k4IPoU5pxCo3RaZZh2gilDlTvCWux1JpH%2Bk85%2Fh&amp;X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=ASIAT7MQN47UYKUXVN7E%2F20260920%2Feu-west-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20260920T092131Z&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Expires=900&amp;X-Amz-Signature=9ba9797f665b357226b6dc8e550fb405086a6d82eb76b2dc75700264c0cc7d65 150w\" sizes=\"(max-width: 293px) 100vw, 293px\" \/><\/a><\/p>\n<p>This is enlarged but is 1 inch by 1 inch.<\/p>\n<p style=\"padding-left: 30px\"><em>In that case there are 72 x 1 x 72 x 1 = 5184 pixels<\/em><\/p>\n<p><strong>Example 2<\/strong><br \/>\nBitmap with a resolution of 600&#215;600 pixels in 8 bit colour.<br \/>\nStorage requirements<\/p>\n<p style=\"padding-left: 30px\"><em>600 x 600 x 1 bytes = 360000<\/em><br \/>\n<em>It is 1 byte as it is 8 bits per pixel <\/em><br \/>\n<em>360000\/1024 = 351.6 kilobytes<\/em><\/p>\n<p><strong>Example 3<\/strong><br \/>\nCalculate the number of pixels in 4 inch by 5 inch photograph scanned which has a resolution of 600 dots per inch.<\/p>\n<p style=\"padding-left: 30px\"><em>Pixels = 4 x 600 x 5 x 600 = 7,200,000 bits<\/em><br \/>\n<em>7,200,000 \/ 8 = 90000 bytes<\/em><br \/>\n<em>90000 bytes \/ 1024 = 878.9 Kb<\/em><\/p>\n<p><strong>Vector Graphics<\/strong><br \/>\nIt is possible to edit <strong>each object<\/strong> separately, for example, change the shape, colour, size and position.<br \/>\nEven if an object in a vector graphic is quite large, it doesn&#8217;t need a lot of computer memory. Therefore the file size of a vector graphic is often very <strong>small<\/strong>.<br \/>\nVector graphics are <strong>scalable<\/strong> when you resize them, they<strong> do not lose quality<\/strong>.<\/p>\n<p><strong>Need for compression<\/strong> &#8211; reduces the file size so that the web page loads more quickly. Reducing bit depth has the same impact. Quality of the image is affected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Standard file formats: Text: txt &#8211; only text stored no formatting rtf &#8211; Rich Text Format, text and formatting stored, new standard allow for the storing of embedded images. Audio: wav &#8211; uncompressed audio mp3 &#8211; compressed audio Graphics: jpeg &#8211; used for photographs due to strong compression bmp &#8211; uncompressed gif &#8211; used for &hellip;<\/p>\n","protected":false},"author":32,"featured_media":1077,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4250,17008,17007,17013,475,375],"tags":[],"class_list":["post-1202","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-audio","category-graphics-media-types","category-media-types","category-national-5","category-revision","category-video"],"jetpack_featured_media_url":"https:\/\/blogs.glowscotland.org.uk\/nl\/public\/ColtnessHS-ComputingScience\/uploads\/sites\/12638\/2016\/03\/Nat5.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/comments?post=1202"}],"version-history":[{"count":3,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1202\/revisions"}],"predecessor-version":[{"id":1215,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/1202\/revisions\/1215"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media\/1077"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media?parent=1202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/categories?post=1202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/tags?post=1202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}