BBox-Label-Tool icon indicating copy to clipboard operation
BBox-Label-Tool copied to clipboard

Does not display high resolution images

Open kerolos opened this issue 8 years ago • 14 comments

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

kerolos avatar Jan 04 '18 23:01 kerolos

I have the same problem . do you resolve it ?

juzhitao avatar Jan 24 '18 01:01 juzhitao

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

leyuan avatar Mar 16 '18 23:03 leyuan

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

toobaimt avatar Apr 29 '18 09:04 toobaimt

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

holak0 avatar Jun 09 '18 04:06 holak0

@holak0 try this

toobaimt avatar Jun 10 '18 06:06 toobaimt

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

Shomitg avatar Oct 08 '18 12:10 Shomitg

@Shomitg https://github.com/toobaimt/BBox-Label-Tool

toobaimt avatar Oct 08 '18 12:10 toobaimt

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

Shomitg avatar Oct 08 '18 12:10 Shomitg

@Shomitg the scrollbar doesn't help?

toobaimt avatar Oct 08 '18 12:10 toobaimt

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

toobaimt avatar Oct 08 '18 12:10 toobaimt

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

Shomitg avatar Oct 08 '18 12:10 Shomitg

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

sakthigeek avatar Jan 24 '19 12:01 sakthigeek

@toobaimt Thanks!

HaveAGitGat avatar Feb 21 '19 03:02 HaveAGitGat

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

murtaza1514 avatar Aug 02 '19 11:08 murtaza1514