Image EditingLesson 202Free preview
Resize Image
This lesson is part of Web Developer Tools · All levels
Summary
Resize changes the number of pixels in an image, either shrinking for web needs or enlarging for a particular view. When you shrink, the detail is discarded and the file size usually decreases; when you magnify, new pixels are counted and the original detail does not increase. Maintaining aspect ratio is important so that the image does not look flat or elongated.
Key points
- Resize the pixels, not just the size of the display.
- Key the aspect ratio so the image proportions stay the same
- Downscale reduces file detail and size
- Upscale can't create details that don't exist.
- Use appropriate resampling algorithms, for example Lanczos for good quality
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.