Topics by Week for the Eight-Week Term | |
---|---|
1. Intro to HTML | 5. Layout with CSS |
2. More HTML, file paths | 6. HTML Tables |
3. Site structure and navigation | 7. HTML Forms |
4. Formatting with CSS, Midterm | 8. Multimedia, Final |
Topics by Week for the Ten-Week Term | |
---|---|
1. Intro to HTML | 6. Layout with CSS |
2. More HTML, file paths | 7. CSS Flexbox and Grid |
3. Site structure and navigation | 8. HTML Forms |
4. Formatting with CSS | 9. Multimedia |
5. Midterm, Project Propposal | 10. Tables, Project Completion |
11. Final |
IntroThree Meanings for SizeSize on the ScreenNumber of Pixels in the ImageSize of the FileApps that Can Resize ImagesWindows 10PaintPhotosWindows 11PaintPhotosMac OSPreview
It is often necessary or beneficial to reduce the size of your image files.
So that your web pages will load quickly. Note that web pages will load very quicly when you open the page from a file on your own computer—even with large images, but those same pages will load more slowly once you have uploaded your web site to a web server and are opening the page over the internet.
So your site can be uploaded to Moodle, which has a 10 MB upload limit.
Your image will have some visible size on your web page. This size is controlled by the height and/or width settings in the <img />
element, the size of the screen the web page is being vviewed on and the zoom setting of the browser. The size on the screen is not necessarily related to the size of the image file.
Pixels are the little dots that make up the image. The more little dots there are, the higher the resolution (or sharpness) of the image. For images used on web pages, common image sizes in pixels could be anywhere from 25 X 25 pixels (a total of 625) to 1024 X 1024 (a total of 1,048,576 or one megapixel). The number of pixels in the image will have a direct effect on the file size.
The size of the image file will be determined by multiple factors like:
The image type (.jpeg, .png, .webp, etc.).
The number of pixels in the image.
The compression ratio (quality) of the image.
In the end, you usually want images to be less than 100k in size so that they don't take too long to load when someone opens the web page, but you still want them to look good (or good enough) for the size they are renedered on the page.
Open Paint on your computer.
Go to File, click on Open.
Now locate the photo you want to resize.
Double-click on it.
Click on the resize button to open the resize and skew window.
In the resize and skew window, select the percentage option under the resize section.
Enter the percentage you want to resize your image by in the horizontal and vertical fields.
Click OK.
Open the Photos app from the Windows Start menu.
Select Folders from the menu at the top of the app's window.
Click on the Add a folder button (a big orange square) and select the folder containing your imnages.
Click on an image you want to resize to select it.
Click on the elipses (three dots ...) in the top menu, then click on Resize image.
Resize the image. Try to make the file size as small as possible while keeping the image looking sharp and clear for the size it will appear on the web page.
You can resize by adjusting the precentage or pixels settings.
If you change just one dimension, either width or height, the aspect ratio (ratio of width to height) will be preserved.
You can see the resulting size of the image at the bottom or the Resize dialog box.
You can also make the file size smaller by adjusting the quality (compression) of the image.
Click Save.
This works in the same way as the Windows 10 version, but the Resize button is in the Image section of the toolbar at the top.
The most rescent Windows 11 version (as of July 2023) of the Photos app works a little differently from the Windows 10 version. In this version, you need to double-click on an image so that it opens in it's own window in order to get the full menu of options; which includes Resize image.
Open the image in Preview.
Select Tools > Adjust Size to pull up the Image Dimensions menu.
Typing in a new value in the Width box will change the dimensions of the image’s width, and Height will change the height.
Choose Tools > Adjust Size, then select “Resample image.”
Enter a smaller value in the Resolution field.
The new size is shown at the bottom.
Web Authoring Lecture Notes by Brian Bird , are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.