package shts.jp.android.nogifeed.utils;

import android.content.Context;
import android.widget.ImageView;
import android.widget.RemoteViews;

import com.squareup.picasso.Picasso;

import shts.jp.android.nogifeed.views.transformations.BannerTransformation;
import shts.jp.android.nogifeed.views.transformations.CircleTransformation;

public class PicassoHelper {

    private static final CircleTransformation CIRCLE_TRANSFORMATION = new CircleTransformation();
    private static final BannerTransformation BANNER_TRANSFORMATION = new BannerTransformation();

    public static void load(Context context, ImageView target, String url) {
        Picasso.with(context)
                .load(url)
                .fit()
                .centerCrop()
                .into(target);
    }

    public static void loadAndCircleTransform(Context context, ImageView target, String url) {
        Picasso.with(context)
                .load(url)
                .fit()
                .centerCrop()
                .transform(CIRCLE_TRANSFORMATION)
                .into(target);
    }

    public static void loadAndCircleTransform(Context context, String url, RemoteViews remoteViews,
                                              int resId, int appWidgetId) {
        Picasso.with(context)
                .load(url)
                .fit()
                .centerCrop()
                .transform(CIRCLE_TRANSFORMATION)
                .into(remoteViews, resId, new int[] { appWidgetId });
    }

    public static void loadAndBannerTransform(Context context, ImageView target, String url) {
        Picasso.with(context)
                .load(url)
                .fit()
//                .centerCrop()
                .transform(BANNER_TRANSFORMATION)
                .into(target);
    }

}

package shts.jp.android.nogifeed.utils;

import android.content.Context;
import android.widget.ImageView;
import android.widget.RemoteViews;

import com.squareup.picasso.Picasso;

import shts.jp.android.nogifeed.views.transformations.BannerTransformation;
import shts.jp.android.nogifeed.views.transformations.CircleTransformation;

public class PicassoHelper {

    private static final CircleTransformation CIRCLE_TRANSFORMATION = new CircleTransformation();
    private static final BannerTransformation BANNER_TRANSFORMATION = new BannerTransformation();

    public static void load(Context context, ImageView target, String url) {
        Picasso.with(context)
                .load(url)
                .fit()
                .centerCrop()
                .into(target);
    }

    public static void loadAndCircleTransform(Context context, ImageView target, String url) {
        Picasso.with(context)
                .load(url)
                .fit()
                .centerCrop()
                .transform(CIRCLE_TRANSFORMATION)
                .into(target);
    }

    public static void loadAndCircleTransform(Context context, String url, RemoteViews remoteViews,
                                              int resId, int appWidgetId) {
        Picasso.with(context)
                .load(url)
                .transform(CIRCLE_TRANSFORMATION)
                .into(remoteViews, resId, new int[] { appWidgetId });
    }

    public static void loadAndBannerTransform(Context context, ImageView target, String url) {
        Picasso.with(context)
                .load(url)
                .fit()
//                .centerCrop()
                .transform(BANNER_TRANSFORMATION)
                .into(target);
    }

}

delete RemoteView Picasso option 'fit()' 'centerCrop()'