From cb7f03b0b5d4f894fa35b65c1ced247b57919eaf Mon Sep 17 00:00:00 2001 From: jomo Date: Fri, 13 Feb 2015 21:10:53 +0100 Subject: [PATCH] renders = '3D renders' --- README.md | 2 +- modules/config.example.js | 6 +++--- modules/helpers.js | 2 +- package.json | 2 +- views/layout.jade | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9015f67..b460f70 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ https://crafatar.com Crafatar serves Minecraft avatars based on the skin for use in external applications. Inspired by [Gravatar](https://gravatar.com) (hence the name) and [Minotar](https://minotar.net). -Image manipulation is done by [lwip](https://github.com/EyalAr/lwip). Renders are created with [node-canvas](https://github.com/Automattic/node-canvas), based on math by [confuser](https://github.com/confuser/serverless-mc-skin-viewer). +Image manipulation is done by [lwip](https://github.com/EyalAr/lwip). 3D renders are created with [node-canvas](https://github.com/Automattic/node-canvas), based on math by [confuser](https://github.com/confuser/serverless-mc-skin-viewer). ![jomo's avatar](https://crafatar.com/avatars/ae795aa86327408e92ab25c8a59f3ba1?size=128) ![Jake0oo0's avatar](https://crafatar.com/avatars/2d5aa9cdaeb049189930461fc9b91cc5?size=128) ![Notch's avatar](https://crafatar.com/avatars/069a79f444e94726a5befca90e38aaf5?size=128) ![sk89q's avatar](https://crafatar.com/avatars/0ea8eca3dbf647cc9d1ac64551ca975c?size=128) ![md_5's avatar](https://crafatar.com/avatars/af74a02d19cb445bb07f6866a861f783?size=128) ## Usage / Documentation diff --git a/modules/config.example.js b/modules/config.example.js index 1f79382..4619eac 100644 --- a/modules/config.example.js +++ b/modules/config.example.js @@ -2,9 +2,9 @@ var config = { min_size: 1, // for avatars max_size: 512, // for avatars; too big values might lead to slow response time or DoS default_size: 160, // for avatars; size to be used when no size given - min_scale: 1, // for renders - max_scale: 10, // for renders; too big values might lead to slow response time or DoS - default_scale: 6, // for renders; scale to be used when no scale given + min_scale: 1, // for 3D renders + max_scale: 10, // for 3D renders; too big values might lead to slow response time or DoS + default_scale: 6, // for 3D renders; scale to be used when no scale given local_cache_time: 1200, // seconds until we will check if the image changed. should be > 60 to prevent mojang 429 response browser_cache_time: 3600, // seconds until browser will request image again cleaning_interval: 1800, // seconds interval: deleting images if disk size at limit diff --git a/modules/helpers.js b/modules/helpers.js index 9f85edf..0624d46 100644 --- a/modules/helpers.js +++ b/modules/helpers.js @@ -272,7 +272,7 @@ function get_type(helm, body) { return helm ? text + "helm" : text; } -// handles creations of skin renders +// handles creations of 3D renders // callback contains error, skin hash, image buffer exp.get_render = function(rid, userId, scale, helm, body, callback) { exp.get_skin(rid, userId, function(err, skin_hash, img) { diff --git a/package.json b/package.json index 706e989..23a5eed 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.1", "private": true, "author": "Jake0oo0", - "description": "A Minecraft avatar service with support for avatars, 1.8 skins, and even renders!", + "description": "A Minecraft avatar service with support for avatars, 1.8 skins, and even 3D renders!", "contributors": [ { "name": "jomo" diff --git a/views/layout.jade b/views/layout.jade index 62ef797..5f63db9 100644 --- a/views/layout.jade +++ b/views/layout.jade @@ -5,7 +5,7 @@ html link(rel="icon", sizes="16x16", type="image/png", href="/favicon.png") link(href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.min.css", rel="stylesheet") link(rel="stylesheet", href="/stylesheets/style.css") - meta(name="description", content="Crafatar is a blazing fast Minecraft avatar API with support for avatars, 1.8 skins, and even renders!") + meta(name="description", content="Crafatar is a blazing fast Minecraft avatar API with support for avatars, 1.8 skins, and even 3D renders!") meta(name="keywords", content="minecraft, avatar, renders, skins, uuid, username") meta(name="viewport", content="initial-scale=1,maximum-scale=1") body