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

[FEATURE] enable support for URL scheme content:// #1

Open
ryaa opened this issue Jul 29, 2024 · 3 comments
Open

[FEATURE] enable support for URL scheme content:// #1

ryaa opened this issue Jul 29, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@ryaa
Copy link
Member

ryaa commented Jul 29, 2024

Right not the plugin works with URLs having scheme file:// but does not correctly handle URLs with scheme content://

@ryaa ryaa added the enhancement New feature or request label Jul 29, 2024
@ryaa ryaa self-assigned this Jul 29, 2024
@ryaa
Copy link
Member Author

ryaa commented Jul 29, 2024

Need to add smth like below for getCoordinates method

        if (fileUri.getScheme().equals("content")) {
            InputStream imageStream = null;
            imageStream = context.getContentResolver().openInputStream(fileUri);
            final ExifInterface exifInterface = new ExifInterface(imageStream);
            return exifInterface.getLatLong();
        }

@Myphz
Copy link

Myphz commented Sep 21, 2024

Hello, thanks for your plugin! Any updates for this feature? It'd be really useful for me!

@ryaa ryaa pinned this issue Sep 21, 2024
@ryaa
Copy link
Member Author

ryaa commented Sep 22, 2024

Hello, thanks for your plugin! Any updates for this feature? It'd be really useful for me!

This is still in queue. PR is welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants