毕加索的图像方向发生了变化

Image orientation changed in picasso

我正在创建一个 android 应用程序,我在其中使用 Picasso jar 从 JSON 加载图像,这里有些图像显示方向错误。不是每个图像,但只有一些。你能帮我解决这个问题吗:

Picasso.with(Sell_Preview_Activity.this)
                .load(Httppost_Links.imagePath
                        + ConstantVariables.sellDetails_stringURL)
                .networkPolicy(NetworkPolicy.NO_CACHE)
                .memoryPolicy(MemoryPolicy.NO_CACHE)
                .into(view_imageView, new com.squareup.picasso.Callback() {
                    @Override
                    public void onSuccess() {
                        if (progressBar != null) {
                            Log.i("image loading success",
                                    "image loading success  ");
                            progressBar1.setVisibility(View.GONE);
                        }
                    }

                    @Override
                    public void onError() {

                    }
                });

我没遇到过这样的问题。
但我怀疑这可能是由于您的 ImageView 的高度和宽度所致。 你可以打电话给 .resize(100, 100).fit()

希望对您有所帮助
https://futurestud.io/blog/picasso-image-resizing-scaling-and-fit/

根据 Zhli 提出的答案即兴创作,您是否尝试过相同的其他选项 link :

Image Rotation in Picasso