diff --git a/BUGs b/BUGs index ad84ed5..faf9245 100644 --- a/BUGs +++ b/BUGs @@ -1,4 +1,4 @@ -### Next: 64 +### Next: 65 BUG-56: when making a viewing list of AI:mich, (any search?) and going past the page_size, it gets the wrong data from the DB for the 'next' entry BUG-60: entries per page (in folders view) ignores pagesize, and this also contributes to BUG-56 I think BUG-61: in Fullscreen mode and next/prev occasionally dropped out of FS @@ -19,5 +19,6 @@ BUG-62: viewlist on venice subdir and 'next' crashes server with a 500 ESC[36mpaweb |ESC[0m File "/code/files.py", line 478, in viewlist ESC[36mpaweb |ESC[0m current = int(lst[0]) ESC[36mpaweb |ESC[0m ValueError: invalid literal for int() with base 10: '' -BUG-63: gif without thumbmnail (eg 20180704_104637.gif) - https://freeyeti.net/en/a/create-thumbnail-for-a-gif-image + +BUG-64: seems when we move files, then somehow this triggers a lot of md5/thumb action (just for the moved files?) as they get a new? FILE entry -- why do I do that if that is the case, + the file, hash, thumb, faces, etc. should all still be connected to the FILE entry and just make it have a new home... diff --git a/shared.py b/shared.py index c1a3d96..9d51d7a 100644 --- a/shared.py +++ b/shared.py @@ -113,9 +113,10 @@ def SymlinkName(ptype, path, file): def GenThumb(fname): try: im_orig = Image.open(fname) - im = ImageOps.exif_transpose(im_orig) - bands = im.getbands() - if 'A' in bands: + if im_orig.format == 'JPEG': + im = ImageOps.exif_transpose(im_orig) + im = im_orig + if im.mode != "RGB": im = im.convert('RGB') orig_w, orig_h = im.size im.thumbnail((THUMBSIZE,THUMBSIZE))