eikeon/NativeImaging — comment on commit 28a0dcd4a2b7ddee2d4caf164de5ccedf0b5ffe6
File: NativeImaging/backends/aware_cext.py line 100
By eikeon:

The blanket exception handling is less hazardous than not handling it at all, like before. That said, yes, it would better to be more explicit. The output size needs to be clamped to the size of the region being requested.

These changes also need to be made to the other aware backed; the ctypes one.

On Nov 2, 2011, at 4:44 PM, Chris Adams wrote:

> This blanket exception seems a bit hazardous: would it make sense to cap the height / width values used here at the image's dimensions and then apply resizing further down?
>
> --
> Reply to this email directly or view it on GitHub:
> https://github.com/eikeon/NativeImaging/commit/28a0dcd4a2b7ddee2d4caf164de5ccedf0b5ffe6#commitcomment-691421