We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ImageTransformations.imresize
ImageTransformations.jl/src/resizing.jl
Lines 32 to 93 in 7557c6c
line 38: ratio is provided, the output size is then ceil(Int, size(img).*ratio)
line 38:
ratio
ceil(Int, size(img).*ratio)
But running this returns error because obviously size(img) returns a tuple. To fix this I suggest:
size(img)
sz = ceil.(Int, size(img).*ratio)
to broadcast the ceil function.
ceil
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ImageTransformations.jl/src/resizing.jl
Lines 32 to 93 in 7557c6c
In lines 37-38 there is a typo, namely:
line 38:
ratio
is provided, the output size is thenceil(Int, size(img).*ratio)
But running this returns error because obviously
size(img)
returns a tuple. To fix this I suggest:sz = ceil.(Int, size(img).*ratio)
to broadcast the
ceil
function.The text was updated successfully, but these errors were encountered: