Code Monkey home page Code Monkey logo

react-native-image-size's Introduction

๐Ÿ‘จโ€๐Ÿ’ป Ivan Sarokin

I am a full stack developer with deep experience at all stages of application development.

๐Ÿงฐ Languages and Tools

Here is a small list of tools that I work with and have experience with

Main languages


js

ts

html5

css3

objective-c





Front-end


react

react-native

redux

angular





Back-end


node

express

nest

socketio

socketio





Databases


mysql

MariaDB

postfresql

redis

sqlite

dynamodb

aws rds

Elastic Search

Mongo DB

MSSql

Firebase





Developer Tools


babel

chai

mocha

webpack

gulp

rollupjs

sentry

prometheus

grafana

sonarqube

sonarqube

grafana

jetbrains





CI/CD


docker

kubernetes

gitlab

github

bitbucket

circleci

argo

terraform

aws





Clouds and Services


aws

oracle

salesforce

digitalocean

heroku

zendesk

remedy

service-now





Additional experience


c

c++

c#

java

objective-c

gatling





react-native-image-size's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-native-image-size's Issues

URI format

I am trying to load an image in base 64 (data:application/octet-stream;base64,/9j/4AAQSk....) format but I always get the Error: unknown protocol: data. I am getting a blob from the server which I convert to base64 to display in the app. Should I do something special with it to be able to get the size?

Android release bug fails

Hi!

Firstly thank you for creating this project, we have been using it while in development for our new app and it works ๐Ÿ‘

But, today when I tried to build signed apk, I couldn't due to problem with this plugin (I have double checked this, by removing plugin).

Here is command that I have run: ./gradlew assembleRelease
And here is error I got:

11:58:16.064 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
11:58:16.064 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
11:58:16.064 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
11:58:16.064 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':react-native-image-size:verifyReleaseResources'.
11:58:16.064 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed 

Please note that this is NOT happening running:

  1. react-native run-android
  2. react-native run-android --variant="release"

Both on device and emulator

Can not get size image on android 10

  • I get error when select image from SD card
  • Error: unknown protocol: content
    at Object.promiseMethodWrapper [as getSize] (NativeModules.js:103)
    at _callee$ (index.js:48)
    at tryCatch (runtime.js:45)
    at Generator.invoke [as _invoke] (runtime.js:271)
    at Generator.prototype. [as next] (runtime.js:97)
    at tryCatch (runtime.js:45)
    at invoke (runtime.js:135)
    at runtime.js:145
    at tryCallOne (core.js:37)
    at core.js:123

Alternate to big image files

For Android Only.

The library works great for small image sizes.

Considering image sizes varying from 4MB+, the conversion of image to bitmap and then fetching resolution takes a lot of time and causes bad UX in the application.

how to send headers

to get the image size, you also need to send headers.
Does this library have the ability to send headers?

for example, in react-native there is such a possibility - getSizeWithHeaders()

Android build error: variable bitmap is already defined

After upgrading the package, there is a build error on Android.

.../node_modules/react-native-image-size/android/src/main/java/com/existfragger/rnimagesize/RNImageSizeModule.java:62: error: variable bitmap is already defined in method getSize(String,Promise)
                Bitmap bitmap = BitmapFactory.decodeStream((InputStream) input);
                       ^
1 error

FAILURE: Build failed with an exception.

Does it cache?

Question, does it cache request if used with ?

Or it will cause to download same image twice?

Issue in getSize

image

ImageSize.getSize(image).then(size => { width = parseInt(size.width); height = parseInt(size.height);

Please let me know what the problem is.

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.