Image-viewer isn't working for vertical images
See original GitHub issueI’m using ImageLoaderCallback
and calling imageviewer.showImage(Uri uri)
.
It’s working for all URLs except some. Like this one :
Code :
bigImageView.setImageLoaderCallback(new ImageLoader.Callback() {
@Override
public void onCacheHit(int imageType, File image) {
}
@Override
public void onCacheMiss(int imageType, File image) {
}
@Override
public void onStart() {
Helper.log("start : " + getClass().getName() + url_base);
}
@Override
public void onProgress(int progress) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
progress_load_bing.setProgress(progress, true);
} else {
progress_load_bing.setProgress(progress);
}
}
@Override
public void onFinish() {
bigImageView.setVisibility(View.VISIBLE);
loadingView.setVisibility(View.INVISIBLE);
set_wall.show();
show_info.show();
try {
sheet = new InfoSheet(
title.split("©")[0],
title.split("©")[1],
view_link,
view_link);
if (!WallpaperSetter.this.isFinishing())
sheet.show(getSupportFragmentManager(), "info_shit");
} catch (Exception ignored) {
}
}
@Override
public void onSuccess(File image) {
imageFile = image;
}
@Override
public void onFail(Exception error) {
Toast.makeText(WallpaperSetter.this, "Error Loading Image", Toast.LENGTH_SHORT).show();
error.printStackTrace();
}
});
String bet = BingActivity.getNextImage(url_base, BingActivity.Res.getByOrder(index));
Helper.log(bet);
bigImageView.showImage(Uri.parse(bet));
PS: I couldn’t get the printing statements executed from onStart
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Cannot Rotate Picture in Windows Photo Viewer
Would appreciate someone offering a cogent explanation for the simple function of turning a picture on the screen from sideways to vertical.
Read more >FIX: Microsoft Photos rotates RAW images in Windows 10/11
Rotating photographs in Windows Photo Viewer is as simple as pressing the arrow buttons on the bottom control bar.
Read more >Looking for an image viewer program that supports vertical ...
Is there something that will let open a folder of images (.jpg) and scroll through them vertically? I.E. ...
Read more >Why Your Photos Don't Always Appear Correctly Rotated
Digital cameras didn't bother rotating images automatically. So, even if you used a camera and held it vertically to take a photo in...
Read more >Vertical Image loaded in as a horizontal one - Stack Overflow
I'm writing a simple application, which basicly loads some pictures and just shows them to the user. The problem is, when I initialize...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think maybe it’s because you change BIV’s visibility, in my test I didn’t do that.
If you need do such thing, please debug yourself, and PR is welcome if you trace down some bug in BIV.
Hmm, maybe you need more debug on it.