Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for server-side image maps #466

Open
JustAnotherArchivist opened this issue Jun 17, 2021 · 0 comments
Open

Support for server-side image maps #466

JustAnotherArchivist opened this issue Jun 17, 2021 · 0 comments

Comments

@JustAnotherArchivist
Copy link
Contributor

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:

  • This obviously has the potential to generate a ridiculous amount of URLs, but it could in some cases be necessary to correctly recurse through a site.
  • I'm pretty sure this is extremely rare. Unlike <area>, I don't think I've ever seen ismap before.
  • This would be tricky to implement because you have to know the image size before you can even generate the URLs.
  • If implemented, it should probably be disabled by default and enabled through an option due to the potential URL explosion.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant