{"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=IQoJb3JpZ2luX2VjEHQaCWV1LXdlc3QtMSJIMEYCIQDnSw9PzgQ8iHuzn5D4RFShl1lXaIurtl331S0CgFzeLwIhAI9O7Q8ZBo21nLqO1%2F5l1DuSdem4rF5rzN8SXhh1ph%2FnKrkFCD0QBRoMMjczNTcwMTk1NDMzIgwDq2uvWJDnqBQPHE0qlgV1fQ0B7VC9Q%2Fip%2BbSORjRViwqJOMajsUJQE1UE2UWv7pIWTV5hF%2BuL2lx4Yf3U%2BCOk%2FCBGXOPXb3QwPTxV2frARM2BIJTb2hkZ%2BYh1CZv524EqNoIdMDGIVdMVn2u0PUTYN05zYvRs7mM7fk5VAhXq5z9MtKA044fnHEHiUGqtNqKn4VK9ZbtQMypgACB2DSWuUL3Dc0EIqHotI0v8lrex9g8SG6N%2BOZDNj%2Bb9myRRq0Sby%2BbccOe8PodrVaxD8ArvNEp8rlbp5CXT2ZU4o0iCM%2FkD1sS8oPnGa%2FxIZWDTBomK0U1L0F5IqeEvkjtKaq%2FLOw4A%2Bh%2FX%2FEgt1IwWnDAolmU%2BNBIvZhgApZPMWhV46OJPHPrlsDwLvjnQSYKc%2BVksqIwOksG%2BPWkOD4vJm8jW0ybyYTE9BjEMlzNlaGpSAY4ZaB0vg1xSq%2BOrMMUj8rVUWEwyN27%2BQGsTgiVJUQmdQm7lt8IUyfYx6qgTasjgQJfIjo%2B4b3j7IgGi5I6w0mnvpP%2FzmLPgd7ktnR85Yae0C8br0O5f8NmtvRj2rr%2B78%2BYBoXiRD4d6%2Buc4sw1Q7j7gNbBO0vnGIHESdtr7YxSyKjSX9AyKdd0wQuDlPjfAZkR2HIc2udQRjD3on7oBFkmSZmXchByB0xaU1JXG9Kir%2FbSrtgvicxcXOXJNpACG9t0lDULpS2kvW6ns%2BTU%2F4%2FgSpYbogEYylqbqSiOdY6711eQHmSbW6IOhtGzxnr6qE8YZTaL%2Fp72R3NNgDqd77vm%2FwS4ng6Rc67lOPAqUZICmx4DpXx6%2F5KCJYX13rjrqDxsaw%2FuvvzVhu9hOMoVWDqAzM8lbc81iBY5YFVegitE5f3i%2F%2FoMqzwBewYs3TQP%2B41B7IqMzYjC7hsjQBjqwAS1u2K3H5ILwWPeM2R80gMd1K82Eq6vtnffYAHqWBbujpGPhUuZHrpByuVnw4xdhywu1UEwLWXzPYfLMYJ1uq9El25cynBTQJV4EDUnaIxm5O%2BuuQrsKkvDLxJyDxletXUd3p08Vh97LmShbLIquW%2FyvfJVmPGvTRF4tMHILaaXb8YcYGsT01idEbJ7NgOzOLDAbCPoeBSmU3t8T6fX9qNP%2FFSW1kRmHxzaxnnAp2Xsd&amp;X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=ASIAT7MQN47UZODQHKM2%2F20260523%2Feu-west-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20260523T202632Z&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Expires=900&amp;X-Amz-Signature=ae79e689cf46144ecbdf73ab51ad442b4a150de2a3c10f0e036c704a13fb35d1 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}]}}