Reputation: 55
When importing an image via http in Magmi with the Image attribute processor it will not parse an http link correctly if it has a "(" or ")" in the image name. I have tried numerous ways to format the url.
example:
http://img.banggood.com/images/upload/2012/liuguanglian/SKU064425%20(-;4)-;.JPG
Had to add - to the above example or it would auto change to ( )
http://img.banggood.com/images/upload/2012/liuguanglian/SKU064425%20(4).JPG
both are retrievable via http (browser) but fail during importing. This is the error:
source error, Cannot fetch URL:
http://img.banggood.com/images/upload/2012/liuguanglian/SKU064425%20(
Image attributes processor v1.0.31 - 4) cannot be found in images path
Image attributes processor v1.0.31 - .JPG cannot be found in images path
Image attributes processor v1.0.31 - error copying
Any help would be greatly appreciated.
Upvotes: 2
Views: 1692
Reputation: 5605
I suppose your problem happens only on media_gallery column.
The problem might come from the ; of the encoded ( and ) since it's a separator for media_gallery column.
Would those ( and ) be set as is in the image url instead of encoded, then it should work correctly.
this can be solved by using value replacer with following settings:
media_gallery,image,small_image,thumbnail
{{ urldecode(html_entity_decode({item.media_gallery})) }}
{{ urldecode(html_entity_decode({item.image})) }}
{{ urldecode(html_entity_decode({item.small_image})) }}
{{ urldecode(html_entity_decode({item.thumbnail})) }}
Upvotes: 1