diegocarloslima / byakugallery Goto Github PK
View Code? Open in Web Editor NEWAn open source Android library that allows the visualization of large images with gesture capabilities
License: Apache License 2.0
An open source Android library that allows the visualization of large images with gesture capabilities
License: Apache License 2.0
I am making an application with a requirement of initial scale as fitCenter and ability to zoom beyond actual pixel size of image,
Unfortunately since this library throws exception if any scale type other than matrix is selected plus it does not let zoom beyond pixel limit
I'd love to see this library get uploaded to the Maven central repository so it could easily be used in Android Studio projects with no hassle.
priority hight bug !
the work thread is blocked by
mDecodeQueue.take();
and no chance to interrupt
When i use GalleryViewPagerSampleActivity (with fast scroll and zoom in) on Galaxy S3, it show error:
02-05 15:49:29.094: E/AndroidRuntime(20628): FATAL EXCEPTION: AsyncTask #4
02-05 15:49:29.094: E/AndroidRuntime(20628): java.lang.RuntimeException: An error occured while executing doInBackground()
02-05 15:49:29.094: E/AndroidRuntime(20628): at android.os.AsyncTask$3.done(AsyncTask.java:299)
02-05 15:49:29.094: E/AndroidRuntime(20628): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
02-05 15:49:29.094: E/AndroidRuntime(20628): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
02-05 15:49:29.094: E/AndroidRuntime(20628): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
02-05 15:49:29.094: E/AndroidRuntime(20628): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
02-05 15:49:29.094: E/AndroidRuntime(20628): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
02-05 15:49:29.094: E/AndroidRuntime(20628): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
02-05 15:49:29.094: E/AndroidRuntime(20628): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
02-05 15:49:29.094: E/AndroidRuntime(20628): at java.lang.Thread.run(Thread.java:856)
02-05 15:49:29.094: E/AndroidRuntime(20628): Caused by: java.lang.OutOfMemoryError
02-05 15:49:29.094: E/AndroidRuntime(20628): at android.graphics.Bitmap.nativeCreate(Native Method)
02-05 15:49:29.094: E/AndroidRuntime(20628): at android.graphics.Bitmap.createBitmap(Bitmap.java:640)
02-05 15:49:29.094: E/AndroidRuntime(20628): at android.graphics.Bitmap.createBitmap(Bitmap.java:586)
02-05 15:49:29.094: E/AndroidRuntime(20628): at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:466)
02-05 15:49:29.094: E/AndroidRuntime(20628): at com.diegocarloslima.byakugallery.lib.TileBitmapDrawable$InitializationTask.doInBackground(TileBitmapDrawable.java:389)
02-05 15:49:29.094: E/AndroidRuntime(20628): at com.diegocarloslima.byakugallery.lib.TileBitmapDrawable$InitializationTask.doInBackground(TileBitmapDrawable.java:1)
02-05 15:49:29.094: E/AndroidRuntime(20628): at android.os.AsyncTask$2.call(AsyncTask.java:287)
02-05 15:49:29.094: E/AndroidRuntime(20628): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
02-05 15:49:29.094: E/AndroidRuntime(20628): ... 5 more
02-05 15:49:29.144: D/skia(20628): ---- fAsset->read(757392) returned 0
I use MuPDF library, in which we provide pdf's to the library and it gives me bitmaps.Now I need to tile this bitmaps.How to use this library according to my requirement in Eclipse.Thank you
Hi,
When i close the GalleryViewPagerSampleActivity or TouchImageViewSampleActivity, the native heap is not recycled, therefore, if i start these activities and close and start again and so on, the heap would increase forever, and lag the phone, is there any way to solve this issue please?
Thank you.
I've tried using a portrait image from resource (which I took from the camera) but it appears landscape no matter what i've tried... Is there a way to display it correctly?
thanks
Maybe there is way that i can use this library to display long image in ListView or RecyclerView?
Instead of throwing a RuntimeException
in AsncTask, use a listener for error callbacks
so that Vertically scrolling widgets would work
I am passing image paths from my photo gallery to this library, when it loads them in gallery view in the sample provided, the image is not sharp it is down sampled too much.
How can I stop it from making the image too low quality?
I played around with InitializationTask in TileBitmapDrawable and set options.inSampleSize = 1 as well as other things but it made no difference
Now i have a picture, it's size is 990 X 18464 , when first load picture into imageview, it's's very small.
I onDoubleTap it ,it looks better.
I had seen mMaxScale in TouchImageView, but no mMinScale , please help me , thank you
Thanks you for awesome library. But I have a question. Do this library support load image from a bitmap.
Because I have a use case : download image from universal image loader, and get a bitmap from it. But I can't use your library to display from bitmap
Hello,
First off thank you for making this. It appears to be just what I need. However, if I just set the TouchImageView the image shows up but is not scalable at all. It only seems to work if I also use TileBitmapDrawable. In particular I am using it with picasso. The image display but is not scalable. Is there a way to get it to work without the TileBitmapDrawable? Or to pass a bitmap to TileBitmapDrawable?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.