Questions tagged [image-loading]

386 questions
2
votes
1 answer

Android Glide: How to download bitmap at specific size?

I'm using Glide to load images on Scale ImageView - it is a custom view with pan and zoom gestures. I should pass Bitmap object to this custom view in order to set picture. So I can use Glide's .asBitmap() with SimpleTarget: private SimpleTarget…
Ruslan
  • 1,039
  • 1
  • 9
  • 16
2
votes
1 answer

Glide doesn't load images

I have an issue when loading images from web. There are some URLs when I hit them with Glide then it didn't show the image. For example: http://2.bp.blogspot.com/_wOtGwObrPyI/SgbEunh78vI/AAAAAAAAAx4/UAk7SuQkUu8/s320/s%C3%BCt%C3%A9s+1146.jpg The URL…
Dandelion
  • 423
  • 1
  • 5
  • 12
2
votes
1 answer

Load all images inside a class

I am loading 52 images that share the same class, when printing the loaded images to the console the amount of images that are outputting change each time I refresh. The desired output would be to load every image in the class, as I am trying to…
esd
  • 105
  • 1
  • 9
2
votes
1 answer

How to determine if Image is already drawn in HTML Canvas

supposed i have an image /site/image1.jpg upon drawing this to the canvas it would be something like this. var image = new Image(); image.src = "/site/image1.jpg"; image.onload = function(){ context.drawImage(image,x,y); } Assuming my internet…
Clark
  • 143
  • 1
  • 9
2
votes
2 answers

ASP.NET MVC - How do I load an image asynchronously?

On the home page of my site I want to display a lot of products which have images which are quite large. Currently the page is taking so long to load that it is actually timing out and the page fails to display! In MVC, or just ASP.NET in general,…
James
  • 80,725
  • 18
  • 167
  • 237
2
votes
1 answer

Shared transition element and Glide strategy

I am trying to work on a shared element transition using Glide image loading library. I have a RecyclerView with hundreds of images so I would like to save the memory (if possible) and makes the animation working. Glide creates a drawable that has…
Matroska
  • 6,885
  • 14
  • 63
  • 99
2
votes
2 answers

Casperjs click() doesn't trigger click event correctly

I'm using CasperJS for web scraping, but I encountered some problems on scraping the page I describe below. The html of the page looks like this: All
nevets
  • 4,631
  • 24
  • 40
2
votes
0 answers

Imaged loaded with Glide comes with very low resolution

I am using Glide 3.6.0 to load images from the web. It works for 99% of the times, but sometimes it shows the images in very low resolution. Here is one of this cases. The ImageView is declared in the XML in this way:
Daniele Vitali
  • 3,848
  • 8
  • 48
  • 71
2
votes
0 answers

Change image src using jQuery

I want to slide show of image on mouse over(all images in json array) and i need to change only img src. In this array image are in different size.Like some are 256X256 and some are 436x436. but for large image its giving an error on firefox "Image…
SINGH
  • 397
  • 1
  • 4
  • 16
2
votes
1 answer

Certain images not getting loaded with relative path - JavaFX

I'm developing a portable desktop application and the UI uses certain images. My application's absolute path is: C:/Users/JP/Documents/EOL/Collection/DataCollection/src/application/ I have my fxml and main class source files in application…
Jayaprakash Mara
  • 323
  • 4
  • 11
2
votes
2 answers

Image not loading with universal image loader

I am using Universal image loader for loading images and showing them in a ListView. Some of the links I have are with the image extension like this Link 1 :…
2
votes
2 answers

Cache all images via Android Universal Image Loader

I use Android Universal Image Loader library in my project. I implement offline work but this library starting to load and to cache images only before displaying the view with image. In this case when I turn off internet, this preloaded image will…
Val
  • 4,225
  • 8
  • 36
  • 55
2
votes
3 answers

How to preload images so they're loaded faster everywhere else on the page, and is it a good practice?

Here's the thing: I have a Google Map with a lot of markers in it. The problem is that the map loads, stays empty for a little while and only then markers are displayed. The markers are customized PNGs. My idea is to "preload" them (not sure it's…
Guillaume Flandre
  • 8,936
  • 8
  • 46
  • 54
2
votes
0 answers

OutOfMemoryException thrown due to ImageCache Memory Leak on Android

So I think I've found the source of my memory leak. Based on this article: http://android-developers.blogspot.ca/2009/01/avoiding-memory-leaks.html it's bad to have a static Bitmap drawable and set it on an ImageView. This is because, once set…
b.lyte
  • 6,518
  • 4
  • 40
  • 51
2
votes
2 answers

How can I control image loading when I can't modify some of the source code?

I'm working in a templating system that uses a series of plugins to output some markup. One of these plugins is a gallery that contains multiple images. As the gallery sizes grow, load speed gets impacted and I'm trying to come up with a creative…
Anders H
  • 641
  • 1
  • 11
  • 22