Image cache reduces client-server requests for images.Image cache is useful for fast retrieval of images. we can store server side images in application using image cache and retrieve any time when we want even if server connected or not.
Questions tagged [image-caching]
222 questions
2
votes
0 answers
Where to set image cache when using Combine framwork
Learning how to cache image with native NSCache in YouTube.
Below is the example code, which is working well. I could see it set the image into cache in getImageFromResponse method after data is returned from URLSession.shared.dataTask. Well, it is…

Zhou Haibo
- 1,681
- 1
- 12
- 32
2
votes
2 answers
Cache of Original Image Is Not Reused When Applying Transform in Picasso
I am trying to switch between the original and transformed bitmaps using Picasso.
The problem is the first time the original is loaded it seems to be cached, but when I load the transformed image then it seems to reload the image again and not…

Rainmaker
- 10,294
- 9
- 54
- 89
2
votes
1 answer
Show Local Images and Server Images ( with Caching) in Flutter
I am trying to show the image in a Widget picked from Image-Gallery as well as from the Network loaded images.
CachedNetworkImage is working fine with Network-images but when I try to pass selected image from gallery it's not working.…

user532445
- 723
- 2
- 13
- 28
2
votes
4 answers
Migrated Web Forms Application .NET 2.0 -> 3.5, new infrastructure - Images Not Caching in IE 6
I have been migrating a .NET 2.0 web forms application to use .NET 3.5 and a new infrastructure. There is a GridView inside an UpdatePanel, with an Actions column which contains icons to perform an action for that row. A problem that I am having in…

youwhut
- 948
- 3
- 17
- 37
2
votes
0 answers
How to write directly to Glide cache?
Our app supports both online and offline mechanism. That means the app should work and show the images regardless if there is an internet connection or not.
We're using Glide (4.2.0) library for images and everything works fine if there is an…

Zbarcea Christian
- 9,367
- 22
- 84
- 137
2
votes
0 answers
Server and client side caching not working on F5 on Firefox for ActionResults that return an image
I have a method for resizing images in my application. The method returns an ImageResult like it is shown below.
[CachingActionFilter(_maxAgeDuration)]
public ActionResult GetStaticImage(string filePath, int w, int h)
{
try
…

Anastasios Selmani
- 3,579
- 3
- 32
- 48
2
votes
1 answer
How to increase the cache size in Glide android?
According to the documentation ,
The internal cache factory places the disk cache in your application's internal cache directory and sets a maximum size of 250MB.
As I am trying to implement some offline features in my apps, it possibly require…

Aveek
- 849
- 1
- 12
- 28
2
votes
1 answer
Picasso displays in wrong orientation
Picasso.with(mContext).load(lPreviewData.getImage()).into(holder.lPreviewIV);
This is how I am rendering the image url to ImageView. Unfortunately when i render an image it was showing in landscape mode but the actual image is in portrait.

Simon Chius
- 476
- 5
- 18
2
votes
1 answer
how to cache image with a new one which have the same url?
i have listview to load images for alot of users and this listview item has an imageview for profile picture of user, the problem here if the user changed his the new image will not be shown as last profile picture is cached and the old one will be…

Mina Farid
- 5,041
- 4
- 39
- 46
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
Fresco not updating disk cache with images from the network
I have been trying to use Fresco library by Facebook.
From the documentation I understood that the caching of images works out of the box with the ImagePipelines when we use the SimpleDraweeView. I pretty much see things working perfectly only with…

mahesmohan
- 784
- 1
- 13
- 33
2
votes
1 answer
Generate image with Drupal imagecache before using imagecache_create_path & getimagesize
I'm using imagecache_create_path() and getimagesize() to get the path of a imagecache-generated image and its dimensions. However, if it's the first time we access the page that image doesn't exist yet and imagecache_create_path doesn't generate it…

ozke
- 1,622
- 4
- 25
- 44
2
votes
1 answer
Intervention Image cache with Laravel: works once, then "Image cannot be displayed as it contains errors"
As per the question title, I am using the Intervention package with Laravel. I have the following code in my routes file:
Route::get('resize-image/{pathkey}/{filename}/{w?}/{h?}', function($pathkey, $filename, $w=100, $h=100){
$cacheimage =…

Inigo
- 8,110
- 18
- 62
- 110
2
votes
2 answers
Picasso library is not loading images from the server correctly in a listview
I am trying to use RecylerView which Google introduced recently. I have a set of rows there, 7-8 for now, and each row has a image which I am getting from server. For this I am using Picasso library but this is not working for me. I am not sure if I…

N Sharma
- 33,489
- 95
- 256
- 444
2
votes
1 answer
volley imageCache and imageRequest both cache the image
i'm using volley to load my images and cache them.
mImageLoader = new ImageLoader(getRequestQueue(context), mImageCache);
which mImageCache is a DiskLruImageCache.
volley fetches images from server by ImageRequest which extend the…

EC84B4
- 7,676
- 4
- 23
- 34