© Anselm SpoerriDigital Media Production Digital Media Production Digital Media Production Anselm Spoerri PhD (MIT) Rutgers University

Slides:



Advertisements
Similar presentations
17 HTML, Scripting, and Interactivity Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and.
Advertisements

Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
1 CSC 551: Web Programming Spring 2004 client-side programming with JavaScript  scripts vs. programs  JavaScript vs. JScript vs. VBScript  common tasks.
Adobe Photoshop CS Design Professional FOR THE WEB CREATING IMAGES.
© Anselm SpoerriInfo + Web Tech Course Information Technologies Info + Web Tech Course Anselm Spoerri PhD (MIT) Rutgers University
Multimedia for the Web: Creating Digital Excitement Multimedia Element -- Graphics.
© Anselm SpoerriInfo + Web Tech Course Information Technologies Info + Web Tech Course Anselm Spoerri PhD (MIT) Rutgers University
© Anselm SpoerriInfo + Web Tech Course Information Technologies Info + Web Tech Course Anselm Spoerri PhD (MIT) Rutgers University
HCI 201 Week 5 Loose Ends. Agenda Image stuff Image stuff File stuff File stuff Bandwidth Bandwidth UNIX UNIX HTML HTML Design elements Design elements.
Chapter 4 Adding Images. Inserting and Aligning Images Using CSS When you choose graphics to add to a web page, it’s important to use graphic files in.
Introduction to Computer Graphics
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
V Obtained from a summer workshop in Guildford County July, 2014
Chapter 3 Adding Images in HTML. Agenda Understanding Web Page Images Prepare Your Images for the Web Insert an Image Specify an Image Size Add Alternative.
Chapter 14-Designing for the World Wide Web. Overview Introducing multimedia on the Web. Designing text for the Web. Creating images for the Web. Adding.
Prepared by George Holt Digital Photography BITMAP GRAPHIC ESSENTIALS.
Web Design, 5 th Edition 5 Typography and Images.
Photoshop for the Web CS 213 Elem. Graphics Dr. Erik Wynters.
MIS 208 Fundamentals of Web Publishing Week 6 Performance Editing Graphics Imagemaps.
Getting Started with Adobe Photoshop CS6
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Faculty of Sciences and Social Sciences HOPE Website Development Graphics Stewart Blakeway FML 213
Lecture 4 - Introduction to Computer Graphics
Chapter 4 Adding Images. Chapter 4 Lessons Introduction 1.Insert and align images 2.Enhance an image and use alternate text 3.Insert a background image.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Creating Web Documents: Images, files, etc. Web graphics Paint Shop Pro for conversions File management, Ws-ftp demonstration (Return to HTML next week)
IT Introduction to Website Development Welcome!
Chapter 2 Developing a Web Page. Chapter 2 Lessons Introduction 1.Create head content and set page properties 2.Create, import, and format text 3.Add.
Chapter 1 Review Images Links Images II Pictures and Extensions.
CIT 256 Dreamweaver Intro. Dr. Beryl Hoffman. Start Dreamweaver Start from Start Menu/Adobe Master Collection CS6/ Adobe Dreamweaver CS6 Choose Create.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
Day 4.  Assignment 1 Due  Assignment 2 Posted Assignment 2 Posted  Due Feb 9:35 AM  3 8:30 AM  Today we will look at creating and using.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
CHAPTER 4 LINKS Creating links between pages Linking to other sites links.
Web Page Design. Some Terms Cascading Style Sheet, (CSS) –a style sheet language used to describe the look and formatting of a document written in html;
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
8 Using Web Graphics Section 8.1 Identify types of graphics Identify and compare graphic formats Describe compression schemes Section 8.2 Identify image.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
Graphics and Animation Multimedia Projects Part 2.
© Anselm Spoerri Lecture 5 Meaning –Visual Storytelling and Colors - Food for Eyes –Image Composition –Readings | Rules and Principles Mechanics –Fireworks.
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
Tutorial 10 Programming with JavaScript
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
Dynamic Web Pages & JavaScript. Dynamic Web Pages Dynamic = Change Dynamic Web Pages are web pages that change. More than just moving graphics around.
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Section 8.1 Create a custom theme Design a color scheme Use shared borders Section 8.2 Identify types of graphics Identify and compare graphic formats.
Graphics in HTML. Graphics  Question: How does a web page include graphics?  Are the graphics included in the HTML file or separate files?
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 3 This presentation © 2004, MacAvon Media Productions Introduction to Computer Graphics.
Unit 1: Task 1 By Abbie Llewellyn. Vector Graphic Software (Corel Draw) Computer graphics can be classified into two different categories: raster graphics.
Adobe Photoshop CS3 Revealed – Chapter 16 FOR THE WEB CREATING IMAGES.
COS 125 Day 4. Agenda Assignment 1 Due Assignment 2 Posted –Due Feb 9:35 AM Today we will look at creating and using images Examples –
Color and Images. Color The natural colors we see and the colors we see on computer monitors are different. CMYK -natural RGB -monitor.
XP Tutorial 8 Adding Interactivity with ActionScript.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
JavaScript Defined DOM (Document Object Model) General Syntax Body vs. Head Variables Math & Logic Selection Functions & Events Loops Animation Getting.
8 Graphics Digital Media I. What is a graphic? A graphic can be a:  Chart  Drawing  Painting  Photograph  Logo  Navigation button  Diagram.
Adobe Flash Professional CS5 – Illustrated Unit E: Optimizing and Publishing a Movie.
CHAPTER 21: IMAGES. IMAGE SOURCES 3 options: Create your own images Find images Hire someone to make images.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
Section 8.1 Section 8.2 Create a custom theme Design a color scheme
Section 17.1 Section 17.2 Add an audio file using HTML
Web Development & Design Foundations with HTML5 7th Edition
Information Technologies Anselm Spoerri PhD (MIT)
Color and Images.
Tutorial 10: Programming with javascript
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
Presentation transcript:

© Anselm SpoerriDigital Media Production Digital Media Production Digital Media Production Anselm Spoerri PhD (MIT) Rutgers University

© Anselm SpoerriDigital Media Production Lecture 4 – Overview Image Composition –Readings | Rules and Principles Image Editing –Cropping Images | Scaling Images for Slideshows | Adobe TV Demos –Color | Web Graphics | Image Formats: GIF, JPEG JavaScript Slideshows –CSS: position | z-index | width / height as % of Browser Size –jQuery | Customize Galleria, Galleriffic and Supersized slideshows Programming Concepts JavaScript and Document Object Model (DOM) –Data Types, Variables, Operators, Statements, Function and Control Structures –Document Object Model (DOM) –Image Rollovers Lectures – Week 4 Content

© Anselm SpoerriDigital Media Production Image Composition – Readings Course Website - public Composition Rules Composition Balance Flickr: Learn Composition By Example Digital Photography Tutorials 10-Pro-Photography-Tips eCollege – private Photographically Speaking: A Deeper Look at Creating Stronger Images by David duCheminDavid duChemin Chapter 2 – Elements Chapter 3 – Decisions

© Anselm SpoerriDigital Media Production Image Composition - Rules Rules of Thirds Photoshop Elements – Cropping using Rules of Thirds

© Anselm SpoerriDigital Media Production Image Composition – Principles Center of Interest – direct attention to primary idea of picture. Viewer’s attention is directed by what subject is looking at and should coincide with center of interest. Subject placement – Rule of Thirds | Dynamic Symmetry Simplicity – One idea per Image Viewpoint and Camera Angle Study subject from different sides, viewpoints (low, level, high) and angles to establish clear center of interest. Balance – Symmetry | Asymmetrical

© Anselm SpoerriDigital Media Production Image Composition – Principles Subject placement – Rule of Thirds Simplicity – One Idea per Image Viewpoint and Camera Angle Study subject from different sides, viewpoints (low, level, high) and angles to establish clear center of interest. Balance – Symmetry | Asymmetrical | Dynamic Symmetry

© Anselm SpoerriDigital Media Production Image Composition – Principles Shapes and Lines Make Shapes more dominant by placing them against contrasting backgrounds Lines can structure photos. Pattern Pattern can create visual rhythms Lighting Morning | Sunset Light and shadows help create mood

© Anselm SpoerriDigital Media Production Image Composition – Principles Texture create Forms | Moods Google Image Search Tone white | gray | black shadings Contrast Tonal | Color

© Anselm SpoerriDigital Media Production Image Composition – Principles Framing Subjects enclosed by frame become emphasized Foreground | Background

© Anselm SpoerriDigital Media Production Image Editing – Photoshop Elements Video Demos – Preparing Images for Slideshow –Resize –Crop: Thumbnail | Rule of Thirds Video Demos – Adobe TV –Overview –Organize –Select & Edit –Text –Effects –Collage & Merge

© Anselm SpoerriDigital Media Production Image Editing – Changing Size Image > Resize > Image Size Select “Constrain Proportions” and “Resample Image” checkboxes Specify Desired Width or Height File > Save As –Select JPEG –JPEG Options: Highest Quality

© Anselm SpoerriDigital Media Production Image Editing – Cropping Image > Crop Aspect Ratio: Use Photo Ratio | Custom –Custom: specify Width and Height Overlay: Rule of Thirds | Golden Ratio File > Save As –Select JPEG –JPEG Options: Highest Quality

© Anselm SpoerriDigital Media Production Color Large Areas = Low Saturation = Subtle color Background / minor elements = Subtle pastel colors Small Areas = High Saturation = Bold color Maximum emphasis = Bold, saturated primary colors

© Anselm SpoerriDigital Media Production Color (cont.) RGB Color used by Monitor –Direct Light, Not Reflected Indexed Color –Limited Selection of Colors: up to 256 colors –To Reduce File Size –Color not in the Palette is Approximated and “Dithered” Creating Web-Safe Colors –All combinations of 0%, 20%, 40%, 60%, 80%, 100% for Red, Green and Blue –6to3 = 216 colors –Affects Illustrations, Drawings more than Photographs –Fireworks has Web-safe Palette

© Anselm SpoerriDigital Media Production Web Graphics Bitmapped or Raster Graphics –Paint and Photo Programs Object or Vector-based Graphics –Draw and Illustration Programs –Use Mathematical Representation for Shapes –Used to Create Original Artwork Artwork Converted into Bitmap using Fireworks Anti-aliasing (smoothing) –Increases file size

© Anselm SpoerriDigital Media Production Image File Formats GIF –Cross Platform & Lossless Compression –Indexed Colors: few GIFs need all colors, reduce it manually –Transparency (so no white box around graphic) –Interlacing & Progressive Download –Create Animations –Best for –Images with Large Areas of Solid Color, Simple Illustrations –Small Photos or thumbnails JPEG –Cross Platform & LOSSY Compression –Progressive JPEG –No transparency –No Animation –Best for –Photos: Millions of Colors and Subtle Changes

© Anselm SpoerriDigital Media Production Save Image for Web RGB Mode 72 ppi Indexed Color Mode Reduced Color Palette –Adaptive Palette Interlaced

© Anselm SpoerriDigital Media Production Image Slideshow – CSS, JavaScript and jQuery CSS Properties position property of an element –position: static; default | appear in document / linear flow –position: relative; positioned relative to its normal position –position: absolute; positioned relative to first non-static parent –position: fixed; relative to browser window Learn CSS Positioning in 10 Steps z-index property –specifies stack order of an element width / height as % of Parent –width: 50%; height: 75%; JavaScript | jQuery jQuery = JavaScript library that makes JavaScript programming easier

© Anselm SpoerriDigital Media Production Image Slideshow – Galleria | Galleriffic | Supersized Galleria | Demo Demo Width: % to width of slideshowDIV Thumbnail: scaled versions of large images Galleriffic | Demo Demo Widest Image: specifies width of slideshow Highest Image: specifies height of slideshow Width to use: 500px Thumbnail: 75px x 75px Supersized | Demo Demo Screen filling High Resolution Images Width to use: 1200px Thumbnail: scaled image and still high resolution

© Anselm SpoerriDigital Media Production Key Programming Concepts data types numbers, text, boolean (true, false) variable = container of data array = collection of data organized in a sequence statement = combination of variables, operators and data  group of statements  function = collection of statements to perform specific task perform test: true or false if (test) then for loop: where do we start? when are done? how to continue?

© Anselm SpoerriDigital Media Production Programming Concepts – Overview Data Types : such as numbers, text, boolean (true, false) ‒ Integer | Boolean | Character | String | Floating-Point ‒ Array: [5, 4, 7] (use FOR loop to examine each array item) Variable : is way to symbolically to refer to data content ‒ scores = [5, 4, 7]; Operators : can be used to perform built-in operations ‒ 5 +5; (where + is addition operator) Statement : combination of variables, operators and data ‒ total = 12 * monthly_average;

© Anselm SpoerriDigital Media Production Programming Concepts – Overview Function : collection of statements to perform specific task function add_scores (score1, score2) { return (score1 + score2); } total = add_scores (3, 4); Conditional Programming used so that operations are performed only if certain condition is met: ‒ IF test (only do something if certain condition is true) ‒ FOR loop (keep doing something only if certain condition is true) ‒ WHILE loop (keep doing something until certain condition not true anymore) Debugging code is essential part of programming... chasing typos, missing parentheses :)

© Anselm SpoerriDigital Media Production JavaScript –Client-side scripting language –Programs embedded as plain text in HTML of Web page, … –Since text, viewable to the world and for security reasons, scripts are limited in what they can do –Browser executes program as it loads page, integrating dynamic output of program with static content of HTML –Used to access to elements of HTML document. –Validate form data –Create dynamic user interaction such as checking address validity in input forms and interactive page elements … –Major implementation differences between different browsers.

© Anselm SpoerriDigital Media Production JavaScript – Data Types, Variables, Operators, Statements Data Types – only three primitive data types Boolean: true, false Number: 5, 7.45 String: “Hello World” Variables = holds value of specific data type –sequences of letters, digits, and underscores –start with a letter or underscore –variables names are case-sensitive sci_550 = true; create variable sci_550 and set it to true var count = 100; create variable count and set it to 100 Operators count = count += 5 n++ count = 5 * temp “Hello” + “World” Statements Instructions end with semicolon … If missing, automatically inserted Assignment : total = earn1 – spend1 Return value from function: return total

© Anselm SpoerriDigital Media Production JavaScript – Arrays Array stores a sequence of items, accessible via an index items = new Array(10); // allocates space for 10 items items = new Array(); // if no size given, will adjust dynamically items = [0,0,0,0,0,0,0,0,0,0]; // can assign size & values [] items.length // the number of items in the array To access array element, use [index] for (i = 0; i < items.length; i++) { document.write(items[i] + " "); // displays elements }

© Anselm SpoerriDigital Media Production JavaScript : Function Functions function name (para1, para2, …) { … } Reusable code that consists of Collection of “statements” Takes one or more values as input “parameters” Returns “result” value function convertToCelsius(f) { var celsius = 5/9 * (f-32); return celsius; } var f = 50; c = convertToCelsius(f);

© Anselm SpoerriDigital Media Production JavaScript : Control Structures Control Structures Sequential top to bottom Conditional if (test) { … } else { … } Repetition for (i=0; i<100; i++) { … } Boolean Operators x == y true if x and y are equal x != y true if x and y are not equal x > ytrue if x is greater than y x <= y true if x is smaller than or equal to y x && ytrue if both x and y are true x || ytrue if either x or y is true !xtrue if x is false

© Anselm SpoerriDigital Media Production JavaScript – Some Uses Display information based on Time of Day JavaScript can check the computer's clock and pull the appropriate data based on the clock information. Detect Visitor's Browser this lecture JavaScript can be used to detect the visitor's browser, and load another page specifically designed for that browser. Validate Forms Data next lecture JavaScript can be used to validate form data at the client-side saving both the precious server resources and time. Add Interactivity to Website this lecture JavaScript can be set to execute when something happens, like when a user moves mouse over an image. Create Cookies JavaScript can store information on the visitor's computer and retrieve it automatically next time the user visits your page. Change Page Contents Dynamically JavaScript can change the display of content without the involvement of server programs. It can read and change the content of an HTML elements or move them around pages.

© Anselm SpoerriDigital Media Production JavaScript – Stored Where Location of JavaScript External file External.js file: must not include any or tags script code Place code here to be available when page loads document.write(" Using JavaScript "); document.write("Hello World. Today is " + Date() ); Places h2 and “Hello World. Today is [current date]” in page where JavaScript is located

© Anselm SpoerriDigital Media Production JavaScript Example Hello World document.write("Hello World") ; Your browser doesn't support or has disabled JavaScript. Tasks Change Text and apply h2 tag Add "+ Date()" to text being displayed Add paragraph before and after where JavaScript is inserted

© Anselm SpoerriDigital Media Production JavaScript and Document Object Model Document Object Model Platform- and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure and style of documents. Examples –document.write() –document.images[0] –document.links.linkname.href –document.getElementById("id") Reference, Tutorial and Examples jsref/default.asp See Lectures: Week 8 for more resources.

© Anselm SpoerriDigital Media Production Document Object Model url = document.links.linkname.href

© Anselm SpoerriDigital Media Production Access HREF using JavaScript and DOM Link Test SCI url = document.links.mylink.href ; // variable // document.write('The URL is ' + url); // access DOM //

© Anselm SpoerriDigital Media Production JavaScript – Detect Visitor's Browser document.write(navigator.appName); document.write(" "); document.write(navigator.appVersion); document.write(" "); document.write(navigator.userAgent); document.write(" "); More Info:

© Anselm SpoerriDigital Media Production Image Rollover JavaScript littlecat = new Image(143,83) littlecat.src = "real.jpg" bigcat = new Image(143,83) bigcat.src = "dream.jpg" <img src="real.jpg" name="catpic" onmouseover="document.catpic.src = bigcat.src" onmouseout="document.catpic.src = littlecat.src" />