변환 된 이미지가 다른 API에 다시 업로드되는 이미지 변환 프로세스에 가장 적합한 워크 플로가 무엇인지 파악하려고합니다.Android의 Cloudinary에서 이미지 다운로드
Cloudinal (http://cloudinary.com/documentation/image_transformations#resizing_and_cropping_images)에 따르면 다음과 같은 종류의 URL 구조로 업로드 된 이미지에 액세스 할 수 있으며 동시에 이미지를 변환 할 수도 있습니다 (http://res.cloudinary.com/demo/image/upload/w_200,h_100/sample.jpg
).
Sample.jpg가 이미 Cloudinary에 있다고 가정하면 제공된 링크가 이미 적용된 이미지 크기 조정 변환을 사용하여 가져옵니다.
Picasso에이 링크를 제공하고 Bitmap으로 변환하면됩니까?
Picasso.with(this)
.load("http://res.cloudinary.com/demo/image/upload/w_200,h_100/sample.jpg")
.into(new Target() {
@Override
public void onBitmapLoaded (final Bitmap bitmap, Picasso.LoadedFrom from){
/* Save the bitmap or do something with it here */
UploadBitmap(bitmap);
}
});
그냥 비트 맵의 종료 크기입니다. 아마도 당신은 경로와 거기에 같은 가치를 두어야합니다. – Ekalips
그래,이게 내가 찾고 있었던거야. 나는 아마 Cloudy에게 스케일링 비트를 고수 할 것이다. URL을 가져 와서 비트 맵을 만들 수 있는지 확인하고 싶었습니다. – santafebound