ArchiveTeam / wpull

Wget-compatible web downloader and crawler.
GNU General Public License v3.0
545 stars 77 forks source link

Support for server-side image maps #466

Open JustAnotherArchivist opened 3 years ago

JustAnotherArchivist commented 3 years ago

I found out today about an obscure feature in HTML: server-side image maps. This is an image with an ismap attribute:

<a href="/foo"><img src="bar.png ismap /></a>

Upon clicking on the image, the coordinates are appended to the URL as a query string of the form ?x,y, e.g. /foo?17,42 when clicking 17 pixels from the left and 42 pixels from the top. Note that this is true even if there is already a query string; if the href is /foo?bar, then the request would be /foo?bar?17,42 (see <a> definition in HTML5.2).

Real-world example using this feature via an ArchiveBot job: http://www.esva.net/cgi-bin/pix?Scrapbooks/Scrapbooks_from_2010/Rally_for_Sanity/rrsf013.jpg (the bar on the left of the picture)

Some thoughts on this:

Overall, I'm leaning strongly towards HELL NO!, but I found this interesting enough of a case to mention here. If anyone has a real-world example where this would actually be useful (unlike the one above), please do tell.