Skip to content

Commit

Permalink
Handle all Image interpretations
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-akya committed Dec 20, 2024
1 parent 7e27839 commit 2a15fb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/vix/vips/image.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,7 @@ defmodule Vix.Vips.Image do
:VIPS_INTERPRETATION_CMYK -> "CMYK"
:VIPS_INTERPRETATION_LABQ -> "LabQ"
:VIPS_INTERPRETATION_RGB -> "RGB"
:VIPS_INTERPRETATION_CMC -> "CMC"
:VIPS_INTERPRETATION_UCS -> "UCS"
:VIPS_INTERPRETATION_LCH -> "LCh"
:VIPS_INTERPRETATION_LABS -> "LabS"
Expand All @@ -1296,8 +1297,11 @@ defmodule Vix.Vips.Image do
:VIPS_INTERPRETATION_FOURIER -> "Fourier"
:VIPS_INTERPRETATION_RGB16 -> "RGB16"
:VIPS_INTERPRETATION_GREY16 -> "GREY16"
:VIPS_INTERPRETATION_MATRIX -> "Matrix"
:VIPS_INTERPRETATION_HSV -> "HSV"
:VIPS_INTERPRETATION_ARRAY -> "Array"
:VIPS_INTERPRETATION_scRGB -> "scRGB"
interpretation -> String.trim_leading(to_string(interpretation), "VIPS_INTERPRETATION_")
end
end
end
Expand Down

0 comments on commit 2a15fb9

Please sign in to comment.