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

RangeError on some larger sized JPGs: Offset is outside the bounds of the DataView #111

Open
djuerges opened this issue Sep 11, 2020 · 0 comments

Comments

@djuerges
Copy link

Using this example file, you get the following stack trace and the image preview shows up empty.

5 MB

core.js:6210 ERROR RangeError: Offset is outside the bounds of the DataView
at DataView.getUint16 ()
at readTags (eval at push.../node_modules/script-loader/addScript.js.module.exports (addScript.js:20), :2006:28)
at readEXIFData (eval at push.../node_modules/script-loader/addScript.js.module.exports (addScript.js:20), :2161:24)
at findEXIFinJPEG (eval at push.../node_modules/script-loader/addScript.js.module.exports (addScript.js:20), :1893:24)
at handleBinaryFile (eval at push.../node_modules/script-loader/addScript.js.module.exports (addScript.js:20), :1803:24)
at XMLHttpRequest.http.onload [as __zone_symbol__ON_PROPERTYload] (eval at push.../node_modules/script-loader/addScript.js.module.exports (addScript.js:20), :1831:21)
at XMLHttpRequest.wrapFn (zone-evergreen.js:1218)
at ZoneDelegate.invokeTask (zone-evergreen.js:399)
at Object.onInvokeTask (core.js:41709)
at ZoneDelegate.invokeTask (zone-evergreen.js:398)

We use the library in the following way

<ui-cropper image="$ctrl.image | ngfDataUrl" result-image="$ctrl.ngModel" area-type="{{$ctrl.areaType}}" area-min-size="16" aspect-ratio="$ctrl.cropAspectRatio" result-image-size="$ctrl.imageSize" init-max-area="false" result-image-quality="0.8" result-image-format="$ctrl.contentType" on-load-begin="$ctrl.beforeChange()" on-load-done="$ctrl.onChange()" chargement="'PROCESSING' | translate">

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

No branches or pull requests

1 participant