ImageScout alternatives and similar libraries
Based on the "Image" category.
Alternatively, view ImageScout alternatives based on common mentions on social networks and blogs.
-
SDWebImage
Asynchronous image downloader with cache support as a UIImageView category -
GPU Image
An open source iOS framework for GPU-based image and video processing -
Kingfisher
A lightweight, pure-Swift library for downloading and caching images from the web. -
MWPhotoBrowser
A simple iOS photo and video browser with grid view, captions and selections. -
FastImageCache
iOS library for quickly displaying images while scrolling -
TOCropViewController
A view controller for iOS that allows users to crop portions of UIImage objects -
GPUImage2
GPUImage 2 is a BSD-licensed Swift framework for GPU-accelerated video and image processing. -
PINRemoteImage
A thread safe, performant, feature rich image fetcher -
AlamofireImage
AlamofireImage is an image component library for Alamofire -
IDMPhotoBrowser
Photo Browser / Viewer inspired by Facebook's and Tweetbot's with ARC support, swipe-to-dismiss, image progress and more -
SKPhotoBrowser
Simple PhotoBrowser/Viewer inspired by facebook, twitter photo browsers written by swift -
UIImageColors
Fetches the most dominant and prominent colors from an image. -
AspectFillFaceAware
An extension that gives UIImageView the ability to focus on faces within an image. -
RSKImageCropper
An image cropper / photo cropper for iOS like in the Contacts app with support for landscape orientation. -
GPUImage3
GPUImage 3 is a BSD-licensed Swift framework for GPU-accelerated video and image processing using Metal. -
TLPhotoPicker
📷 multiple phassets picker for iOS lib. like a facebook -
ImageSlideshow
Swift image slideshow with circular scrolling, timer and full screen viewer -
EBPhotoPages
A photo gallery for iOS with a modern feature set. Similar features as the Facebook photo browser. -
Lightbox
:milky_way: A convenient and easy to use image viewer for your iOS app -
TinyCrayon
A smart and easy-to-use image masking and cutout SDK for mobile apps. -
MetalPetal
A GPU accelerated image and video processing framework built on Metal. -
Twitter Image Pipline
Twitter Image Pipeline is a robust and performant image loading and caching framework for iOS clients -
ImagePickerSheetController
ImagePickerSheetController replicates the custom photo action sheet in iMessage. -
YUCIHighPassSkinSmoothing
An implementation of High Pass Skin Smoothing using Apple's Core Image Framework -
DFImageManager
Image loading, processing, caching and preheating -
SFSafeSymbols
Safely access Apple's SF Symbols using static typing -
CTPanoramaView
A library that displays spherical or cylindrical panoramas with touch or motion based controls. -
Paparazzo
Custom iOS camera and photo picker with editing capabilities -
OnlyPictures
A simple and flexible way to add source of overlapping circular pictures, currently supports horizontal overlapping or distant pictures with great layout flexibility. -
ShadowImageView
A apple music cover picture shadow style image library -
AXPhotoViewer
An iOS/tvOS photo gallery viewer, useful for viewing a large (or small!) number of photos. -
ComplimentaryGradientView
Create complementary gradients generated from dominant and prominent colors in supplied image. Inspired by Grade.js -
SimpleImageViewer
A snappy image viewer with zoom and interactive dismissal transition. -
SABlurImageView
You can use blur effect and it's animation easily to call only two methods. -
Viewer
Image viewer (or Lightbox) with support for local and remote videos and images
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ImageScout or a related project?
README
ImageScout
ImageScout is a Swift implementation of fastimage. It allows you to find the size and type of a remote image by downloading as little as possible.
Why?
Sometimes you need to know the size of a remote image before downloading it, such as
using a custom layout in a UICollectionView
.
How?
ImageScout parses the image data as it is downloaded. As soon as it finds out the size and type of image, it stops the download. The downloaded data is below 60 KB in most cases.
Install
Swift Package Manager
Add the following to your Package.switft
file:
let package = Package(
dependencies: [
.package(url: "https://github.com/kaishin/ImageScout.git", from: "2.1.0")
],
)
Carthage
- Add the following to your Cartfile:
github "kaishin/ImageScout"
- Then run
carthage update
- Follow the current instructions in Carthage's README for up to date installation instructions.
CocoaPods
- Add the following to your Podfile:
pod 'ImageScout'
- You will also need to make sure you're opting into using frameworks:
use_frameworks!
- Then run
pod install
with CocoaPods 1.0 or newer.
Usage
The only method you will be using is scoutImageWithURI()
, with the following full signature:
func scoutImageWithURI(URI: String, completion: (NSError?, CGSize, ScoutedImageType) -> ())
Here's an example:
let scout = ImageScout()
scout.scoutImageWithURI("http://.../image-scout-logo.png") { error, size, type in
if let error = error {
print(error.code)
} else {
print("Size: \(size)")
print("Type: \(type.rawValue)")
}
}
If the image is not successfully parsed, the size is going to be CGSizeZero
and the type .Unsupported
. The error will contain more info about the reason:
- Error code 100: Invalid URI parameter.
- Error code 101: Image is corrupt or malformatted.
- Error code 102: Not an image or unsopported image format URL.
⚠️ It's important to keep a strong reference to the ImageScout
instance until the callback completes. If reference is lost, your completion handler will never be executed.
Compatibility
- Swift 5 / Xcode 11
- iOS 8+
- macOS 10.11
License
See LICENSE.
*Note that all licence references and agreements mentioned in the ImageScout README section above
are relevant to that project's source code only.