Release Visual Thumbs - (Create thumbs for subfolders in picture library)
#73
(2019-10-14, 23:36)warrencalvert Wrote:
(2019-10-14, 18:53)DaLanik Wrote:
(2019-10-13, 17:09)warrencalvert Wrote: Thanks for the update, I've tried v3.11 and this runs through without any errors and it creates a folder.jpg in each folder.  The only problem is the thumbnail it creates is just an empty black image. The folders are no more than 3 deep, any idea what the problem might be?

thanks,  

Hard to tell... just tested it on my PC, works fine 3 levels... please send me the log...  

Below is the first few lines of the log.  Interestingly it says max levels 5.  I know you only support 3.  However how is this calculated?  I didnt think servername and sharename would be included in this, so \\kryten\photo albums\cycling for example would this be 1 folder deep?

If it helps, some of the jpgs created do have thumbs within them but not many.  Some have one or two thumbs (instead of 4) but most are completely black and blank.

Does this look like a folder nesting issue or is the EXIF error relevant or do you spot anything else it could be?

many thanks,

2019-10-14 22:04:51.105 T:8124   DEBUG: THUMBS >> BEGIN PATH: >>\\kryten\photo albums\<< FOLDERS IN PATH: >>1346<< MAX LEVELS: >>5<<
2019-10-14 22:04:51.144 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\<<
2019-10-14 22:04:51.172 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam<<
2019-10-14 22:04:51.182 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam\.sync<<
2019-10-14 22:04:51.187 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam\.sync\Archive<<
2019-10-14 22:04:54.411 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam\Adam, 0 - 6 months<<
2019-10-14 22:04:55.304 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam\Adam, 10 - 15 Years<<
2019-10-14 22:04:55.504 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam\Adam, 12 - 24 months<<
2019-10-14 22:04:55.597 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam\Adam, 16 - 20 Years<<
2019-10-14 22:04:55.655 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam\Adam, 2 - 3 Years<<
2019-10-14 22:04:55.836 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam\Adam, 3 - 4 Years<<
2019-10-14 22:04:56.815 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam\Adam, 4 - 6 Years<<
2019-10-14 22:04:57.289 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam\Adam, 6 - 12 months<<
2019-10-14 22:04:57.962 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam\Adam, 6- 10 Years<<
2019-10-14 22:04:58.154 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam's Photos and Videos<<
2019-10-14 22:04:58.612 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam's Photos and Videos\Adam Kestrels Photos<<
2019-10-14 22:04:59.780 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam,Daniel or Elena (2 or more)<<
2019-10-14 22:04:59.800 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam,Daniel or Elena (2 or more)\.sync<<
2019-10-14 22:04:59.804 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Adam,Daniel or Elena (2 or more)\.sync\Archive<<
2019-10-14 22:04:59.881 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Andrew's Photos<<
2019-10-14 22:04:59.896 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Audio Recordings<<
2019-10-14 22:04:59.916 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling<<
2019-10-14 22:05:00.003 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2008-06, London to Paris Cycle<<
2019-10-14 22:05:00.089 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2008-06, London to Paris Cycle\2008 London to Paris - Abbeville to Beauvais - 59 miles<<
2019-10-14 22:05:00.257 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2008-06, London to Paris Cycle\2008 London to Paris - Beauvais to Paris - 48 miles<<
2019-10-14 22:05:00.321 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2008-06, London to Paris Cycle\2008 London to Paris - Calais to Abbeville 75 miles<<
2019-10-14 22:05:00.358 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2008-06, London to Paris Cycle\2008 London to Paris - London to Folkestone - 68 miles<<
2019-10-14 22:05:00.609 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2016-05, Alps<<
2019-10-14 22:05:00.630 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2016-07, South Downs<<
2019-10-14 22:05:00.634 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2017, Ventoux<<
2019-10-14 22:05:00.850 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2017-04, Mallorca<<
2019-10-14 22:05:01.219 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2017-09, Ventoux<<
2019-10-14 22:05:01.270 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2018, London To Brighton<<
2019-10-14 22:05:01.322 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2019, Cyclist Track Day<<
2019-10-14 22:05:01.628 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2019-02, Tenerife<<
2019-10-14 22:05:01.795 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\2019-07 Lancashire, Yorkshire<<
2019-10-14 22:05:01.969 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Cycling\Cycling, Miscellaneous<<
2019-10-14 22:06:07.413 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Days Out\.sync\Archive<<
2019-10-14 22:06:07.617 T:8124   DEBUG: THUMBS >> IMG ERROR: >>\\kryten\photo albums\Days Out\.sync\IgnoreList<<
2019-10-14 22:06:07.628 T:8124   DEBUG: THUMBS >> IMG ERROR: >>\\kryten\photo albums\Days Out\.sync\ID<<
2019-10-14 22:06:07.640 T:8124   DEBUG: THUMBS >> IMG ERROR: >>\\kryten\photo albums\Days Out\.sync\StreamsList<<
2019-10-14 22:06:07.648 T:8124   DEBUG: THUMBS >> SAVING: >>\\kryten\photo albums\Daniel's Photos and Videos\.sync\Archive\folder.jpg<<
2019-10-14 22:06:07.650 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Days Out\2000<<
2019-10-14 22:06:07.652 T:8124   DEBUG: THUMBS >> IMG ERROR: >>\\kryten\photo albums\Days Out\.sync\StreamsList<<
2019-10-14 22:06:07.654 T:8124   DEBUG: THUMBS >> IMG ERROR: >>\\kryten\photo albums\Days Out\.sync\IgnoreList<<
2019-10-14 22:06:07.656 T:8124   DEBUG: THUMBS >> IMG ERROR: >>\\kryten\photo albums\Days Out\.sync\ID<<
2019-10-14 22:06:07.663 T:8124   DEBUG: THUMBS >> SAVING: >>\\kryten\photo albums\Days Out\.sync\folder.jpg<<
2019-10-14 22:06:07.666 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Days Out\2000\2000, Maria's House<<
2019-10-14 22:06:07.672 T:8124   DEBUG: THUMBS >> SAVING: >>\\kryten\photo albums\Days Out\.sync\Archive\folder.jpg<<
2019-10-14 22:06:07.676 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Days Out\2001<<
2019-10-14 22:06:08.042 T:8124   DEBUG: THUMBS >> EXIF ERROR: >>\\kryten\photo albums\Days Out\2000\2000, Maria's House\102-0214_IMG.JPG<<
2019-10-14 22:06:08.393 T:8124   DEBUG: THUMBS >> EXIF ERROR: >>\\kryten\photo albums\Days Out\2000\2000, Maria's House\102-0219_IMG.JPG<<
2019-10-14 22:06:08.797 T:8124   DEBUG: THUMBS >> EXIF ERROR: >>\\kryten\photo albums\Days Out\2000\2000, Maria's House\102-0227_IMG.JPG<<
2019-10-14 22:06:09.319 T:8124   DEBUG: THUMBS >> EXIF ERROR: >>\\kryten\photo albums\Days Out\2000\2000, Maria's House\102-0222_IMG.JPG<<
2019-10-14 22:06:09.326 T:8124   DEBUG: THUMBS >> SAVING: >>\\kryten\photo albums\Days Out\2000\folder.jpg<<
2019-10-14 22:06:09.329 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Days Out\2001\2001, Angela's Engagement<<
2019-10-14 22:06:09.797 T:8124   DEBUG: THUMBS >> EXIF ERROR: >>\\kryten\photo albums\Days Out\2000\2000, Maria's House\102-0253_IMG.JPG<<
2019-10-14 22:06:10.043 T:8124   DEBUG: THUMBS >> EXIF ERROR: >>\\kryten\photo albums\Days Out\2000\2000, Maria's House\102-0239_IMG.JPG<<
2019-10-14 22:06:10.454 T:8124   DEBUG: THUMBS >> EXIF ERROR: >>\\kryten\photo albums\Days Out\2000\2000, Maria's House\102-0215_IMG.JPG<<
2019-10-14 22:06:10.856 T:8124   DEBUG: THUMBS >> EXIF ERROR: >>\\kryten\photo albums\Days Out\2000\2000, Maria's House\102-0273_IMG.JPG<<
2019-10-14 22:06:10.861 T:8124   DEBUG: THUMBS >> SAVING: >>\\kryten\photo albums\Days Out\2000\2000, Maria's House\folder.jpg<<
2019-10-14 22:06:10.866 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Days Out\2001\2001, Bekonscot & Windsor<<
2019-10-14 22:06:11.319 T:8124   DEBUG: THUMBS >> EXIF ERROR: >>\\kryten\photo albums\Days Out\2001\2001, Angela's Engagement\104-0440_IMG.JPG<<
2019-10-14 22:06:13.964 T:8124   DEBUG: THUMBS >> SAVING: >>\\kryten\photo albums\Days Out\2001\2001, Angela's Engagement\folder.jpg<<
2019-10-14 22:06:13.970 T:8124   DEBUG: THUMBS >> PATH: >>\\kryten\photo albums\Days Out\2001\2001, Chessington<<
2019-10-14 22:06:16.189 T:8124   DEBUG: THUMBS >> EXIF ERROR: >>\\kryten\photo albums\Days Out\2001\2001, Bekonscot & Windsor\bekonscot.jpg<<
2019-10-14 22:06:16.575 T:8124   DEBUG: THUMBS >> EXIF ERROR: >>\\kryten\photo albums\Days Out\2001\2001, Bekonscot & Windsor\108-0872_IMG.JPG<<
2019-10-14 22:06:16.584 T:8124   DEBUG: THUMBS >> SAVING: >>\\kryten\photo albums\Days Out\2001\2001, Bekonscot & Windsor\folder.jpg<< 

There are 2 errors.

1st is "IMG ERROR". That means that PIL library couldn't open the image. See the filenames. They are either BAD images, NOT images or there are no rights to open them. Or the path contains some weird characters... see you have folders beginning with . which is not good idea, those are hidden in Linux.

Function "image = Image.open(open(imageFileName, 'rb'))" can't open the image. This is just standard open/read function, so you have to sort it out yourself, can't see why it would fail, the issue is probably on your side.

Second error is "EXIF ERROR". What that means that the images don't contain correct EXIF flag. They're JPGs?? I also notice there are apostrophes (') and commas (,) and and sign (&) in the paths, which is always bad idea. Try renaming them to something else....

D.
Reply


Messages In This Thread
RE: Visual Thumbs - by peppe_sr - 2016-06-24, 15:02
RE: Visual Thumbs - by User 325245 - 2016-06-24, 15:04
RE: Visual Thumbs - by User 325245 - 2016-06-24, 15:06
RE: Visual Thumbs - by peppe_sr - 2016-06-24, 15:14
RE: Visual Thumbs - by User 325245 - 2016-06-24, 15:43
RE: Visual Thumbs - by User 325245 - 2016-06-24, 16:00
RE: Visual Thumbs - by peppe_sr - 2016-06-24, 16:12
RE: Visual Thumbs - by User 325245 - 2016-06-25, 18:24
RE: Visual Thumbs - by User 325245 - 2016-06-25, 19:06
RE: Visual Thumbs - by peppe_sr - 2016-06-25, 21:13
RE: Visual Thumbs - by User 325245 - 2016-06-26, 12:26
RE: Visual Thumbs - by User 325245 - 2016-06-26, 17:31
RE: Visual Thumbs - by peppe_sr - 2016-06-27, 10:05
RE: Visual Thumbs - by User 325245 - 2016-06-27, 13:35
RE: Visual Thumbs - by peppe_sr - 2016-06-27, 15:30
RE: Visual Thumbs - by User 325245 - 2016-06-27, 23:49
RE: Visual Thumbs - by peppe_sr - 2016-06-28, 07:46
RE: Visual Thumbs - by User 325245 - 2016-06-28, 08:46
RE: Visual Thumbs - by peppe_sr - 2016-06-28, 08:52
RE: Visual Thumbs - by User 325245 - 2016-06-28, 09:55
RE: Visual Thumbs - by peppe_sr - 2016-06-28, 10:03
RE: Visual Thumbs - by User 325245 - 2016-06-28, 14:37
RE: Visual Thumbs - by User 325245 - 2016-06-28, 22:15
RE: Visual Thumbs - by peppe_sr - 2016-06-29, 09:59
RE: Visual Thumbs - by User 325245 - 2016-06-29, 10:29
RE: Visual Thumbs - by peppe_sr - 2016-06-29, 10:41
RE: Visual Thumbs - by User 325245 - 2016-06-29, 15:35
RE: Visual Thumbs - by peppe_sr - 2016-06-29, 16:01
RE: Visual Thumbs - by User 325245 - 2016-06-29, 20:04
RE: Visual Thumbs - by User 325245 - 2016-06-29, 23:43
RE: Visual Thumbs - by peppe_sr - 2016-06-30, 07:59
RE: Visual Thumbs - by peppe_sr - 2016-06-30, 09:19
RE: Visual Thumbs - by User 325245 - 2016-07-06, 21:21
RE: Visual Thumbs - by User 325245 - 2016-07-01, 14:54
RE: Visual Thumbs - by User 325245 - 2016-07-08, 11:43
RE: Visual Thumbs - by peppe_sr - 2016-07-08, 11:58
RE: Visual Thumbs - by User 325245 - 2016-07-21, 09:59
RE: Visual Thumbs - by Atreyu - 2016-07-22, 00:18
RE: Visual Thumbs - by User 325245 - 2016-07-22, 08:21
RE: Visual Thumbs - by User 325245 - 2016-07-22, 21:21
RE: Visual Thumbs - by User 325245 - 2016-07-29, 13:42
RE: Visual Thumbs - by User 325245 - 2016-07-31, 12:42
RE: Visual Thumbs - by peppe_sr - 2016-08-01, 09:44
RE: Visual Thumbs - by User 325245 - 2016-08-01, 10:40
RE: Visual Thumbs - by peppe_sr - 2016-08-01, 11:45
RE: Visual Thumbs - by User 325245 - 2016-08-01, 13:10
RE: Visual Thumbs - by User 325245 - 2016-08-01, 14:39
RE: Visual Thumbs - by peppe_sr - 2016-08-01, 15:26
RE: Visual Thumbs - by User 325245 - 2016-08-01, 18:43
RE: Visual Thumbs - by User 325245 - 2016-08-01, 19:57
RE: Visual Thumbs - by peppe_sr - 2016-08-02, 09:33
RE: Visual Thumbs - by User 325245 - 2016-08-02, 10:47
RE: Visual Thumbs - by User 325245 - 2016-08-03, 14:46
RE: Visual Thumbs - by User 325245 - 2016-09-24, 12:44
RE: Visual Thumbs - by User 325245 - 2016-10-05, 14:49
RE: Visual Thumbs - by User 325245 - 2016-11-25, 19:15
RE: Visual Thumbs - (Create thumbs for subfolders in picture library) - by User 325245 - 2019-10-15, 10:11
Logout Mark Read Team Forum Stats Members Help
Visual Thumbs - (Create thumbs for subfolders in picture library)0