{ "info": { "author": "Yo Studios AB", "author_email": "opensource@yostudios.se", "bugtrack_url": null, "classifiers": [], "description": "==============\n Spritemapper \n==============\n\n:Homepage: http://yostudios.github.com/Spritemapper/\n:Authors: Yo Studios \n\nSpritemapper is an application that merges multiple images into one and\ngenerates CSS positioning for the corresponding slices.\n\nThe package consists of a simple command-line tool that \"does the job\" and a\nPython library including its own PNG and CSS parser. The choice of\nwriting/bundling this was to stay off 3rd-party requirements. Anybody who has\never had the pleasant job of installing PIL__ on various platforms should have\na pretty good idea about what we're trying to avoid.\n\n__ http://www.pythonware.com/products/pil/\n\nThere are multiple alternatives to Spritemapper, but they all require a bit too\nmuch manual labour, whereas Spritemapper reads your current CSS, replacing\nbackground images and position with the generated result. \n\nThis technique drastically improves your website's loading speed, effectively\nreducing bandwidth by downloading fewer images.\n\nSpritemapper in action\n----------------------\n\nHere's a simple example illustrating what Spritemapper will do with your CSS::\n\n .emote.smile {\n background: red url(../img/emoticons/smile.png) no-repeat;\n }\n .emote.grin {\n background: white url(../img/emoticons/grin.png) no-repeat;\n }\n\nturns into::\n\n .emote.smile {\n background: red url(../img/emoticons.png) no-repeat 0 0;\n }\n .emote.grin {\n background: white url(../img/emoticons.png) no-repeat 0 -16px;\n }\n\nCheck our homepage__ for real life examples.\n\n__ http://yostudios.github.com/Spritemapper/\n\nUsage\n-----\n\n``-h``, ``--help``\n show a help message and exit\n\n``-c INI``, ``--conf=INI``\n read base configuration from INI (see `Configuration options`_)\n\n``--padding=N``\n keep N pixels of padding between sprites\n\nConfiguration options\n---------------------\n\nConfiguration options can be specified in one of two ways: inline in the CSS,\n*or* using passing an INI file with defaults. For CSS it looks something like::\n\n /* spritemapper.output_css = foofile.css\n\nYou can do the exact equivalent using an INI file, like this::\n\n [spritemapper]\n output_css = foofile.css\n\nIt's important to note that all paths are relative to the CSS file being\nprocessed.\n\n.. _opt_ref:\n\n``base_url``\n a url at which the resulting css and image files can be reached. \n by default uses file-relative paths (recommended).\n\n``sprite_dirs``\n a list of directories within which to allow spritemaps to be generated. \n by default all directories are eligible.\n\n``recursive``\n set if sub-spritemaps should be generated when sub-directories are found.\n set by default.\n\n``output_image``\n the name of output spritemap image.\n ``sprite_dirs`` is incompatible with this because both tell the\n spritemapper how to sort sprites into spritemaps.\n by default ** + ``.png``.\n\n``output_css``\n the name for the rewritten CSS file.\n by default ``sm_{basename}{extension}``.\n\n``padding``\n amount of padding space between two images. this is mostly useful to\n counteract subpixel rendering artifacts on iOS devices.\n by default 1.\n\n``anneal_steps``\n a larger number here makes the box packer algorithm try more combinations.\n by default 9200.\n\nRunning tests\n-------------\n\nThe test suite requires Nose__. You can run them through setup.py, ``python\nsetup.py test`` or plain ``nosetests``.\n\n__ http://somethingaboutorange.com/mrl/projects/nose/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://yostudios.github.com/Spritemapper/", "keywords": null, "license": "MIT/X11", "maintainer": null, "maintainer_email": null, "name": "spritemapper", "package_url": "https://pypi.org/project/spritemapper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/spritemapper/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://yostudios.github.com/Spritemapper/" }, "release_url": "https://pypi.org/project/spritemapper/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "A suite for merging multiple images and generate corresponding CSS in one go", "version": "1.0.0" }, "last_serial": 799979, "releases": { "0.5": [ { "comment_text": "", "digests": { "md5": "a98f44ea3db6279ab6b142c7a5f6d4b8", "sha256": "ba49b5884800d5f3adaacfeb9898a5f67304563f0fc6f1dbf025b85435984ebe" }, "downloads": -1, "filename": "spritemapper-0.5.tar.gz", "has_sig": false, "md5_digest": "a98f44ea3db6279ab6b142c7a5f6d4b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 166799, "upload_time": "2011-04-13T19:04:17", "url": "https://files.pythonhosted.org/packages/44/a2/d15eca2edcce5bf6f7917976e168ae3fab1136d04571a04a9a731fc70fc8/spritemapper-0.5.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "5195a2e37489bc16295b77e02338c2d2", "sha256": "16e0104ac8439492fa7e0f951f9a01f073b4d62d1e9cac837867f5e083904055" }, "downloads": -1, "filename": "spritemapper-0.6.0.tar.gz", "has_sig": false, "md5_digest": "5195a2e37489bc16295b77e02338c2d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 191182, "upload_time": "2011-04-14T12:56:34", "url": "https://files.pythonhosted.org/packages/8a/e6/0cdec43292514c764e566d43e2abdc4f06203b95143e4de60a43753c1692/spritemapper-0.6.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "f95b317180e4c3adb8d20b4d83ef582f", "sha256": "a8abaf841de0c5b1647bfcd5c32b4accd2f4843b2a55e64f883dda973bd8c94d" }, "downloads": -1, "filename": "spritemapper-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f95b317180e4c3adb8d20b4d83ef582f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 394447, "upload_time": "2011-04-27T18:12:45", "url": "https://files.pythonhosted.org/packages/80/1c/ef073fd281e35c3c0d98ca461908ff196e87ca3453118a7ddbfb708966af/spritemapper-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f95b317180e4c3adb8d20b4d83ef582f", "sha256": "a8abaf841de0c5b1647bfcd5c32b4accd2f4843b2a55e64f883dda973bd8c94d" }, "downloads": -1, "filename": "spritemapper-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f95b317180e4c3adb8d20b4d83ef582f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 394447, "upload_time": "2011-04-27T18:12:45", "url": "https://files.pythonhosted.org/packages/80/1c/ef073fd281e35c3c0d98ca461908ff196e87ca3453118a7ddbfb708966af/spritemapper-1.0.0.tar.gz" } ] }