Skip to content

Commit

Permalink
Add Basic Adjustments doc section
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Jul 20, 2024
1 parent 065f77f commit cafdf30
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
30 changes: 15 additions & 15 deletions lib/image.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7760,7 +7760,7 @@ defmodule Image do
"""
@doc since: "0.34.0"
@doc subject: "Operation"
@doc subject: "Basic Adjustments"

@spec brightness(image :: Vimage.t(), brightness :: float()) ::
{:ok, Vimage.t()} | {:error, error_message()}
Expand Down Expand Up @@ -7801,7 +7801,7 @@ defmodule Image do
"""
@doc since: "0.34.0"
@doc subject: "Operation"
@doc subject: "Basic Adjustments"

@spec brightness!(image :: Vimage.t(), brightness :: float()) :: Vimage.t() | no_return()
def brightness!(%Vimage{} = image, brightness) when is_multiplier(brightness) do
Expand Down Expand Up @@ -7847,7 +7847,7 @@ defmodule Image do
# https://stackoverflow.com/questions/73601395/adjusting-contrast-in-vips-the-same-way-as-the-matching-css-filter

@doc since: "0.35.0"
@doc subject: "Operation"
@doc subject: "Basic Adjustments"

@spec contrast(image :: Vimage.t(), contrast :: float()) ::
{:ok, Vimage.t()} | {:error, error_message()}
Expand Down Expand Up @@ -7900,7 +7900,7 @@ defmodule Image do
"""
@doc since: "0.35.0"
@doc subject: "Operation"
@doc subject: "Basic Adjustments"

@spec contrast!(image :: Vimage.t(), contrast :: float()) :: Vimage.t() | no_return()
def contrast!(%Vimage{} = image, contrast) when is_multiplier(contrast) do
Expand Down Expand Up @@ -7936,7 +7936,7 @@ defmodule Image do
"""
@doc since: "0.42.0"
@doc subject: "operation"
@doc subject: "Basic Adjustments"

@spec invert(image :: Vimage.t()) :: {:ok, Vimage.t()} | {:error, error_message()}
def invert(%Vimage{} = image) do
Expand Down Expand Up @@ -7969,7 +7969,7 @@ defmodule Image do
"""
@doc since: "0.42.0"
@doc subject: "operation"
@doc subject: "Basic Adjustments"

@spec invert!(image :: Vimage.t()) :: Vimage.t() | no_return()
def invert!(%Vimage{} = image) do
Expand Down Expand Up @@ -8023,7 +8023,7 @@ defmodule Image do
"""
@doc since: "0.35.0"
@doc subject: "Operation"
@doc subject: "Basic Adjustments"

@spec modulate(image :: Vimage.t(), options :: Options.Modulate.modulate_options()) ::
{:ok, Vimage.t()} | {:error, error_message}
Expand Down Expand Up @@ -8084,7 +8084,7 @@ defmodule Image do
"""
@doc since: "0.35.0"
@doc subject: "Operation"
@doc subject: "Basic Adjustments"

@spec modulate!(image :: Vimage.t(), options :: Options.Modulate.modulate_options()) ::
Vimage.t() | no_return()
Expand Down Expand Up @@ -8136,7 +8136,7 @@ defmodule Image do
"""
@doc since: "0.35.0"
@doc subject: "Operation"
@doc subject: "Basic Adjustments"

@spec equalize(image :: Vimage.t(), bands :: Options.Equalize.equalize_option()) ::
{:ok, Vimage.t()} | {:error, error_message()}
Expand Down Expand Up @@ -8255,7 +8255,7 @@ defmodule Image do
"""
@doc since: "0.35.0"
@doc subject: "Operation"
@doc subject: "Basic Adjustments"

@spec equalize!(image :: Vimage.t(), bands :: Options.Equalize.equalize_option()) ::
Vimage.t() | no_return()
Expand Down Expand Up @@ -8328,7 +8328,7 @@ defmodule Image do
"""
@doc since: "0.35.0"
@doc subject: "Operation"
@doc subject: "Basic Adjustments"

@spec apply_tone_curve(image :: Vimage.t(), options :: Options.ToneCurve.tone_curve_options()) ::
{:ok, Vimage.t()} | {:error, error_message()}
Expand Down Expand Up @@ -8403,7 +8403,7 @@ defmodule Image do
"""
@doc since: "0.35.0"
@doc subject: "Operation"
@doc subject: "Basic Adjustments"

@spec apply_tone_curve!(image :: Vimage.t(), options :: Options.ToneCurve.tone_curve_options()) ::
Vimage.t() | no_return()
Expand Down Expand Up @@ -8473,7 +8473,7 @@ defmodule Image do
"""
@doc since: "0.35.0"
@doc subject: "Operation"
@doc subject: "Basic Adjustments"

@spec local_contrast(
image :: Vimage.t(),
Expand Down Expand Up @@ -8564,7 +8564,7 @@ defmodule Image do
"""
@doc since: "0.34.0"
@doc subject: "Operation"
@doc subject: "Basic Adjustments"

@spec saturation(image :: Vimage.t(), saturation :: float()) ::
{:ok, Vimage.t()} | {:error, error_message()}
Expand Down Expand Up @@ -8606,7 +8606,7 @@ defmodule Image do
"""
@doc since: "0.34.0"
@doc subject: "Operation"
@doc subject: "Basic Adjustments"

@spec saturation!(image :: Vimage.t(), saturation :: float()) :: Vimage.t() | no_return()
def saturation!(%Vimage{} = image, saturation) when is_multiplier(saturation) do
Expand Down
1 change: 1 addition & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ defmodule Image.MixProject do
defp groups_for_docs do
[
"Files and streams": &(&1[:subject] == "Load and save"),
"Basic Adjustments": &(&1[:subject] == "Basic Adjustments"),
Operations: &(&1[:subject] == "Operation"),
Resize: &(&1[:subject] == "Resize"),
Crop: &(&1[:subject] == "Crop"),
Expand Down

0 comments on commit cafdf30

Please sign in to comment.