Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imresize failed with ARGB32 #97

Closed
guo-yong-zhi opened this issue Aug 26, 2020 · 1 comment · Fixed by #126
Closed

imresize failed with ARGB32 #97

guo-yong-zhi opened this issue Aug 26, 2020 · 1 comment · Fixed by #126

Comments

@guo-yong-zhi
Copy link

using ImageTransformations
using Colors

@show imresize([ARGB{N0f8}(1,1,1),ARGB{N0f8}(1,1,1)], ratio=2)
@show imresize([ARGB32(1,1,1),ARGB32(1,1,1)], ratio=2)
ARGB{N0f8} <: AlphaColor, ARGB32 <: AlphaColor
imresize([ARGB{N0f8}(1, 1, 1), ARGB{N0f8}(1, 1, 1)], ratio = 2) = ARGB{Normed{UInt8,8}}[ARGB{N0f8}(1.0,1.0,1.0,1.0), ARGB{N0f8}(1.0,1.0,1.0,1.0), ARGB{N0f8}(1.0,1.0,1.0,1.0), ARGB{N0f8}(1.0,1.0,1.0,1.0)]

TypeError: in Type{...} expression, expected UnionAll, got Type{ARGB32}

Stacktrace:
 [1] imresize_type(::ARGB32) at /mnt/cache/qaz/.julia/packages/ImageTransformations/J3Mno/src/resizing.jl:309
 [2] imresize(::Array{ARGB32,1}, ::Tuple{Int64}) at /mnt/cache/qaz/.julia/packages/ImageTransformations/J3Mno/src/resizing.jl:281
......
@johnnychen94
Copy link
Member

johnnychen94 commented May 22, 2021

This is already fixed in upstream packages (Colors or ColorTypes) so I'm just closing it.

Edit:

Oh, wait. It's ARGB32 that fails.. I'll make a patch for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants