Developer forum

Forum » PIM » Incorrect and incomplete image pattern detection

Incorrect and incomplete image pattern detection

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a project where images are pretty important. The marketing team is preparing images for every product and for productivity reasons I have suggested to work with image patterns.

We have defined about 10 image patterns (including the one for the main image).

No matter what we are doing, the system will only detect 7 images.

A second issue is that it not even detects 7 images if one of the patterns is missing. Say, you have _1, _2 and _5. It will only find the fist 2 images but the third one will not be detected even if it fits one of the pattern rules.

This is happening in PIM interface and the template.

I have included below 2 very short screen recordings (in Romanian) but they are pretty self-explanatory

https://www.loom.com/share/0aeeb5acfe3949d7ab144b0accdf13ec

https://www.loom.com/share/53cb982e43df4b9ba0cfc399900e2179

 

The solution is using DW 9.9.2

I need to know if this is a known issue and if there is a solution to overcome it. The marketing team has spent a large amount of time to document the images for a few thousand products and I need to let them use them.

Thank you,

Adrian


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I could really use an answer here.

 

Thank you,

Adrian

 
Michael Knudsen
Reply

Hello Adrian,

- I have made a replica of your image pattern setup in a DW 9.9.4 solution, and it works as expected (see below).  What version of DW is your solution running?

 

Br. Michael Knudsen

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Michael,

We are using DW 9.9.2.

I could not find any relevant mention in the release notes for versions higher than 9.9.2 to suggest that a fix has been made afterward.

Maybe I am configuring the patterns wrongly? Can it be something wrong with the images or their format?

Thank you,
Adrian

 
Michael Knudsen
Reply

Hello Adrian,

- could you share the content of the database field "ShopAlternativeImagePatterns" in dbo.EcomShops for the PIM warehouse?

If you suspect something to be wrong in the images, you could use the same image (that shows correctly), but with different filenames, just to quickly eliminate any error regarding image format.

 

Br. Michael Knudsen

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Michael,

This is for the EcomShop

[{"height":"","isdefault":false,"name":"Alt_1","pattern":"\/{ProductNumber}_1.jpg","width":""},{"height":"","isdefault":false,"name":"Alt_2","pattern":"\/{ProductNumber}_2.jpg","width":""},{"height":"","isdefault":false,"name":"Alt_3","pattern":"\/{ProductNumber}_3.jpg","width":""},{"height":"","isdefault":false,"name":"Alt_4","pattern":"\/{ProductNumber}_4.jpg","width":""},{"height":"","isdefault":false,"name":"Alt_5","pattern":"\/{ProductNumber}_5.jpg","width":""},{"height":"","isdefault":false,"name":"Alt_6","pattern":"\/{ProductNumber}_6.jpg","width":""},{"height":"","isdefault":false,"name":"Alt_7","pattern":"\/{ProductNumber}_7.jpg","width":""},{"height":"","isdefault":false,"name":"Default","pattern":"\/{ProductNumber}.jpg","width":""},{"height":"","isdefault":false,"name":"Alt_9","pattern":"\/{ProductNumber}_a.jpg","width":""},{"height":"","isdefault":false,"name":"Alt_10","pattern":"\/{ProductNumber}_b.jpg","width":""},{"height":"","isdefault":false,"name":"Alt_11","pattern":"\/{ProductNumber}_c.jpg","width":""},{"height":"","isdefault":false,"name":"Alt_12","pattern":"\/{ProductNumber}_d.jpg","width":""}]

This is for PIM


[{"height":"","isdefault":false,"name":"Alt_1","pattern":"{ProductNumber}_1.jpg","width":""},
{"height":"","isdefault":false,"name":"Alt_2","pattern":"{ProductNumber}_2.jpg","width":""},
{"height":"","isdefault":false,"name":"Alt_3","pattern":"{ProductNumber}_3.jpg","width":""},
{"height":"","isdefault":false,"name":"Alt_4","pattern":"{ProductNumber}_4.jpg","width":""},
{"height":"","isdefault":false,"name":"Alt_5","pattern":"{ProductNumber}_5.jpg","width":""},
{"height":"","isdefault":false,"name":"Alt_6","pattern":"{ProductNumber}_6.jpg","width":""},
{"height":"","isdefault":false,"name":"Alt_7","pattern":"{ProductNumber}_7.jpg","width":""},
{"height":"","isdefault":false,"name":"Alt_8","pattern":"{ProductNumber}_8.jpg","width":""},
{"height":"","isdefault":false,"name":"Alt_9","pattern":"{ProductNumber}_9.jpg","width":""}] 

 

And now I think I see the issue.

The pattern list for EcomShop is limited to the first 7 rules.

And while we are at it, do I need to define separate Patterns for EcomShop and for PIM or one of them is enough? In this case, I believe the EcomShop takes precedence even for PIM

 

Thank you,

Adrian

 

 
Michael Knudsen
Reply

Hello Adrian,

- I havn't tried to have different image pattern for PIM / Ecom, but I except it should work perfectly fine.  Have you tried to build the same image pattern for both PIM and Ecom for testing?

 

Br. Michael Knudsen

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Michael,

I will try that.

Apparently, the 2 sets of rules are impacting each other but I will see if making them identical would solve the issue.

Thank you,

Adrian

 

You must be logged in to post in the forum