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
4
votes
1 answer

How is Alamofireimage saving the image to disk cache?

I am trying to find out if it's possible to force an image to be saved on disk with Alamofireimage. Looking at the source code, I cannot locate where it is actually saving the image to the disk. Does anyone know?
dickyj
  • 1,830
  • 1
  • 24
  • 41
4
votes
1 answer

iOS 9 Alamofire never loads image

I'm using AlamofireImage for loading images into an ImageView in a tableview cell (in a separated xib file) The problem is that the image never shows up. I think the code is right and url is valid too. Here is the code (very simple): let…
Marta Tenés
  • 2,102
  • 1
  • 13
  • 22
4
votes
1 answer

How to Send Image as Base64String using Alamofire POST request and how to handle the request in Asp.net MVC4 web Api Controller?

A newbie in iOS and for my project I am using Alamofire(3.0.0) and as Backend asp.net MVC4 web Api. I have converted my image to base64string this way swift 2.0 var userProfileImage : String = "" func imagePickerController(picker:…
Joker
  • 830
  • 2
  • 14
  • 30
4
votes
2 answers

Download images via AlamofireImage framework with Content-Type: 'binary/octet-stream'

I try to download images from Amazon S3 server via AlamofireImage framework. The Images on the S3 server, save with 'Content-Type' = 'binary/octet-stream'. In the beginning I got the Error: Failed to validate response due to unacceptable content…
Guy Kahlon
  • 4,510
  • 4
  • 30
  • 41
4
votes
3 answers

Image downloading with progress using AlamofireImage?

Is there any way to download an image using AlamofireImage and get some kind of feedback about the download progress while leveraging the power of it's UIImage Extensions, Image Filters and Image Cache? I know I can fallback to a plain…
Sendoa
  • 4,705
  • 5
  • 27
  • 21
3
votes
1 answer

Handling base64String as response in Swift

I am receiving a base64String for Image in response of an Api but unable to get the result through Alamofire.request method (tried with get as well as post). Alamofire.request(ApiUrl, method: .get, parameters: [:] , encoding:JSONEncoding.default,…
Preetika
  • 702
  • 8
  • 21
3
votes
0 answers

Alamofire ImageDownloader request cancelled with error code -999

Edit: See solution in comments. I am attempting to download user profile avatars from our server, and am experiencing an issue, where regardless of the URL, Alamofire ImageDownloader requests fail with a "cancelled" status and an error code -999. …
miles_b
  • 335
  • 3
  • 10
3
votes
1 answer

AlamofireImage sets startRequestsImmediately to false on initialisation

I have a custom SessionManager CustomSessionManager which I am using to construct the ImageDownloader of Alamofire like this let imageDownloader = ImageDownloader(sessionManager: CustomSessionManager.shared) In the initialiser the ImageDownloader…
3
votes
0 answers

Weird and Unsolvable Alamofire Issue

Please read the question properly before downvoting. There is no similar questions like this in SO. I have in fact browser SO for a few hourse before deciding to ask. There is a noticably weird bug I have found in Alamofire. This problem only…
JayVDiyk
  • 4,277
  • 22
  • 70
  • 135
3
votes
1 answer

AlamofireImage Collection cell puts image in AutoPurgingImageCache after download

I have a custom UICollectionViewCell that gets an image with AlamofireImage (2.4). It downloads OK, but it doesn't seem to be putting in the cache. I have a swift file with my global cache. import Foundation import Alamofire import…
skymook
  • 3,401
  • 35
  • 39
3
votes
2 answers

iOS Swift: How to properly scale down an image?

I'm using AlamofireImage to download and set my UIImage: backdrop.af_setImageWithURL(downloadURL) The image is substantially larger than what I will be displaying and so I have an issue with aliasing. How can I resize this image properly? Results:
mrmike
  • 398
  • 2
  • 4
  • 14
2
votes
0 answers

How do you cancel all pending and current image download requests in AlamofireImage?

Introduction: Hello, I'm currently using the AlamofireImage framework to download images in my app. I'm primarily using their ImageDownloader to download images and am using a singleton instance of this ImageDownloader to download images in a custom…
xanderbuck
  • 221
  • 2
  • 5
2
votes
1 answer

How to add an accepted Image MIME Type to Alamofire 5.2

I recently migrated to Alamofire 5.2 Our backend has incorrect MIME types for images that we're expected to support on the front end e.g. image.jpg instead of image.jpeg Old version of Alamofire allowed for exceptions…
Sean Dev
  • 1,239
  • 1
  • 17
  • 31
2
votes
1 answer

How to Solve This Error : Could not cast value of type '__NSCFString' (0x10354a248) to 'UIImage' (0x104c42b48)

When i run the code and click the segue to description view controller appear error in Debugging .Could not cast value of type '__NSCFString' (0x10354a248) to 'UIImage' (0x104c42b48). in main view controller error got this Thread 1: signal…
Amr Osama
  • 23
  • 4
2
votes
1 answer

AlamofireImage cache doesn't work in my app

I am using af_setImage() to set an image to a UIImageView. I need to cache image and if it's cached, I want it not to make transition. I have tried some codes below but the image cache with identifier always returns nil. It seems that…
1
2
3
11 12