毕加索以错误的方向显示 [英] Picasso displays in wrong orientation

查看:54
本文介绍了毕加索以错误的方向显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Picasso.with(mContext).load(lPreviewData.getImage()).into(holder.lPreviewIV);

这就是我将图像 url 渲染到 ImageView 的方式.不幸的是,当我渲染图像时,它以横向模式显示,但实际图像是纵向的.

This is how I am rendering the image url to ImageView. Unfortunately when i render an image it was showing in landscape mode but the actual image is in portrait.

推荐答案

这是一个 exif 的问题Picasso 中的旋转处理.您应该在代码中旋转图像或修复源图像以具有正确的方向,而不使用 exif 旋转.

This is a problem with exif rotation handling in Picasso. You should either rotate the image in code or fix the source image to have the correct orientation without using exif rotation.

我还应该提到这个问题只影响通过 url 检索的图像.

I should also mention that this problem only affects images retrieved via url.

这篇关于毕加索以错误的方向显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆