Questions tagged [alamofireimage]

AlamofireImage is an image component library for Alamofire.

AlamofireImage is an image component library for Alamofire.

Features

  • Image Response Serializers
  • UIImage Extensions for Inflation / Scaling / Rounding / CoreImage
  • Single and Multi-Pass Image Filters
  • Auto-Purging In-Memory Image Cache
  • Prioritized Queue Order Image Downloading
  • Authentication with URLCredential
  • UIImageView Async Remote Downloads with Placeholders
  • UIImageView Filters and Transitions
  • Comprehensive Test Coverage
  • Complete Documentation

Requirements

  • iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+
  • Xcode 8.3+
  • Swift 3.1+

Migration Guides

Dependencies

179 questions
0
votes
1 answer

How can I download image in collection view and keep the image height in cell with Alamofireimage in Swift?

I want to download images with Alamofire and refresh my collectionView to see the images with the correct height size. Something like the foursquare gallery: My class is: // // ViewController.swift // ImageList // // Created by Dasoga on…
Dasoga
  • 5,489
  • 4
  • 33
  • 40
0
votes
1 answer

AlamoFire image memory issue

I use alamofireimage for loading images async and I use AutoPurgingImageCache for caching the loaded images (url request). I have a pull-to-refresh feature in my app and after I do that even if the app content remains the same I see that the app…
0
votes
1 answer

Swift - How to save memory using AlamofireImage/ImageShack?

I'm using Alamofire, AlamofireImage to cache images using ImageShack storage with Firebase backend. Sometimes memory comes over 100MB. I want to learn how to improve my image caching and well scaling before uploading. For example I have declared one…
iamburak
  • 3,508
  • 4
  • 34
  • 65
0
votes
1 answer

AlamofireImage 2.0 sessionManager issue

I am using the new AlamofireImage 2.1.0 version in my app and when trying to clear the image cache using imageDownloader.sessionManager.session.configuration.URLCache?.removeCachedResponseForRequest(URLRequest) I am receiving an error: Value of…
puks1978
  • 3,667
  • 11
  • 44
  • 103
-1
votes
2 answers

How can I mock the Alamofire Extension on UIImageView?

Alamofire has an extension on UIImageView that makes loading an image very easy. But, for unit testing my code, I would like to mock the result of the response, so that I can test success and failure. How can I mock the .af.setImage(withURL:)…
-1
votes
1 answer

Upload image with some other parameters

I upload image with some other parameters I write this code but can't success in this code I got some error how to resolve this issue also change parameters type(NSDictionary & String type) and Alamofire update pod. I face this line Error …
-1
votes
1 answer

Get Progress and Error operations with the same time on Async functions

I upload a file with Alamofire in Home VC. But upload func in the class function. So I didnt get the progress operations. I guess I have to write delegate Method. Anybody will help me? My Question is in ViewController !!! In SendPhoto.class class…
Ali Ihsan URAL
  • 1,894
  • 1
  • 20
  • 43
-1
votes
2 answers

How to fill images in to UICollectionView with Alamofire Swift 4

I have a Chat Log which is simply a UICollectionView. Every sell has an avatar (UIImage) and a text bubble. I'm trying to fill avatars with proper images by fetching avatars URL from the server with Alamofire like this: func collectionView(_…
Nastromo
  • 622
  • 1
  • 9
  • 16
-1
votes
2 answers

UIImageView image load issue with some specific URL's

I am using Alamofire (for Swift) & AFNetworking (for Objective c) and I am facing the same issue with both of them. Here is a sample URL "https://static.toiimg.com/photo/msid-61516774/61516774.jpg?59422" pretty basic URL but when I try to setImage…
-1
votes
2 answers

download images using alamofire - iOS

I'm using Alamofire to fetch data from server and then put them in an array of CarType objects which CarType is my struct. what I get from server is name , id and iconUrl. from iconUrls i want to download icons and put them in icon. after that I'll…
Hos Ap
  • 1,168
  • 2
  • 11
  • 24
-1
votes
2 answers

Some times alamofireImage did't load images

I tried this using normal winnerCell.challengeBannerURL.af_setImage(withURL: URL(string: winnerchallengesData[indexPath.row].challengeDetails.challenge_banner_url)!) It was working in normal call but not in AlamofireImage let data = try?…
Mahesh Giri
  • 1,810
  • 19
  • 27
-1
votes
1 answer

Best practice in terms of storing profile images in app

I'm creating an app where each user has a profile image that is around 30 kb. However i'm now quite sure what is the best way to store these images, i could store them in my realm object as NSData, but i guess this is not ideal. Otherwise i could…
Peter Pik
  • 11,023
  • 19
  • 84
  • 142
-2
votes
1 answer

Alamofire not recognizing Webp

Running on Apple TV I get the following error from Alamofire when trying to download a webp file: Request failed due to an underlying Alamofire error: Response Content-Type "image/webp" does not match any acceptable types:…
C6Silver
  • 3,127
  • 2
  • 21
  • 49
-2
votes
2 answers

Image upload on Alamofire.upload method in swift4

I have to upload a image using the Alamofire.upload(multipartFormData method. My code is below, but I get an error like this: FAILURE: responseSerializationFailed(Alamofire.AFError.ResponseSerializationFailureReason.jsonSerializationFailed(Error …
mouni
  • 327
  • 1
  • 3
  • 15
1 2 3
11
12