Trouble with srcset links in sitemap_images.xml
« on: January 07, 2017, 04:48:18 PM »
My Wordpress site displays Images with links like these:

Code: [Select]
<a href="https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043.jpg">
<img itemprop="contentURL" class="wp-image-862 size-large" style="width: 379px;" src="https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043-758x1140.jpg"
alt="Filmtitel neu ins Bild gesetzt"
data-large-rendition="https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043-758x1140.jpg"
data-full-rendition="https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043.jpg"
data-permalink="https://fotos.michilge.de/blog/?attachment_id=862" srcset="https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043-758x1140.jpg 758w,
https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043-379x570.jpg 379w,
https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043.jpg 830w"
sizes="(max-width: 758px) 100vw, 758px" width="758" height="1140"></a>

in the image sitemap these are included with links that lead to a 404 when they are clicked on.

Code: [Select]
133 https://fotos.michilge.de/blog/aus-der-beliebten-reihe-filmtitel-neu-ins-bild-gesetzt/       2017-01-07T14:33:12+00:00 monthly 0.5120
https://fotos.michilge.de/blog/aus-der-beliebten-reihe-filmtitel-neu-ins-bild-gesetzt/758w   Filmtitel neu ins Bild gesetzt
https://fotos.michilge.de/blog/aus-der-beliebten-reihe-filmtitel-neu-ins-bild-gesetzt/379w   Filmtitel neu ins Bild gesetzt
https://fotos.michilge.de/blog/aus-der-beliebten-reihe-filmtitel-neu-ins-bild-gesetzt/830w   Filmtitel neu ins Bild gesetzt
https://fotos.michilge.de/blog/aus-der-beliebten-reihe-filmtitel-neu-ins-bild-gesetzt/2x
I would be content if only one link were included in the sitemap. But it should be one that works.
How can I configure the stand alone sitemap generator to include only links that can be resolved without errors?
update: Trouble with srcset links in sitemap_images.xml
« Reply #1 on: January 08, 2017, 06:37:10 PM »
It dos not seem as if "Exclude URLs:" supports a regular expression like
Code: [Select]
/[0-9]+wI can of course add strings for any width into that field like

Code: [Select]
/150w
/194w
/300w
/321w
...

But I will have to adapt that whenever I upload another image to Wordpress in case it results in a new width.

I do not understand why
Code: [Select]
https://fotos.michilge.de/blog/wp-content/uploads/2014/09/20140930_1418_Erdbeerhaus_IMGP9043-379x570.jpg 379wis altered to a string like
Code: [Select]
https://fotos.michilge.de/blog/aus-der-beliebten-reihe-filmtitel-neu-ins-bild-gesetzt/379w
I also tried adding a comma and a space to "Exclude URLs:", but that did not help either.
Re: Trouble with srcset links in sitemap_images.xml
« Reply #3 on: January 09, 2017, 12:01:41 AM »
Yes, that worked.
Thank You.