Giter Site home page Giter Site logo

rosberry / media-picker-android Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 1.34 MB

With a few lines of code you can get media files(photos) from your android file system

Home Page: https://rosberry.com

License: Apache License 2.0

Java 100.00%
android multimedia-library picker-library photopicker chooser-library

media-picker-android's Introduction

MediaPicker

Platform Download Size

Library that helps a few lines of code to get media files(photos) from the android file system

Main goal of this library is to make photos choosing process as simple as possible and to make it easier for developers to integrate it into their apps.

Features

  • Pick photos from Camera, Gallery and Cloud
  • Support image formats: JPEG, PNG, WEBP, GIF
  • Support video formats: mp4, mpeg, mpeg4, m4v, mkv, webm, avi, 3gp
  • Set up target photo parameters(rotation, size, compression and quality)

Usage

Add dependency to your build.gradle file:

compile 'com.github.neestell:mediapicker:1.2.2'

Note: min SDK version for library is 14

Usage wiki

Sample app sources

License

Copyright 2017 Rosberry

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

media-picker-android's People

Contributors

neestell avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

morristech

media-picker-android's Issues

Unsupported image format file for ExifInterface

Sometimes picking a photo from the gallery causes this IOException: Invalid image: ExifInterface got an unsupported image format file(ExifInterface supports JPEG and some RAW image formats only) or a corrupted JPEG file to ExifInterface.

Stack trace:
java.io.IOException: Invalid marker: 89 at android.media.ExifInterface.getJpegAttributes(ExifInterface.java:1835) at android.media.ExifInterface.loadAttributes(ExifInterface.java:1475) at android.media.ExifInterface.<init>(ExifInterface.java:1112) at com.rosberry.mediapicker.util.ExifUtils.getExifOrientation(ExifUtils.java:45) at com.rosberry.mediapicker.util.PhotoUtils.getRotation(PhotoUtils.java:119) at com.rosberry.mediapicker.MediaPhotoProcessor.loadInBackground(MediaPhotoProcessor.jav at com.rosberry.mediapicker.MediaPhotoProcessor.loadInBackground(MediaPhotoProcessor.jav at android.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:312) at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:69) at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:66) at android.os.AsyncTask$2.call(AsyncTask.java:304) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:762)

The image that causes this exception is provided below:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.