Editing an ImageLesson 68 of 78

Module 8 · Out of the editor: size, sharpness and the delivered file

Nearest, bicubic, Lanczos: what the resize dialogue is computing

In this lesson

  • 10 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 1 of 11 in this chapter

This chapter’s goalTake a finished edit to a delivered file for any named destination: computing the pixel dimensions from the destination rather than the source, choosing a resampling filter and a colour space by mechanism, sharpening last and at output size, selecting the codec and quality by measurement rather than habit, and predicting what a platform’s own re-encoding pipeline will do to the result.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
A checkerboard of 0 and 255, reduced until one pixel covers two squaresAverage the light, thenencode: 18874Average the storednumbers: 12850Point sample: whicheversquare it lands on100per cent of full scaleHalf the light is gone, so the honest answer is about 188. Averaging the stored numbers gives 128,which emits roughly 22 per cent of the light, less than half of what it should. Point sampling doesnot average at all, which is where the moiré on a striped shirt comes from. GIMP and Krita reduce inlinear light by default; Photoshop and every web browser do not.
Half the light is gone, so the honest answer is about 188. Averaging the stored numbers gives 128, which emits roughly 22 per cent of the light, less than half of what it should. Point sampling does not average at all, which is where the moiré on a striped shirt comes from. GIMP and Krita reduce in linear light by default; Photoshop and every web browser do not.

Figure 8.1

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

A resize is a question about pixels that do not exist

Reduce a 4000-pixel image to 1600 and you are asking for a new grid whose samples fall between the old ones. Nothing in the file sits at the new positions. The algorithm decides what each new pixel should be, and the different algorithms are different answers to that question.

The dropdown in the resize dialogue is not decoration. On a photograph the difference is small; on a striped shirt, a wire fence, a mask or a screenshot it decides whether the result is usable.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Design, before Any Software exam.

Stuck on something?Ask Neema, your AI tutor

How to cite: Addaly (2026) ‘Nearest, bicubic, Lanczos: what the resize dialogue is computing’, in Editing an Image. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/image-editing/resampling-algorithms (Accessed: 27 November 2026).