{"id":13851930,"url":"https://github.com/whackashoe/antimoderate","last_synced_at":"2025-05-16T12:12:36.168Z","repository":{"id":58232750,"uuid":"44227943","full_name":"whackashoe/antimoderate","owner":"whackashoe","description":"The progressive image loading library for great good!","archived":false,"fork":false,"pushed_at":"2018-01-12T15:54:30.000Z","size":517,"stargazers_count":1501,"open_issues_count":7,"forks_count":107,"subscribers_count":56,"default_branch":"master","last_synced_at":"2025-05-09T09:08:17.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whackashoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-14T06:18:13.000Z","updated_at":"2025-05-01T11:46:43.000Z","dependencies_parsed_at":"2022-08-30T22:30:19.430Z","dependency_job_id":null,"html_url":"https://github.com/whackashoe/antimoderate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whackashoe%2Fantimoderate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whackashoe%2Fantimoderate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whackashoe%2Fantimoderate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whackashoe%2Fantimoderate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whackashoe","download_url":"https://codeload.github.com/whackashoe/antimoderate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254527099,"owners_count":22085919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T22:00:49.275Z","updated_at":"2025-05-16T12:12:31.159Z","avatar_url":"https://github.com/whackashoe.png","language":"JavaScript","readme":"AntiModerate\n===\n\nThe progressive image loading library for great good!\n\n---\n\n\nReduce loading time of page to less than a second on slow connections by loading and rendering nicely blurred micro images on the page while loading full sized images in background which replace as they finish.\n\nHas a nice blur effect thanks to [StackBlur](https://github.com/flozz/StackBlur/) so you have a good looking page while it is loading.\n\nLibrary is space optimized, with gzip it is less than 2kb.\n\n\n![Example](http://i.imgur.com/fkgiPNe.png)\n\n##Installation\n\nYou can install this using `bower` or `npm`:\n\n```\n  bower install antimoderate\n```\n```\n  npm install antimoderate --save\n```\n\n##Example\n\n\n```html\n\u003cimg src=\"1.jpg\" id=\"picture\" style=\"width:200px; height:200px;\" data-antimoderate-idata=\"data:image/jpg;base64, /9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAlACgDAREAAhEBAxEB/8QAGQAAAgMBAAAAAAAAAAAAAAAAAwQCBQYB/8QAGAEBAQEBAQAAAAAAAAAAAAAAAAEDAgT/2gAMAwEAAhADEAAAAeyqgi0iYKg56Gw9ZfX4JRCq+VfjV3TGxgdZhFKcNJyNWUpYOajl/8QAHxAAAgICAgMBAAAAAAAAAAAAAQIAAwQTEjERISQj/9oACAEBAAEFApdZrVbrEMHcYeLba9og7mXbqV8rYtF/KDuZLfWCFisDMdi1XGZdf1mv1UnrFH4//8QAHREAAgIBBQAAAAAAAAAAAAAAAQMAESACITAxMv/aAAgBAwEBPwHJfqMXfeANGMcdW3L/AP/EABsRAAEFAQEAAAAAAAAAAAAAAAECEBEgMQAD/9oACAECAQE/AaHGXnJXGMcdPnBljlTlT3//xAAfEAABAwQDAQAAAAAAAAAAAAABAAIxEBEhQRITgSD/2gAIAQEABj8CWJMIdkHdBRrrD1C+vhuLklcW+ri+avvrAq0mj8qVMJq//8QAIhAAAgIBBAEFAAAAAAAAAAAAAAERITFBUWFxkbHB0eHx/9oACAEBAAE/IYI5QxhRpOOFiQvmILCNOAmRSllbCQleyBSOkLwNsFFSdlOjS9xKdkD062BtQ2+BNCcmRf7Ox2uHjg/IJ29AqZw/c//aAAwDAQACAAMAAAAQEOE8lCmMc38Gf//EABsRAQEBAAIDAAAAAAAAAAAAAAERABAgITGx/9oACAEDAQE/ENdE99HAzAa5PnSA4GPBryMeTt//xAAcEQACAwEAAwAAAAAAAAAAAAAAARARMSEgQbH/2gAIAQIBAT8QKLTyNI7Lnr2+xpDVqhdjRo0irU7eCOk0f//EACMQAQACAQIGAwEAAAAAAAAAAAEAESExQRBRYXGRsYGh8OH/2gAIAQEAAT8QY1kLJt1lp1AlBtacDwD3w6OoWqqKZIsZhNz5cHxL3DohlQbSiDWOaXAsbyekoCxhs/3PFvcIXeoGOCjP2sHK5vNc+ZaAjvRMyjwvOqX9Q/BMZpfgOs06dPzWbBYd0W5aw07p/9k=\"\u003e\n```\n\n```html\n\u003cscript src=\"antimoderate.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    var img = document.getElementById('picture');\n\n    AntiModerate.process(img, img.getAttribute(\"data-antimoderate-idata\"));\n\u003c/script\u003e\n```\n\n\n##License\n\n###AntiModerate\n\n~~~\nCopyright (c) 2016 Jett LaRue\n\nDo whatever with it.\n\n~~~\n\n\n###StackBlur Algorithm\n\n\n~~~\nCopyright (c) 2010 Mario Klingemann\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n~~~\n","funding_links":[],"categories":["JavaScript","others","13. 页面交互","Frameworks/Libraries"],"sub_categories":["13.5 图片剪裁/图片处理 ###","13.5 图片剪裁/图片处理/图片转换","Image"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhackashoe%2Fantimoderate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhackashoe%2Fantimoderate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhackashoe%2Fantimoderate/lists"}