{"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 loading=\"lazy\" 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=IQoJb3JpZ2luX2VjEHoaCWV1LXdlc3QtMSJGMEQCIA5P4%2BX6nUqaGVRnIrEXNgVL6NEgxU1Rnx3S%2FZSILd7CAiB6n8PDw2piBIQawgoBeRbQJ2Zzk9SW1hzNQwWgq8D1kSq5BQhCEAUaDDI3MzU3MDE5NTQzMyIM6DtLOvVaPPYbkZ6TKpYFovlUY4PBPi0RNW%2Fl%2F2KrYK0ZdwxR0Sh28uYqosvr3dTxW2Y1R83lG49bEAaN2uTRk3t87tqSmarYjVf0cyGIBLPAoUGrT4trDH1yCO7tssYnNzpMCT5qbirC9XEQpO4F8DUJqZ%2BEHruK0qpSNLR7HrgMPrg51R%2FFA8FYPrwKejfQkG7CUgKlRYHNlfduUX2xUAlamDl5ZK6AndaOPgJbx91HuBKewpxNCrkUGKcwd76ZAlFeJOJGCgIvD6xbvEC8NqYDyRCF%2FbQVmwZyevi8Tx2rq1JkXy%2FZRee878npdqh0LSW7WEHJF0qEvuSJTX%2BHcv5%2FvARqiDRFUDDJazwG%2F%2B2FREVNKgXOhMpVeoL2hhj1FCle4KPpK1g%2FLsGlglr72HZyCpSnnNYpQ0jkqP5s45uuqFsegZi41vjl39kOqVC%2BCTXIbW%2FJo%2BvmiMgGbqmtoaYujcO3TJ3uCWQg6Km4XA4E1bWF9w3jLcddtynAj9KTF8Jh9nnTptNWHxKOSr%2FdRRhVjOmmP1WP7a2twKHIoxGZVC5dwi3v9v%2BWjj7eB64B7MEbFwBNu2EbGq9iDe6uHUV6cueZp7dXXg50npUINdISedAM3b9mVy4xNjTfRYofsS2tN6VEs%2FrFUeDtOR9kCDj1ZhEpN1JOYYLRLjnmhRCjM1gG98U7KOt4%2FqLyZLpFV%2BFnlxSN41AqdvWWDLDq%2BHpXO0rowxk%2FPU%2Bxtr8hlZAQq5WBJMXd3fWifuzP2thaSGT%2Fc4OKaH1kZOgyazzabe%2Beiwqyp7L00V3HCH0gVUK%2FXrcQX%2BAA91glgiyh0eTlal3msgXsIVRF%2B4m7MA32FRccPfQjm1e5yIzL4MqLWDNz5hQuhUC6kywOXapMzcS7lfhmz5sw6%2BO50QY6sgGBf6O7D9eiGBT06KfQ5TYi4sKJP3oxC7%2BdFcuhBaZt9avOv07OyG581dTy5ZMm9E4r%2B5cl4BeOKjNCYrX8k9Xsi5N3JHvdUtpaVd1iL3P2AyEJetVUQQTznD77SZThJSnic1Ce7azu%2BE8LhleTmRtYTmsAMQpGrdMZTnf%2BNOvCDsCxecUUH4FBzt6rFfLXyPgOUwofFxZY0zZEuNPKpDNqEOhjjZfmNMxfXYoXFDQLDy6W&amp;X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=ASIAT7MQN47U6ZW5VVCI%2F20260614%2Feu-west-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20260614T094200Z&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Expires=900&amp;X-Amz-Signature=ff97e3af2f58f5bc14a648663c121757f0fa93ce2cee20c6ab00b39599887435 150w\" sizes=\"auto, (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}]}}