当前位置: 首页 > 软件库 > 手机/移动开发 > >

picasso-transformations

授权协议 Apache-2.0 License
开发语言 Java
所属分类 手机/移动开发
软件类型 开源软件
地区 不详
投 递 者 沃阳曜
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Picasso Transformations

An Android transformation library providing a variety of image transformations for Picasso.

Please feel free to use this.

Are you using Glide or Fresco?

Glide Transformations
Fresco Processors

Demo

Original Image

Transformations

How do I use it?

Step 1

Gradle

repositories {
    mavenCentral()
}

dependencies {
    compile 'jp.wasabeef:picasso-transformations:2.4.0'
    // If you want to use the GPU Filters
    compile 'jp.co.cyberagent.android:gpuimage:2.1.0
}

Step 2

Set Picasso Transform.

Picasso.with(mContext).load(R.drawable.demo)
    .transform(transformation).into((ImageView) findViewById(R.id.image));

Advanced Step 3

You can set a multiple transformations.

Picasso.with(mContext).load(R.drawable.demo)
    .transform(transformation)
    .transform(new CropCircleTransformation())
    .into(holder.image);

Transformations

Crop

CropTransformation, CropCircleTransformation, CropSquareTransformation,RoundedCornersTransformation

Color

ColorFilterTransformation, GrayscaleTransformation

Blur

BlurTransformation

Mask

MaskTransformation

GPU Filter (use GPUImage)

Will require add dependencies for GPUImage.

ToonFilterTransformation, SepiaFilterTransformation, ContrastFilterTransformationInvertFilterTransformation, PixelationFilterTransformation, SketchFilterTransformationSwirlFilterTransformation, BrightnessFilterTransformation, KuwaharaFilterTransformationVignetteFilterTransformation

Applications using Picasso Transformations

Please ping me or send a pull request if you would like to be added here.

Icon Application
Ameba Ownd
QuitNow!

Developed By

Daichi Furiya (Wasabeef) - dadadada.chop@gmail.com

Follow me on Twitter

Thanks

License

Copyright (C) 2020 Wasabeef

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
  • 导包 //picasso compile 'com.squareup.picasso:picasso:2.5.2' //picasso-transformations compile 'jp.wasabeef:picasso-transformations:2.1.2' //GPU Filters compile 'jp.co.cyberagent.

  • 前言 使用的是picasso最新版本 github地址:https://github.com/square/picasso 版本:2.71828 简单例子 代码 override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(

 相关资料
  • Picasso = OpenStack API for Functions as a Service  Picasso 可以让你在 OpenStack 平台上实现函数即为服务的功能。为包括开发人员和运维人员提供一个简单高效可伸缩的基础架构层。Picasso API 服务器使用 Keystone 认证和授权。可用来从 OpenStack 服务中触发函数,诸如 Telemetry (via HTTP

  • Picasso 是 Android 上一个强大的图片下载和缓存库。   示例代码: Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);@Override public void getView(int position, View convertView, ViewGroup parent) {

  • Picasso 是一个高质量的2D矢量图形渲染库,支持 path , matrix , gradient , pattern , image 和 truetype font 等功能。可以用来开发图形GUI系统, 渲染矢量图形, SVG,PostScript,内置图片解码框架,支持png,jpeg,webp等多种流行图片格式编解码。

  • 代码有一些不完美的地方,用了MVC,优化不多。做这方面开发的朋友可以借鉴, 原创的时候思考有点费时 有个比较恶心的地方 恢复修改Ctrl+Z 功能没完成,一些小细节的地方没有时间去修改,以后有空陆续完善 .花了1个多月匆匆忙忙做完了地图编辑器,就去搞引擎了

  • 当我建造它的时候说 exception:com.android.build.api.transform.transformexception:com.android.builder.packaging.duplicateFileexception:APK meta-inf/maven/com.squareup.picasso/picasso/pom.properties文件1:c:\users\d

  • 我的简单Web服务器是Python3 SimpleHTTPRequest estHandler,它工作得很好。它在LAN机器的图片文件夹中运行,我已经使用浏览器对其进行了测试并输入了测试URL,例如:http://192.168.1.111:8000/2020-02-09/test.jpg 但是,毕加索不会加载相同的URL。它将通过“file://”加载本地图片。作为测试,我测试了一个Intern