photools.com Community

IMatch Bug Reports and Feature Requests => Bug Reports => Solved Bug Reports (for next version) => Topic started by: jch2103 on June 14, 2023, 01:02:22 AM

Title: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 14, 2023, 01:02:22 AM
I started playing with the new autotagger - pretty neat! I found what appears to be a bug, though. The first several times I tried it, it showed a film strip of the selected images at the top of the app window. But during my last few tests, no images showed up in the film strip, although I had selected 6 images to try out. See attached screenshot.

Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on June 14, 2023, 09:26:10 AM
Nothing has changed regarding the film strip in AutoTagger between the 2021 and 2023 release.
Did you use AutoTagger before?
What happens if you close AutoTagger and reopen it. Does the film strip show?
If so, when does it stop showing, e.g. after which command or operation?
I cannot reproduce this, so the more details you can give me, the better.

Tip: You can run the AutoTagger (while IMatch is also running) in your web browser.
Open this URL: http://127.0.0.1:50519/imatch/apps/auto-tagger/
Press <F12> to open the developer tools in the browser and make sure the "Console" tab is visible.
Then use the AutoTagger normally in the browser.

If the film strip vanishes again, are there any errors logged in the "Console" or "Network" tab in the browser?
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on June 14, 2023, 11:13:26 PM
Any additional info on this?
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 15, 2023, 01:11:32 AM
I tried Autotagger within IM about 7-8 times. The first batch were all in one folder and showed the film strip. I closed Autotagger and switched to a different folder, also had success. I again closed Autotagger and tried a third folder (all of these folders had very different kinds of images) and this time no film strip. 17 total AOI requests. 

After that, I tried the web link you posted - it also didn't show the filmstrip. In another session it did, then not in another.  I've attached the log of the current session (after closing Autotagger again but leaving IM running). Maybe it will show something useful...

ps - It seems to think all yellow flowers including sunflowers are daisies. 
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on June 15, 2023, 10:36:10 AM
Did the console window in the browser's debugger show any warnings when AutoTagger did not show the thumbnails?
I see nothing related in the log file.
I see some warnings about high memory usage of 84% (IMatch reports a peak usage of about 2GB while using the Viewer, which is normal) and a few minor warnings from ExifTool about out-of-sync IPTC digests while indexing files.

Is your sequence to reproduce that opening AT multiple times, with images from different folders and then, at some point, the film strip stops working? How many files have you selected?

I've played with that for 30 minutes, switching between folders, opening the AT, looking up some files, closing the AT, other folder, select files, open AT and repeat. I could not get the thumbnail strip to not show.
This must be an issue with the app and then running it in the web browser while the developer tools are open press <F12> and looking at the "Console" in the developer tools should reveal JavaScript error messages when something is wrong with the thumbnail strip.


Quoteps - It seems to think all yellow flowers including sunflowers are daisies.
That's AI for you.

One could train his/her own model to identify flowers. Starting with a few hundred or better thousand images of various flowers, all tagged with their species and variant. Then train a fresh model from start or use transfer learning to build on top of an existing model to save time and money. All possible and maybe doable for normal persons at some point in the future.
The big AI vision companies do that and they offer e.g. models for apparel, wedding photography or food. There are also some models used by apps which specialize on plants, fungi, birds and stuff.

The "general" model used by IMatch at this time has been trained on 2 million images. But AutoTagger supports different models also for the IMatch AI, so we might see specialized models to chose from at some point in the future.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 15, 2023, 06:48:21 PM
Quote from: Mario on June 15, 2023, 10:36:10 AMIs your sequence to reproduce that opening AT multiple times, with images from different folders and then, at some point, the film strip stops working? How many files have you selected?
That's what I've tried so far (between 1 and 8 images at at time). I'll try your other suggestions later. 

I realize there are lots of advantages and disadvantages of AI in something like the Autotagger. As you say, the training set is crucial. 
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on June 15, 2023, 06:54:15 PM
I could so far not reproduce this. Not sure if other users have the same issue (no linked bug reports) or if other users have not tried AutoTagger yet.

Any further details much appreciated.
Errors from the Browser console etc., something that gives me a hint.

AutoTagger is around for over two years now, and the thumbnail strip has not changed for IMatch 2023.

Maybe it is a graphic card issue?
AutoTagger makes heavy use of the graphic card's vector units (when compatible) and AutoTagger itself is of courser a browser window and the browser uses the graphic card too.
The graphic card drivers shipped with Windows are often months or more out of date...
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 15, 2023, 06:58:36 PM
I'll have to dig into this later. I hadn't used the Autotagger before IM 2023, so perhaps why I hadn't run into this before. I'm using the latest Nvidia driver for my almost obsolete GTX 950. 
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on June 21, 2023, 09:34:30 AM
Any further info on this?
I could so far not reproduce it and not other user reported this problem.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 21, 2023, 11:03:28 PM
Still happening. Just now, I selected 4 images for Autotagger, all 4 thumbnails showed up. I closed Autotagger and tried again w/ 2 different images: no thumbnails. Attached is a console log; means nothing to me, but a number of error messages. Not sure if I loaded the console properly. 
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on June 22, 2023, 10:53:00 AM
These entries don't tell me much and none of them is related to AutoTagger.
Your Chome seems to host some extensions / trackers which become active, trying to connect remote hosts and fail.
DevTools failed just means that you don't have source map files for JavbaScript that is run by the extensions you have installed in Chrome. Which is normal. mss/boq-one-google seems to be something Google hosts, maybe another tracker or widget you have installed.

I see no error messages related to Auto Tagger.

Can you please repeat the test but this time open the "Network" tab?
When you then press <F5> to reload Auto Tagger you will see a large number of requests when Auto Tagger loads resources, connects to IMWS to fetch data.
Click on "Lookup and review...".

The film strip at the top will load some the images.
The Network tab will show entries starting with image? for each image loaded.
If there is a problem, the lines will be shown in red color. And when you click on it, the right side will show the Status Code which is of interest and when you click on the Network tab, you'll see the error message returned by IMWS.

If an image is successfully loaded and you click on it, the Preview tab shows the image returned by IMWS.

See screen shots below.
But, if there are network errors, we would see these messages also in the console. So I wonder...

Image1.jpg

Image2.jpg
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 22, 2023, 08:29:28 PM
After (re-)acquainting myself with the Chrome Console, I tried again with Autotagger. See attached screenshots based on a session with 6 images selected first in IM; no network errors, but no images show in Autotagger although the image is present in the Console (image 2).

How should I proceed? I do see some error messages on the bottom right re IM, but I can't decode them.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 23, 2023, 01:52:06 AM
When I ran Autotagger again, I got these messages:

DevTools failed to load source map: Could not load content for http://127.0.0.1:50519/imatch/apps/auto-tagger/lib/tf.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:50519/imatch/apps/auto-tagger/lib/coco-ssd.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: thrinn on June 23, 2023, 07:37:32 AM
Hi John,
you can safely ignore the "DevTools failed to load source map" messages: they only tell you that Chrome does not find the original source code files on your PC. But this does not have any impact on the functionality of the App. It only means that debugging would be less comfortable because the code is less readable by humans.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on June 23, 2023, 02:07:42 PM
The DevTools warnings can be safely ignored.
If there are no red error messages in the network tag, all images were fetched and delivered successfully.
This means that the problem is in the app itself, or in the component that does the film strip.
AutoTagger seems to have processed the image alright, showing keywords.

Have you tried resizing the AutoTagger window?
This enforces a re-layout of everything, including the film strip.

If this does nothing, let's have a look at the HTML generated.


Image1.jpg

If you click on the button shown below, and then hover the mouse over the AutoTagger app, Chrome will show the HTML under the cursor and when you click an element, it will show the surrounding HTML on the right side.

Image3.jpg

In this example, I've clicked on the first image on the left. If you don't see images and you click there, we hopefully can see in the HTML code shown on the right why there is no image:

Image4.jpg

The HTML code shown in the "Elements" tab after clicking into the image. This HTML is what makes the image show.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 23, 2023, 10:58:44 PM
Resizing the Autotagger window didn't change anything.

Unfortunately, when no images show in the filmstrip, there are no images to click on, so no imageid data in Elements. See screenshots 5 & 6.

When I closed and reopened IM, running Autotagger showed two of six images selected in IM. See screenshot 7 with one of the two in filmstrip selected. Of course, I couldn't select the missing images.

I did notice one odd thing: the filmstrip only seems to show images without keywords, at least in this particular test. But on the next test, the filmstrip only showed 4 images w/o keywords of 10 selected images (9 of which had no keywords). Strange an inconsistent.

Given this, I don't know how to shown the HTML for the missing images. Is there another way to dup status data from the app?
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 23, 2023, 11:48:14 PM
Further checking shows that only raw (NEF) files are being shown on the filmstrip, regardless of whether they have keywords!
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: thrinn on June 24, 2023, 10:17:09 AM
This is all very strange. I tried the AutoTagger with different files, (JPG, ARW, ORF, even PDF) - and the thumbnails are always displayed. Including files with and without existing keywords. All worked. So I can not reproduce your issue.

Just as an idea:The AutoTagger allows to select different thumbnail sizes in the settings. Don't know if this could make any difference.

Maybe I overlooked the info, so I will just ask: Are the same files sometimes displayed, sometimes not? Or are only specific files missing? If the latter: Maybe try to recreate the cache images for the missing ones?

Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 24, 2023, 10:34:44 PM
Thanks for the ideas to check. I've tried re-sizing the thumbnails; it doesn't change the problem. 

I've tried reloading the Autotagger to see if different images are shown; doesn't seem to make a difference. I also checked using my laptop instead of my desktop to see if that made a difference; it didn't. 

More investigation: My Nikon NEF files are all shown, but not JPG images derived from those (mostly processed with various versions of DxO PhotoLab). However, I do see JPGs from non-Nikon cameras and straight-from-camera JPGs from my Nikon cameras (I have very few of these). The rest of the Autotagger functionality appears OK; the Autotagger will suggest keywords based on images that aren't in the filmstrip, but it's a handicap not to see the image. 

I've attached a sample Z6 JPG (processed with DxO PhotoLab) that doesn't appear in the Autotagger film strip in case anyone want to check it. 
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: axel.hennig on June 24, 2023, 10:52:10 PM
Hi John,

I haven't fully followed this discussion, just from time to time "a little bit".

Your attached file is shown when I run it (together with another file) in AutoTagger (see screenshot).
sc1.jpg
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 24, 2023, 11:16:10 PM
Thanks for checking! Now all I have to do is figure out why I'm not seeing it on either my desktop or my laptop! I don't have any issues with images elsewhere in IMatch or in any other application. 
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on June 25, 2023, 10:02:54 AM
No problem here either with that file.
I've also tried a mix of 300 Nikon regular and Z series files, both RAW and processed. The film strip always worked.

This is all very strange.
No errors in the console or network tab.
Sometimes works, sometimes not.
App seems to work fine otherwise...
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 25, 2023, 08:54:14 PM
I agree - very strange, especially that it happens on both my desktop and laptop. The issue is consistent in that it seems that no JPGs developed from my Nikon cameras show in the AutoTagger filmstrip (not just for DxO PhotoLab, but also for Affinity Photo 2 and latest version of Photoshop based on my tests today). JPG images (and MOV files) directly taken with my Nikon cameras do appear in the filmstrip. 

Any suggestions for me to try to resolve this would be much appreciated!
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on June 25, 2023, 09:06:21 PM
Versions? Proxy images?
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 25, 2023, 10:14:13 PM
Not in the images I've tried so far. 
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 26, 2023, 09:33:50 PM
@Mario - given the isolated issues I'm running into (w/ Autotagger app and Imatch Log Reader), does it make sense to uninstall and reinstall IMatch? If so, is there anything else I should do?
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on June 26, 2023, 09:58:02 PM
I have no idea, frankly.
Maybe close IMatch and delete the folder "C:\ProgramData\photools.com\IMatch6\browser"

If you use a "virus checker" other than Windows Defender, maybe make sure it's not interfering somehow?
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 26, 2023, 11:44:22 PM
Thanks. Unfortunately, that didn't resolve the issue. I use Windows Defender; haven't noticed any issues with it. 
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 27, 2023, 01:09:33 AM
Further investigation: 

I uninstalled IM on my laptop (Win 11), restarted it then reinstalled IM. Same issues (except I hadn't loaded latest version of Log Reader - first version worked OK): Autotagger refuses to display thumbnails of JPGs developed from NEFs, although this isn't an issue elsewhere in IM or in any of the photo or other software I have on both my laptop and desktop (incomplete list includes DxO PhotoLap 6, Topaz Sharpen AI, Photoshop, Lightroom, Affinity Photo 1 & 2, etc.). 

Next, I installed IM on my wife's Win 11 laptop (both laptops are MS Surface Books, but hers is a more recent version than mine). Result: Autotagger works properly, showing thumbnails of JPGs and NEF files. 

Any advice on what to do next? My suspicion is software differences, but I don't know where to start. 
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on June 27, 2023, 09:52:15 AM
The AutoTagger uses the thumbnails stored in the database. The same used e.g. for the File Window.
There are no dependency on anything external or anything.

You can try that out in your browser. If you know the OID of an image, you can use this URL to fetch the thumbnail in your web browser:

http://127.0.0.1:50519/v1/files/image?auth_token=&id=<ID_OF_YOUR_FILE>&imagesize=dbthumbnail&default=true

If you put this variable {File.OID|cast:int} in the VarToy, it shows the OID you can use with the URL.

This is basically what the mini File Window in the AutoTagger does. Or the Pinboard App.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 27, 2023, 08:37:49 PM
Thanks.

The thumbnail of a file that doesn't show up in the Autotagger filmstrip does display properly using the expression you provided (see screenshot). So does the thumbnail of a file that does appear in the filmstrip. Both these files also appear in the Pinboard app. So the thumbnails are there and otherwise display in other apps/uses. 

Must be some other problem that causes the app not to display some images.  
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on June 27, 2023, 08:50:52 PM
That was my guess. Otherwise you would see red errors in the Network tab when you run AutoTagger in your browser.
I currently have no further clue.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: ubacher on June 30, 2023, 08:45:13 PM
I tried AutoTagger today - no thumbnails showing. This makes it unusable for more than one image at a time.
Win 10.
Running it in the browser it shows one thumbnail only (4 files selected)

Network errors shown:
Source map error: Error: NetworkError when attempting to fetch resource.
Resource URL: moz-extension://6163dbea-d3e5-43eb-a134-172a45f1090d/model/static/DOMPurify/purify.min.js
Source Map URL: purify.min.js.map

Source map error: Error: request failed with status 404
Resource URL: [url=http://127.0.0.1:50519/system/moment/moment-with-locales.min.js]http://127.0.0.1:50519/system/moment/moment-with-locales.min.js[/url]
Source Map URL: moment-with-locales.min.js.map

Source map error: Error: request failed with status 404
Resource URL: [url=http://127.0.0.1:50519/imatch/apps/auto-tagger/lib/tf.min.js]http://127.0.0.1:50519/imatch/apps/auto-tagger/lib/tf.min.js[/url]
Source Map URL: tf.min.js.map

Source map error: Error: request failed with status 404
Resource URL: [url=http://127.0.0.1:50519/imatch/apps/auto-tagger/lib/coco-ssd.js]http://127.0.0.1:50519/imatch/apps/auto-tagger/lib/coco-ssd.js[/url]
Source Map URL: coco-ssd.min.js.map
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on June 30, 2023, 08:51:36 PM
The source map errors are normal. IMatch does not include source maps. You can safely ignore them.
The first one is from a plug-in you run in your FF browser.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on June 30, 2023, 10:13:23 PM
@Ubacher - Thanks for confirming the issue. 
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on July 01, 2023, 10:26:07 AM
So, that makes two users with this problem.
What is the same? What is different?
If there are no red network errors when IMatch tries to fetch the cover images and the AutoTagger makes keyword suggestions, the images are loaded, just not displayed for some reason.

Does the IMatch Clipboard work for you?
It uses the same component to render thumbnails.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: thrinn on July 01, 2023, 12:06:00 PM
One cause for pictures not showing up in the thumbnail strip is if they are "protected" by the shield icon and the "Protected files visible" option is unchecked. But in this case, the thumbnails should also be hidden in the file window.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on July 01, 2023, 12:25:33 PM
Good point.
Protected files are ignored by the AutoTagger, it does not load them.
This situation is indicated on the home page of the AutoTagger:

Image1.jpg
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: thrinn on July 01, 2023, 12:44:05 PM
Quote from: Mario on July 01, 2023, 12:25:33 PMThis situation is indicated on the home page of the AutoTagger:
An important information which I totally missed :-[ . Because I was completely focused on the tagger page, I did not pay attention to the home screen, just clicked through to "Lookup and Review". I will create a small feature request to make this information a bit more prominent.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on July 01, 2023, 02:11:52 PM
For those affected by the "no thumbnail" problem and not working with protected files, please try this:

in the file "c:\ProgramData\photools.com\IMatch6\webroot\imatch\apps\auto-tagger\src\app.js"

change the line

import '/system/vue/vue.min.js'

right at the top into

import '/system/vue/vue.js'

This enables debugging for the Vue component used by IMatch.

Now run AutoTagger in your web browser and look at the Console to see if there are any errors reported when you don't see thumbnails.

Don't forget to change the line back after your test is complete for optimal performance.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: ubacher on July 01, 2023, 03:02:21 PM
Running with vue in debug mode shows the attached error screenshot:
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on July 01, 2023, 03:12:53 PM
That's normal. IMatch first tries to find the -us resource and then falls back to the neutral en resource.
But that's not the console tab, it looks more like the network tab.
The error messages of the Vue component will show in the console tab, not in the network tab.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on July 01, 2023, 08:05:47 PM
Quote from: Mario on July 01, 2023, 10:26:07 AMSo, that makes two users with this problem.
What is the same? What is different?
...
Does the IMatch Clipboard work for you?
It uses the same component to render thumbnails.
The IMatch Clipboard works fine. As a test, I picked 6 images, 4 NEF and 2 JPG. All showed correctly in the Clipboard, but only the NEFs were visible for the same 6 images in the Autotagger filmstrip. None of these images are protected.

I'll try your other suggestion next.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on July 01, 2023, 08:17:07 PM
Quote from: jch2103 on July 01, 2023, 08:05:47 PMbut only the NEFs were visible for the same 6 images in the Autotagger filmstrip. None of these images are protected.
Hm, another strange effect.
If you add the same NEF/JPG files to a new database, does the AutoTagger work or fail with that database too?
If it fails (good!) you can send me the 4 NEF and 2 JPG files and I can hopefully reproduce the problem here.
When I can reproduce it, I can fix it.

Maybe the Vue debugging as described above will provide me with the info I need to fix this.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on July 01, 2023, 08:47:14 PM
Here's a screenshot of the debugger info (hopefully the 'right' console data). Hope it helps; if not, please let us know what to try. 

Haven't tried loading images into a new database yet, but this behavior (Autotagger filmstrip shows NEFs but not 'developed' JPGs) seems to be consistent with all my images so far. 

Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on July 01, 2023, 08:53:27 PM
Nothing unusual in the console.
Is this from a situation where the JPG files failed to load?
No clue there, unfortunately.

What happens if you select only the JPG files and start the AutoTagger?
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on July 01, 2023, 08:58:52 PM
Quote from: Mario on July 01, 2023, 08:53:27 PMNothing unusual in the console.
Is this from a situation where the JPG files failed to load?
No clue there, unfortunately.

What happens if you select only the JPG files and start the AutoTagger?
Yes, the prior screenshot was a situation where the JPGs failed to load. 

The attached screenshot is where only one JPG from the prior set was selected for the Autotagger. 
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: ubacher on July 01, 2023, 10:07:49 PM
Just tried selecting NEF files: They show OK, Tagger works OK
Jpgs fail to show.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on July 01, 2023, 10:23:08 PM
And if you only select the JPG files?
I still have no clue where to dig in.
Two users. Two similar problems.
No network errors. Nothing in the console.
I have no issues with using JPEG files or NEF or CR2 or even video files or PDF files.
Where is the connection...?
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: thrinn on July 01, 2023, 10:27:04 PM
Quote from: ubacher on July 01, 2023, 10:07:49 PMJust tried selecting NEF files: They show OK, Tagger works OK
Jpgs fail to show.
All JPGs? Or only some?
It is hard to help here because I haven't been able to reproduce the behaviour. For me, all file types are working fine. I also tried the JPG John attached to his reply #19, but it displays flawlessly here.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: ubacher on July 02, 2023, 09:14:19 AM
I could not establish a pattern between jpgs that show and those that don't. I send 3 jpgs of each
zipped to support.

(the pdf and psd files I tried showed OK!)
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on July 02, 2023, 02:14:44 PM
@ubacher: Thanks for sending the files.

Note: See the end of this post for a possible solution. You can ignore the details and just follow the instructions to install some patches.


I've tested them on my development system, and all six files (from the show/no show folders) show in AutoTagger.

I then created a new Windows installation in a VM and installed 2023.1.14.
Created a new database and added the folder with your images.
Selected all 6 files and started the AutoTagger. And NO files were shown. Yesss...

Opened my web browser to run AutoTagger and to see what's going on.
All images showed :-(

Closed the browser and repeated the test in IMatch AutoTagger. All images showed.

Closed IMatch. Cleared the browser cache. Reopened IMatch and ran AutoTagger for the 6 files. All images showed.

So I reset Windows again and install IMatch again and create a database again and add the 6 files.
This time I've connected the debugger to IMatch before launching AutoTagger.
And then configured the IMatch AI and clicked on "Lookup and Review...".
Again, no thumbnails were showing! Yesss...

Looking at the console revealed no errors. Neither in the network tab.
Looking at the generated source code showed that instead of thumbnails, the film strip had loaded SVG files, which are used as placeholders when there is no thumbnail for a file (IMWS did not deliver one).
But that made no sense. The correct image was requested according to the image URL. So why the placeholders?
At this time, I still have no clue.

@the two affected users

Can you open the settings in the Auto Tagger (Gear Icon in the toolbar) and then enable the expert mode and enable the "square thumbnails" option and save the changes by clicking OK.

Does that make a difference?
If so, disable the option again. Images still showing?

Update

20 Windows restores / re-installs / re-runs later...

I think this is a timing issue...?!

The film strip loads images on-demand, when they are needed / are scrolled into view.
It is designed to handle hundreds or thousands of images, so this on-demand is paramount for performance.

In the one situation (AutoTagger running for the first time after a fresh IMatch installation on a clean Windows 11) I noticed in the browser that the images in the film strip existed as HTML code, and all used the correct src="" attribute which fetches the actual image from IMatch.

But the image was not loaded (no thumbnail) and neither the placeholder. There were no requests sent to IMWS in IMatch to deliver the images.

I then tracked that down to the on-demand mechanism. Which was under the assumption that none of the images were currently in the view (no intersection). And this lead me to the thought that, maybe, this is a timing issue and the HTML has not been rendered completely by the browser, causing the film strip to have a width/height of 0 and hence, no image is visible by default. Or something like this.

So I made a code change. Restored Windows. Reinstalled IMatch. Applied the code change to the AutoTagger. Ran it and - no images :-(

Made other changes, same steps, and finally, images are shown. YAY!!


@ the affected users, please test this:

Close IMatch.

1. download the attached ZIP file and extract the contained files.
2. Copy the files to "c:\ProgramData\photools.com\IMatch6\webroot\system\ptc-vue\fw", replacing the existing files.
3. Delete this folder: "V:\develop\IMatch5\ProgramData\photools.com\IMatch6\browser"

Retry AutoTagger.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on July 03, 2023, 01:39:38 AM
Quote from: Mario on July 02, 2023, 02:14:44 PM1.  Looking at the generated source code showed that instead of thumbnails, the film strip had loaded SVG files, which are used as placeholders when there is no thumbnail for a file (IMWS did not deliver one).

But that made no sense. The correct image was requested according to the image URL. So why the placeholders?
At this time, I still have no clue.


2. Can you open the settings in the Auto Tagger (Gear Icon in the toolbar) and then enable the expert mode and enable the "square thumbnails" option and save the changes by clicking OK.


Does that make a difference?
If so, disable the option again. Images still showing?


3. @ the affected users, please test this:

Close IMatch.
1. download the attached ZIP file and extract the contained files.
2. Copy the files to "c:\ProgramData\photools.com\IMatch6\webroot\system\ptc-vue\fw", replacing the existing files.
3. Delete this folder: "V:\develop\IMatch5\ProgramData\photools.com\IMatch6\browser"
Retry AutoTagger.

Thank you for looking into this, Mario, and your exhaustive digging/testing!!

Unfortunately, my issue continues (e.g., my 'developed' JPG images don't appear in the Autotagger filmstrip). :'(

Re #1 above: Very interesting! At least that points to something specific going awry.

Re #2 above: Setting Expert mode and changing to Square thumbnails didn't change anything. This is true whether Autotagger is run in a browser window or not.

Re #3 above: I tried this with some new images after running the above steps: NEF appeared in filmstrip but not the 'developed' JPG. I then tried shooting a sample NEF+JPG Fine (set in the camera image quality menu setting); same thing happened.  Oddly, changing the camera menu to JPG Fine (only) yields JPG images that do appear in the filmstrip. Here's a link to these two JPGs https://1drv.ms/u/s!AtlBwiIf8wQzgZc6jjGdxjdnbOCYfg?e=CeUJru although I suspect you won't see a difference (there are some minor metadata differences due to the fact that the JPG-only image was in shutter priority while the NEF+JPG JPG was in aperture priority.)

To add to the puzzle, JPG images from my phone do show up properly in the Autotagger filmstrip.

EDIT: Based on Mario's suspicion of a timing issue, I copied the two JPGs referenced above plus another 'processed' JPG into a new folder with no NEFs or other files present (these were the same JPGs that didn't show up in the filmstrip as described above).

Result: All three JPG images appear in the filmstrip!! I then copied the NEF that was part of the NEF+JPG pair reference above; result: the JPG part of the 'pair' no longer appears in the filmstrip but the NEF does...(??) And when I copied the NEF of the 'processed' JPG from another image already in the folder, the corresponding JPG not longer appeared in the filmstrip... (If it matters, the NEF/JPG pairs have the same name except that the JPGs have '_DxO' appended to the name.)

Preliminary conclusion: If a NEF/JPG pair is in the same folder, only the JPG appears in the Autotagger filmstrip (at least on my computer - I always keep the NEF & JPG pairs in the same folder, unlike some other users). This relationship holds up as I add more images to my test folder... Perhaps this helps diagnose the issue?

Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on July 03, 2023, 02:18:02 AM
Here's a link to some of the NEF/JPG pairs and a standalone JPG from my above post: https://1drv.ms/u/s!AtlBwiIf8wQzgZc7VkGwST2oaS82ZQ?e=Ild0dt
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on July 03, 2023, 08:28:51 AM
Quote from: jch2103 on July 03, 2023, 01:39:38 AMPreliminary conclusion: If a NEF/JPG pair is in the same folder, only the JPG appears in the Autotagger filmstrip (at least on my computer - I always keep the NEF & JPG pairs in the same folder, unlike some other users). This relationship holds up as I add more images to my test folder... Perhaps this helps diagnose the issue?

I assume you are using versioning for the NEF/JPG and the JPEG is a visual proxy and buddy file?
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: thrinn on July 03, 2023, 09:00:00 AM
Quote from: jch2103 on July 03, 2023, 01:39:38 AMPreliminary conclusion: If a NEF/JPG pair is in the same folder, only the JPG appears in the Autotagger filmstrip (at least on my computer - I always keep the NEF & JPG pairs in the same folder, unlike some other users). This relationship holds up as I add more images to my test folder... Perhaps this helps diagnose the issue?
But you are sure that there is no File Relation rule / Visual Proxy coming into play here? I tested the two JPGs you provided via OneDrive in my DB, but they show up properly. Of course, I do not have the NEFs.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on July 03, 2023, 09:10:06 AM
Found it!
Replace the file

"C:\ProgramData\photools.com\IMatch6\webroot\imatch\apps\auto-tagger\src\app.js"

with the "app.js" from the attached ZIP.
After opening the AutoTagger, click into it and press <Ctrl>+<F5> a few times to force a reload.
If this does not help, close IMatch and delete the cache folder as explained above.

The problem was caused by an existing version stack and the way AutoTagger initialized the File Window.
Stacked files were hidden, which makes no sense in this context.

Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: ubacher on July 03, 2023, 09:15:14 AM
This fixed it! Hurray!
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: thrinn on July 03, 2023, 09:21:37 AM
This bug was really a heavy one!
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on July 03, 2023, 09:47:25 AM
Quote from: thrinn on July 03, 2023, 09:21:37 AMThis bug was really a heavy one!
The bug was fixed in 5 minutes, after I could reproduce it reliably.
That's always the tricky part.

I still think there was also a timing issue, since I could repro it once on a fresh Windows and with a fresh IMatch install for a folder without any versions.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: jch2103 on July 03, 2023, 07:08:37 PM
Fabulous! That fixed it. Great detective work! Many thanks.
Title: Re: IMatch 2023 - IM Autotagger film strip?
Post by: Mario on July 03, 2023, 07:42:53 PM
Good result. Tricky to figure out.
But that one would have affected many more users over time, so I'm happy to have it fixed.
Should've found this easier, my brain is just a bit mushy after the past two weeks :-[

Another bug bites the dust :)
(To the melody of another one bits the dust by Queen)