Skip to content

Adjust ​

Photos taken in poor light come out dark or gray. Adjust changes the brightness and the contrast and keeps the colors, for documents that should not become black and white, such as colored forms or photos.

Use it ​

  1. Press Edit, then Adjust. Its panel takes the place of the tools: a ruler, and Brightness and Contrast to choose which tone it changes.
  2. Drag the ruler. The preview changes while you drag. Choose Contrast to change the other tone with the same ruler.
  3. Press Done to keep both tones as one edit, which Undo removes. Cancel this tool leaves the image as it was.

The middle of the ruler leaves the image as it is, and the needle catches there, so it is easy to go back to no change. Screen readers announce the value from -100 to 100, such as "Brightness +30". A dot on Adjust marks values that are not 0.

Adjust runs after the other edits, so Crop and Straighten show the image with it.

Adjust or Clean up? ​

AdjustClean up
Keeps the colors and the graysTurns the document gray, or into black and white
For colored forms, stamps and photosFor text on paper
Keeps the format of the sourceGives PNG

In black and white, Adjust is disabled. Black and white compares each pixel with its surroundings, so brightness and contrast would barely change its result. Screen readers hear why it is disabled. With gray, Adjust works, and gray comes after it.

From code ​

setAdjustments() takes values from -1 to 1, where 0 is no change, and getState() returns them in adjustments:

ts
pic.edit()
pic.setAdjustments({ brightness: 0.2, contrast: 0.3 })

While Adjust is open, setAdjustments() changes what its panel shows, and confirmTool() keeps it as one edit.

In the tools option, Adjust is 'adjust'.

Released under the MIT License.