Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stemann committed Apr 20, 2024
1 parent 4ce2bd7 commit 0a2e0db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/decoding.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ function read_webp(
)::Matrix{CT} where {CT <: Colorant}
return decode(CT, Base.read(f); kwargs...)
end
read_webp(f::Union{AbstractString, IO}; kwargs...)::Matrix{RGB{N0f8}} = read_webp(RGB{N0f8}, f; kwargs...)
read_webp(f::Union{AbstractString, IO}; kwargs...)::Matrix{RGB{N0f8}} =
read_webp(RGB{N0f8}, f; kwargs...)
4 changes: 3 additions & 1 deletion test/decoding_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ using WebP
@test size(image) == expected_image_size
end

for TColor in [ARGB{N0f8}, BGR{N0f8}, BGRA{N0f8}, RGB{N0f8}, RGBA{N0f8}, Gray{N0f8}]
for TColor in [
ARGB{N0f8}, BGR{N0f8}, BGRA{N0f8}, RGB{N0f8}, RGBA{N0f8}, Gray{N0f8}
]
@testset "WebP.read_webp($TColor, $(joinpath(gallery.url, filename)); $kwargs)" begin
image = WebP.read_webp(TColor, file_path; kwargs...)
@test size(image) == expected_image_size
Expand Down

0 comments on commit 0a2e0db

Please sign in to comment.