Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not display high resolution images #25

Open
kerolos opened this issue Jan 4, 2018 · 14 comments
Open

Does not display high resolution images #25

kerolos opened this issue Jan 4, 2018 · 14 comments

Comments

@kerolos
Copy link

kerolos commented Jan 4, 2018

I have images with those size 1944, 2592. which part of the code should I modify for displaying the whole image?
thanks in advance.

@juzhitao
Copy link

I have the same problem . do you resolve it ?

@leyuan
Copy link

leyuan commented Mar 16, 2018

Here is what I did for the code inside function load_dir, I need a larger container for my (832, 832) size image.

        self.img = Image.open(imagepath)
        self.tkimg = ImageTk.PhotoImage(self.img)
        width = max(self.tkimg.width(), 832)
        height = max(self.tkimg.height(), 832)
        self.mainPanel.config(width = width, height = height)
        self.mainPanel.create_image((width/2, height/2), image = self.tkimg)

@kerolos @juzhitao

@toobaimt
Copy link

I added scrolling in my fork to get around the issue: here
Hope this helps!
@kerolos @juzhitao

@holak0
Copy link

holak0 commented Jun 9, 2018

any solution please for this problem because I have the same ????

@toobaimt
Copy link

@holak0 try this

@Shomitg
Copy link

Shomitg commented Oct 8, 2018

@toobaimt this takes me to the same repo. Can you please point me to the forked repo that you mentioned with the aforementioned fix.

@toobaimt
Copy link

toobaimt commented Oct 8, 2018

@Shomitg
Copy link

Shomitg commented Oct 8, 2018

Thanks @toobaimt but the issue still persists, not able to view the entire image of resolution 2346 × 186

@toobaimt
Copy link

toobaimt commented Oct 8, 2018

@Shomitg the scrollbar doesn't help?

@toobaimt
Copy link

toobaimt commented Oct 8, 2018

You might have to edit code a bit to accomodate bigger images

@Shomitg
Copy link

Shomitg commented Oct 8, 2018

@toobaimt yeah I guess I'll have to edit the code. the scrollbar doesn't seem to be working.

@sakthigeek
Copy link

sakthigeek commented Jan 24, 2019

@toobaimt The scrollbar isn't working. @Shomitg Could you give the edited code to accomodate high res images?

@HaveAGitGat
Copy link

@toobaimt Thanks!

@murtaza1514
Copy link

@toobaimt scroll bar is working but the next button isn't working. Can't go to the next image :p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants