Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Library doesn't work with Camera Roll assets #138

Open
0plus1 opened this issue Sep 4, 2020 · 3 comments
Open

Library doesn't work with Camera Roll assets #138

0plus1 opened this issue Sep 4, 2020 · 3 comments

Comments

@0plus1
Copy link

0plus1 commented Sep 4, 2020

More than an issue I want to give a heads up to people interested in this library for local image manipulation: it simply does not work.

Assuming you can get over the hurdle of loading a camera roll image (you can but you have to manually instantiate an expo Asset class), you are going to get into other issues, the most notable one being:

TypeError: undefined is not an object (evaluating 'texture.defaultAnchor.x')]

This happens because for some reason this library doesn't correctly set height/width with local assets.
This repo is full of open requests and “solutions” which are hacks on top of hacks.

If you need to work with local assets stay clear of this library.

Would love to be proven wrong by someone posting the loading of an asset-library HEIC without using polyfills or reference juggling.

@josmontes
Copy link

Hello @0plus1 I'm looking for a way to draw or add stickers on top of a local image, did you find any other alternatives? Thanks

@0plus1
Copy link
Author

0plus1 commented Oct 7, 2020

Hi Jos,
Not really, the only Library that actually works is the base ExpoGL library: https://docs.expo.io/versions/latest/sdk/gl-view/
It's pretty low level and high effort but it's stable and actually does work.

@josmontes
Copy link

Thanks!

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

No branches or pull requests

2 participants