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

ngImgCrop in ionic iOS throwing [Generic] Creating an image format with an unknown type is an error #170

Open
hschaffer22 opened this issue Jan 4, 2017 · 1 comment

Comments

@hschaffer22
Copy link

I'm working on an ionic app that uses ngImgCrop and ngFileUpload. My code runs perfectly as a web app with AngularJS, but, when I convert it to an Ionic app on iOS, it throws this error:

[Generic] Creating an image format with an unknown type is an error

Here's the html:

<div ngf-drop ng-model="picFile" ngf-pattern="image/*"
             class="cropArea"
             ngf-fix-orientation="true"
             ngf-select>
            <img-crop image="picFile  | ngfDataUrl"                 
            result-image="croppedDataUrl" ng-init="croppedDataUrl=''"
            area-type="square"
            result-image-aspect="4x9">
            </img-crop>
        </div>

I tested to see if the fork was causing the issue, but it persisted even when I removed the aspect ratio and used the original file.

Any help would be much appreciated.

@kieranrushby
Copy link

hschaffer22, did you get anywhere with this? i'm having the same problem

Thanks

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

2 participants