Questions tagged [image-loading]

386 questions
6
votes
0 answers

Benefits of .centerCrop()

I'm asking this question out of curiosity. Basically I'm using glide for loading images into imageView by setting the scaleType of image to centerCrop .But what I'm asking is Is it worth or good practice to use the glide's centercrop method instead…
Srinivas Nahak
  • 1,846
  • 4
  • 20
  • 45
6
votes
3 answers

How to load low quality and then high quality image afterwards in android (just like WhatsApp profile image)

I am searching for a design pattern i can use so that in android recyclerView i can load images quickly at low quality and then also make a call to for a high quality image will will write over the low quality image afterwards . I see it often where…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
6
votes
5 answers

png image blurry when loaded onto texture

I have created a png image in photoshop with transparencies that I have loaded into and OpenGL program. I have binded it to a texture and in the program the picture looks blurry and I'm not sure why. alt text…
Chris
  • 3,036
  • 5
  • 36
  • 53
6
votes
6 answers

Load images from bottom to top?

Is it possible to load images from bottom to top? Assume that I have a long, very long image that needs 60 seconds to load. And the content is readable from bottom to top, can I do anything to make the browsers to load my image from bottom to top so…
Tony Dinh
  • 6,668
  • 5
  • 39
  • 58
5
votes
2 answers

How to force Firefox (Version 6) to free memory?

I'm working on a slide-show-like web app in which the current image is drawn onto a canvas and you can flip through images with next/prev buttons. The images a loaded with someImage.src and for performance reasons I'm doing that in background while…
Kai Huppmann
  • 10,705
  • 6
  • 47
  • 78
5
votes
2 answers

SecurityError: Error #2000: No active security context

I recently had this vague error happen to me with the use of LocalConnection. It happened every time I tried to connect and send data to another swf. Doing an internet search came up with little results pertaining to LocalConnection and this error…
5
votes
1 answer

Glide, Clear cache when cache size is larger than 50 mb

I am using Glide library for image loading. There is lot of images in my app so I want to clear cache once cache size is larger than 50 mb. Can someone help me to do so?
Sapna Sharma
  • 460
  • 7
  • 22
5
votes
1 answer

GIF Image Animation using Picasso

I just migrate my android application from Glide. But i've problem when trying to play GIF Image. Is it any solution to play GIF image using Picasso? Thank you.
ikhsanudinhakim
  • 1,554
  • 16
  • 23
5
votes
3 answers

Loading image using Picasso showing colors in corners

I use Picasso library for loading images in my app. But in some images,it shows a colored corner.See the red color in attached image. Does anyone know why this happens? How to sort this out? Code: Picasso picasso = Picasso.with(getActivity()); …
Jas
  • 3,207
  • 2
  • 15
  • 45
5
votes
1 answer

Android: lazy loading in Gallery

I've reviewed some posts about lazy loading but I believe my problem is a bit different. I have a gallery (my class extends Gallery) which displays 20 rather large in size images (400-500K each). I cannot load them all to gallery since I get an…
Rob
  • 15,041
  • 6
  • 25
  • 27
5
votes
1 answer

Android picasso, error reason

How do I get error description in picasso : Picasso.with(context) .load(getUrl()) .placeholder(R.drawable.user_thumbnail_big) .error(android.R.drawable.ic_dialog_alert) .into(viewModel.userImg); Callback…
Mickey Tin
  • 3,408
  • 10
  • 42
  • 71
5
votes
1 answer

Android picasso multi-thread

I looked over the documentation of Picasso and couldn't see anything about threading. What will happen if I run something like this (for ListView): for(String url : urlArray) { Picasso.with(context).load(url).into(Holder.imageView); } would the…
vlio20
  • 8,955
  • 18
  • 95
  • 180
5
votes
2 answers

Loading an image using Pyglet

I am playing around with pyglet 1.2alpha-1 and Python 3.3. I have the following (extremely simple) application and cannot figure out what my issue is: import pyglet window = pyglet.window.Window() #image = pyglet.resource.image('img1.jpg') image =…
Mike Caputo
  • 1,156
  • 17
  • 33
5
votes
1 answer

Updating the profile picture of a user

I am making an application where I am using ImageLoading Framework for downloading the images from the server and put the URLs in the cache. Now I want the user's profile picture updating but even after updation of the profile pic on the sever it's…
Alpesh
  • 265
  • 2
  • 7
  • 22
5
votes
3 answers

Test if all images are loaded

Here is my attempt at the ability to test if all images are loaded: for (var i = 0; i < imgCount; i ++) { loadArr[i] = false imgArr[i] = new Image() imgArr[i].src='img'+i+'.png' imgArr[i].onload = function() { loadArr[i] =…
tckmn
  • 57,719
  • 27
  • 114
  • 156
1 2
3
25 26