iris.nyit.eduiris.nyit.edu/~dmyrick/DGIM601-M01/docs/dgim601_class…  · Web viewAttribute 5:...

14
:: MULTIMEDIA TOOLS :: CLASS NOTES CLASS :: 08 03.17 2017 3 Hours AGENDA EXPORTING PSD IMAGES TO FOLDER :: Ensure Your Folder Structure is Correct :: Open Photoshop CC [Creative Cloud] :: Properly Name Your Image Layers :: Turn on Generator :: Duplicate images Folder/Paste in Your Website Folder INSERTING IMAGES :: Basic Images EMBEDDING MEDIA :: Webpage :: PDF :: Google Maps :: Social Media Code :: Social Media Video :: Original Video HW-8 :: Original Audio 1

Transcript of iris.nyit.eduiris.nyit.edu/~dmyrick/DGIM601-M01/docs/dgim601_class…  · Web viewAttribute 5:...

:: MULTIMEDIA TOOLS :: CLASS NOTES

CLASS :: 08

03.17

2017 3 Hours

AGENDA

EXPORTING PSD IMAGES TO FOLDER:: Ensure Your Folder Structure is Correct:: Open Photoshop CC [Creative Cloud]:: Properly Name Your Image Layers:: Turn on Generator:: Duplicate images Folder/Paste in Your Website Folder

INSERTING IMAGES:: Basic Images

EMBEDDING MEDIA:: Webpage:: PDF:: Google Maps :: Social Media Code :: Social Media Video :: Original Video HW-8

:: Original Audio

1

:: MULTIMEDIA TOOLS :: CLASS NOTES

EXPORTING PSD IMAGES TO FOLDER

:: Ensure Your Folder Structure is Correct

:: Open Photoshop CC (Creative Cloud)

:: Properly Name Your Image Layers Ensure you have an empty layer named: default images/

Image layers/groups should be named with no spaces and a file extension ( logo.png, instagram.jpg ) Image layers/groups may contain size & quality info, in addition to multiple file exports :: EXAMPLE: 50% footer-logo.png, logo.png24, logo.png (generates 3 files: 50% size of original, 24 png quality, & original) SOURCE URL: http://youtu.be/Z4DU87M9yYQ

:: Turn on Generator This will generate image file from your image layers/groups [ File > Generate > Image Assets ]

:: Copy Image Assets Content > Place in images Folder (for your website)

The Generator in Photoshop CC has placed all Photoshop layers & groups (properly named with extensions) inside a folder named Image Assets. This folder is located in the same place as your mock up files.

1. Save your PSD document, then Open your Image Assets folder (Located in same folder as PSD)2. Duplicate the images folder3. Locate your website folder: _DGIM601> your-student-folder > website-folder > public_html >

2

:: MULTIMEDIA TOOLS :: CLASS NOTES

4. Paste the images folder within your public_html folder

3

:: MULTIMEDIA TOOLS :: CLASS NOTES

INSERTING IMAGES

:: Basic Images SOURCE URL: http://www.w3schools.com/tags/tag_img.asp

a. Image Tags.

The basic structure for inserting an image consists of a tag, attribute(s), and value.

START TAG ELEMENT ATTRIBUTE VALUE END TAG< img src = “filename.jpg” > or />

image tag Use all lowercase and no spaces when naming your web files.

SHOWN ABOVE: .jpgOther image file extensions used in web publishing are: .png, .gif, and .svg

The image element mark-up is an empty or self-terminating tag. It only requires a “>” or “/>” to close the element

alt = “Image of filename”This text will appear if the image is not displayed in the browser. It may also be read by a screen reader (often enabled for visually impaired site visitors)

NOTE: You may also add a title attribute for tooltips: <img src=”filename.jpg” title=”image description”>

In HTML, The code appears as follows:

1. <img src=”filename.jpg”> if located in the root directory2. <img src=”images/filename.jpg”> if located inside images folder (PREFERRED)3. <img src=”http://www.yourwebsite.com/filename.jpg”> located on live site (root)4. <img src=”http://www.yourwebsite.com/images/filename.jpg”> live site inside images folder

CREATE A CODE SNIPPET FILE FOR INSERTING IMAGES

1. Open new HTML 5 File2. Place cursor BETWEEN the opening and closing <body> tag3. Type the following [ alternate: Menu Bar > Insert > Image ]:

<img src=”images/logo.png” alt=”This is my logo”>

4. Save As: “code_images.html5. Click Save6. Preview in Browser [File > Real-Time Preview, OR, Open from student folder/code_snippets/]

4

:: MULTIMEDIA TOOLS :: CLASS NOTES

EMBEDDING MEDIA:: Webpage [ Info Only ]

Embed a Webpage inside of a Webpage Save As… code_embed-webpage.html

You may embed an entire live site into your own page.

With the correct measurements and styles, you may allow your visitors to have a seamless experience for viewing information and media (external to your site).

In the following example, you may view NYIT’s website through an element called the iframe:

<iframe src="http://www.nyit.edu" width="1100" height="575" frameborder="0" scrolling="yes"></iframe>

Element: <iframeMarkup to open an iframe element.

It creates frame for object/media from another page sourceAfter you type iframe hit the spacebar before typing the first

attribute…

Attribute 1: src= This attribute tells browser to look up a source

Value1: “http://www.nyit.edu” This is the absolute hyperlink/web location (URL) for the page you wish to embed

Attribute 2: width= Width of the iframe

Value 2: "1100" Value (measurement) for the width attribute

Attribute 3: height= Height of the iframe

Value 3: "575" Value (measurement) for the height attribute

Attribute 4: frameborder= Informs browser a frameborder behavior will be added

Value 4: "0" Value of “0” allows webpage to be displayed without a border.

Attribute 5: scrolling= Informs browser a scrolling behavior will be added

Value: ="yes" “yes” value for scrolling, adds a scrollbar to the iframe

> Closes the opening iframe tag

</iframe> Terminates the iframe element (closing tag)

5

:: MULTIMEDIA TOOLS :: CLASS NOTES

NOTE: In this example, you may manipulate the attribute values to see how width, height, and scrolling, affects the look and feel of the web embedment.REFERENCE: http://www.w3schools.com/tags/tag_iframe.asp

:: Social Media Code

The majority of social media sites allow users to embed feeds/timelines/gallery thumbnails/etc. by use of developertools. Typically the embed code is located on the developer tools page, in settings, or share embedding within a post itself…

REFERENCE FOR VARIOUS SOCIAL MEDIA EMBED CODE: URL: http://iris.nyit.edu/~dmyrick/DGIM601-M01/embedmedia.html

Example: Embed Twitter into Your Web Page Video Demo This video shows how to embed twitter, as well as screenshot and include the feed in a Photoshop Mock-Up…

Save As… code_embed-twitter.html

1. Login to your Twitter Account ORGo to: https://publish.twitter.com/# [ Skip to Step 6. ]

1. 2. Go to your Twitter Menu Bar > Click Your Profile and settings icon

2.3. Choose Settings and privacy from dropdown menu

4. Go to Left Column > Locate Widgets > Click Widgets5. In the center of the page > Click Create New6. Enter the URL for your Twitter Account > http://www.twitter.com/yourusername

NOTE: You may go directly this page to start the embed code process: https://publish.twitter.com/#

6

:: MULTIMEDIA TOOLS :: CLASS NOTES

7. Choose the option for your embed code: For this exercise you will chood Embedded Timeline

8. Choose the appropriate styles for you feed: // Set Width (You may use percentages)

// Set Height (You may use percentages)// Theme: You may choose a light or dark theme

and your own link color

6. Choose 9. [Click] Update10. Copy HTML code [Cmd+C/Ctrl+C] 11. Paste Code within desired element in

Dreamweaver [Cmd+V(Mac) / Ctrl+V(PC)]

INSTAGRAM: LINKED IN:[ SEE EMBED SOCIAL MEDIA PAGE ]URL: http://iris.nyit.edu/~dmyrick/DGIM601-M01/embedmedia.html

[ SEE EMBED SOCIAL MEDIA PAGE ]URL: http://iris.nyit.edu/~dmyrick/DGIM601-M01/embedmedia.html

7

:: MULTIMEDIA TOOLS :: CLASS NOTES

:: Social Media Video YOUTUBE Save As… code_embed-youtube.html

1. Go to YouTube video of your choice2. Click The Share Button3. Choose the Embed Button4. Copy the highlighted code from the text field5. Paste the code in your desired location (inside the body tag)

SAMPLE CODE: NYIT – 10 YEARS OF SOURCE<iframe width="560" height="315" src="http://www.youtube.com/embed/ne_kXZ3BkEc" frameborder="0" allowfullscreen> </iframe>

:: Original Video Embed Original Video in Your Webpage Save As… code_embed-original-video.html

1. Create a new folder (inside of your pubic_html folder) named videos2. Save all of your converted (from HW-4) video files inside the videos folder

SAMPLE HTML5 CODE:<video id="video-background" poster="images/still-image.gif" autoplay loop controls>

<source src="videos/filename.mp4" type="video/mp4"> <source src="videos/filename.ogv" type="video/ogg"> <source src="videos/filename.webm" type="video/webm">Your browser does not support the video tag.

</video>

REFERENCES: http://dev.w3.org/html5/spec-author-view/video.html http://www.w3schools.com/html/html5_video.aspmobile: https://github.com/etianen/html5media/wiki/embedding-video

8

:: MULTIMEDIA TOOLS :: CLASS NOTES

:: Original AudioEmbed Audio in Your Webpage Save As… code_embed-audio.html

CONVERTING FILES: http://www.online-convert.com/

1. Create a .mp3 and .ogg file from your audio file of choice (use above link)2. Use one of the following code structures for embedding audio on your page

SAMPLE CODE HTML5: AUDIO (The Browser will display the first recognized format)

<audio controls="controls"><source src="audio/musicfile.ogg" type="audio/ogg"> <source src="audio/musicfile.mp3" type="audio/mpeg"> Your browser does not support the audio tag.

</audio>

MORE MULTI-BROWSER COMPLIANT:

<object width="199" height="16">

<param name="src" value="audio/musicfile.mp3"><param name="autoplay" value="false"><param name="controller" value="true"><param name="bgcolor" value="#333333">

<embed TYPE="application/x-mlayer2" src="audio/musicfile.mp3" autostart="false" loop="false" width="199" height="16" controller="true" bgcolor="#333333"></embed>

</object>

NOTE: If you wish to autoplay your music once visitors arrive to your page, change the following attributes and values:

<param name="autoplay" value="true"> AND src="audio/musicfile.mp3" autostart="true"

REFERENCE: http://www.w3schools.com/html/html5_audio.asp

9

:: MULTIMEDIA TOOLS :: CLASS NOTES

:: PDFEmbed a PDF Inside of a Webpage Save As… code_embed-pdf.html

NOTE: An absolute URL address must be used as the .pdf location for multi-browsers

<object data="http://helpx.adobe.com/pdf/dreamweaver_reference.pdf" type="application/pdf" width="100%” height="100%">

<p>It appears you don't have a PDF plugin for this browser.<a href="http://helpx.adobe.com/pdf/dreamweaver_reference.pdf">Click here todownload the Dreamweaver Help and Tutorials PDF file.</a>

</p></object>

Link to a PDF or Word Document

Link to PDF (Viewable on Web):<a href=”http://helpx.adobe.com/pdf/dreamweaver_reference.pdf”>See PDF</a>

Link to Microsoft Word Document (Downloads from Web):<a href=”http://iris.nyit.edu/~dmyrick/DGIM601-W01/docs/class8.doc”>See PDF</a>

:: Google MapsEmbed a Google Map Into a Webpage Save As… code_google-maps.html

1. Go To Google Maps: https://www.google.com/maps

2. Type an address:

3. Click the Share Button

4. Copy the HTML Embed Code [See blue highlighted code below]:

5. Paste the code into your Structural (<p>,<div>, <section>, etc.) HTML Element of Choice

10

:: MULTIMEDIA TOOLS :: CLASS NOTES

HW-8Homework

DUE :: 03.31

REVIEW ::

1. Class 8 Notes

DO ::

Complete the Exercises for Embedding Media into Web Pages [Class 8 Notes] Print Out your Homepage Mock-Up

If you have any questions, contact [email protected]

SEE HOMEWORK PAGE FOR COMPLETE DETAILS

BRING :: HW-9

1 Print Out of Mock-Up

2 Sketch Book & Pen/Pencil

11

:: MULTIMEDIA TOOLS :: CLASS NOTES

12