All Projects → CarGuo → Frescoutils

CarGuo / Frescoutils

Licence: apache-2.0
Fresco 的封装,快速上手,图像后处理,超大图高清预览,缩小放大,双击放大等一一俱全。简书 http://www.jianshu.com/p/cd058a924288

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Frescoutils

Landscapist
🍂 Jetpack Compose image loading library which can fetch and display network images using Glide, Coil, and Fresco.
Stars: ✭ 264 (-23.48%)
Mutual labels:  image, fresco
Vue Lazy Image Loading
Vue lazy image and background loading plugin.
Stars: ✭ 335 (-2.9%)
Mutual labels:  image
Affinity
Free 2D symbols for computer network diagrams
Stars: ✭ 294 (-14.78%)
Mutual labels:  image
Assetspickerviewcontroller
Powerfully Customizable - Multiple Photo & Video Picker Controller
Stars: ✭ 321 (-6.96%)
Mutual labels:  image
Exifcleaner
Cross-platform desktop GUI app to clean image metadata
Stars: ✭ 305 (-11.59%)
Mutual labels:  image
Dezoomify
Dezoomify is a web application to download zoomable images from museum websites, image galleries, and map viewers. Many different zoomable image technologies are supported.
Stars: ✭ 323 (-6.38%)
Mutual labels:  image
Easystash
🗳Easy data persistence in Swift
Stars: ✭ 303 (-12.17%)
Mutual labels:  image
Mango
mango fun framework
Stars: ✭ 343 (-0.58%)
Mutual labels:  image
Laravel Glide
Easily convert images with Glide
Stars: ✭ 333 (-3.48%)
Mutual labels:  image
Guillotine
jQuery plugin to crop images within an area (fully responsive), allowing to drag (touch support), zoom and rotate.
Stars: ✭ 318 (-7.83%)
Mutual labels:  image
Fdtake
Easily take a photo or video or choose from library
Stars: ✭ 314 (-8.99%)
Mutual labels:  image
Korkut
Quick and simple image processing at the command line. 🔨
Stars: ✭ 310 (-10.14%)
Mutual labels:  image
Kiimagepager
The KIImagePager is inspired by foursquare's ImageSlideshow, the user may scroll through images loaded from the Web
Stars: ✭ 324 (-6.09%)
Mutual labels:  image
Amazon Rekognition Video Analyzer
A working prototype for capturing frames off of a live MJPEG video stream, identifying objects in near real-time using deep learning, and triggering actions based on an objects watch list.
Stars: ✭ 309 (-10.43%)
Mutual labels:  image
Maxurl
Finds larger/original versions of images and videos
Stars: ✭ 332 (-3.77%)
Mutual labels:  image
Cropme
Extremely Smooth and Easy Cropping library for you
Stars: ✭ 306 (-11.3%)
Mutual labels:  image
Moa
An image download extension of the image view written in Swift for iOS, tvOS and macOS.
Stars: ✭ 314 (-8.99%)
Mutual labels:  image
Maplebacon
🍁🥓 Lightweight and fast Swift library for image downloading, caching and transformations
Stars: ✭ 322 (-6.67%)
Mutual labels:  image
Blind Watermark
Watermark added to the frequency domain by Fourier transform
Stars: ✭ 344 (-0.29%)
Mutual labels:  image
Tkimageview
An easy way to crop an image.
Stars: ✭ 342 (-0.87%)
Mutual labels:  image

Fresco 的封装,快速上手,图像后处理,超大图高清预览,缩小放大,双击放大等一一俱全。

Build Status

新 GSYImageLoader 图片加载工具,集成Glide、Picasso、Fresco的图片加载管理器

依赖

在project下的build.gradle添加

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

在module下的build.gradle添加

dependencies {
    compile 'com.github.CarGuo:FrescoUtils:v1.2.1'
}


1.2.1

update fresco to 1.8.0

1.1.0

update fresco to 1.7.1

update subsampling-scale-image-view to 3.9.0

update photodraweeview to 1.1.3

update gradle to 4.0.1

1.0.8

update fresco to 1.5.0

1.0.7 增加option配置方法;

/**
 * @param imageView  图片加载控件
 * @param loadOption 加载配置构造器
 */
public static void loadFrescoImage(FrescoImageView imageView, LoadOption loadOption) 
  • 1.0.6 update fresco to 1.3.0;

  • 1.0.5 update fresco to 1.2.0;移除无用依赖;

  • 1.0.4 update fresco to 1.0.1,update scaleImage to 3.6.0

  • 1.0.3 update fresco to 1.0.0

  • 1.0.2 最低API调整到15

  • 1.0.1 增加了额FrescoHelper直接超大图加载接口

/**
 * 超大图片的就接口
 *
 * @param context   上下玩
 * @param imageView 图片加载控件
 * @param imageUri  图片地址
 * @param defaultId 默认失败图片
 */
public static void loadBigImage(final Context context, final SubsamplingScaleImageView imageView, String imageUri, final int defaultId)

简书入口 这里有详细介绍

效果显示

动态图效果

记得记得在Application里初始化

ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this)
        .setDownsampleEnabled(true)
        .build();
Fresco.initialize(this, config);

FrescoHelper 封装了针对 FrescoImageView 的工具类,直接使用FrescoImageView作为ImageView使用即可。

封装了多种类型,这是最全的一种


/**
 * @param imageView     图片加载控件
 * @param uri           路径或者URL
 * @param defaultImg    默认图片
 * @param cornerRadius  弧形角度
 * @param isCircle      是否为圆
 * @param loadLocalPath 是否本地资源,如果显示R.drawable.xxx,Path可以为null,前提isCircle为true
 * @param isAnima       是否显示GIF动画
 * @param size          是否再编码
 * @param postprocessor 图像显示处理
 */
public static void loadFrescoImage(FrescoImageView imageView, String uri, int defaultImg,
                                   int cornerRadius, boolean isCircle, boolean loadLocalPath, boolean isAnima,
                                   Point size, Postprocessor postprocessor) {
    init(imageView, cornerRadius, isCircle, isAnima, size, postprocessor);
    if (loadLocalPath) {
        imageView.loadLocalImage(uri, defaultImg);
    } else {
        imageView.loadView(uri, defaultImg);
    }
}

···

FrescoHelper.loadFrescoImage(frescoImageView, recyclerDataModel.getUrl(), R.mipmap.ic_launcher, 2, false, recyclerDataModel.getSize(), new BlurPostprocessor(context, 10));


带有fresco-processors各种处理特效,高斯,五角形等。

带有subsampling-scale-image-view实现超高清图片超长图片不模糊显示。

带有PhotoDraweeView 功能与PhotoView一样,支持双击放大,单击返回,手动放大与缩小等。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].