So resulting image, after the merging work, will be divided in 4 just like a cartesian plane. ImageMagick have a limitation on the dimension of images it can work on. the all the files, but the script, MUST be in this folder "cd ~/Desktop/xkcd/" cos the script will search them there…Ĥ. the script use ImageMagick so you must have it installed on your machine. (now i realized i can get rid of the extension and made it work aw, but it's 00:30 here and i'm going to sleep!)Ģ. the files MUST be named as you download them! (xnxw.jpeg) <– jpeg!!! Just ended the last version and it works like a charm… almost XDġ. Since some visitors might be interested, here is the list, I found so far. Thank you Randall, and keep up your great work!! Edit: Other people’s approachesĪ lot of other people on the web did very similar but different approaches. This map is again 1/10th of my full map, so 1/100th of the original images (click to see full size, otherwise it’s approx. The black grid lines mark the border between e-w and n-s, although the latter can hardly be seen, since the whole line is set with images. I added a white grid, so that you can easier follow the coordinates. On the top and left you can find the coordinates of the png files. These are either completely black or completely white. Lisp code to pull down all the images in the XKCD 'Click and Drag' comic - xkcd-click-and-drag/map. Explore xkcd 2712 - Click and Drag - Zoomable Map - GitHub - Lanzaa/xkcd2712: Explore xkcd 2712 - Click and Drag - Zoomable Map. Gray marks areas where no images are available. is best viewed with Netscape Navigator 4.0 or below on a Pentium 3☑ emulated in Javascript on an Apple IIGS at a screen resolution of 1024x1. The other day, web comic genius Randall Munroe of xkcd unleashed a comic that was a different sort of. You can find the sorted list of all images at the end of this post.Īfter I got all the images, I downsampled them to 1/10th, and arranged them with a little C# hack. xkcd Comic Click and Drag Turned Into an MMO. I got 225 files that existed, all others are completely black or white and returned a 404-Not found. I did a brute force download of all the images (sorry Randall) using simple DOS shell commands like this for the s-e-quadrant: FOR /L %x IN (1,1,25) DO FOR /L %y IN (1,1,48) DO wget These are the bounds of respectively, however, I did only find images for, a little bit less in the n-s direction, but maybe I was missing something. The bounds can be found in the JavaScript file : var size= The images are each 2048×2048 pixels in size and are arranged in an orthogonal grid. Where n, s, e, w are characters to select the quadrant, and X and Y are positive integers (>=1) with no zero padding. I figured out, that the map pieces follow the URL pattern Y.png, So I decided to create an overview map, to aid you in navigation. It is so large, that it takes a really long time to go through it. You can explore it via clicking and dragging, as the title suggests. ![]() ![]() Just opening 1024x1024 in Preview.ap pegged the CPU for a while, and requires ~1GB of RAM.Today’s xkcd comic has probably the largest comic frame ever drawn. * Requires Python Imaging Library, a relatively recent python, and a shitload of RAM if you want a large tile size.ġ024x1024 tile and 2048x2048 tile (full size) composites generated on an EC2 high mem (m2.xlarge) instance this is due to memory requires - it required ~13GB of RAM. * Typically used like "python stitch.py 128 raw/*.png" * Must provide a list of images as the remaining arguments. Each tile will be resized to this small and placed Of course, not everything is stored on the xkcd server: if the image. * Must provide a tilesize (128, 256, 512, 768, 1024, 2048 all included). 165,888 x 79,872 pixels for the whole map (Thats more than 13 billion pixels in total). Scroll down and across to see the the full world for xkcd 1110: Click and Drag. * retrieve.py, which downloads all the xkcd images (now stored in raw) The no-tile background is grey, to highlight where the tiles are.Īll images copyright Randall Munroe,. This generates a single huge png with all the tiles placed appropriately.
0 Comments
Leave a Reply. |