annotate gpp/smiley/fixtures/smilies.json @ 265:1ba2c6bf6eb7

Closing #98. Animated GIFs were losing their transparency and animated properties when saved as avatars. Reworked the avatar save process to only run the avatar through PIL if it is too big. This preserves the original uploaded file if it is within the desired size settings. This may still mangle big animated gifs. If this becomes a problem, then maybe look into calling the PIL Image.resize() method directly. Moved the PIL image specific functions from bio.forms to a new module: core.image for better reusability in the future.
author Brian Neal <bgneal@gmail.com>
date Fri, 24 Sep 2010 02:12:09 +0000
parents 953c71f382df
children 4ba879ccdc62
rev   line source
bgneal@236 1 [
bgneal@236 2 {
bgneal@236 3 "pk": 22,
bgneal@236 4 "model": "smiley.smiley",
bgneal@236 5 "fields": {
bgneal@236 6 "is_extra": false,
bgneal@236 7 "image": "smiley/images/upset.gif",
bgneal@236 8 "code": ":argh:",
bgneal@236 9 "title": "Argh"
bgneal@236 10 }
bgneal@236 11 },
bgneal@236 12 {
bgneal@236 13 "pk": 5,
bgneal@236 14 "model": "smiley.smiley",
bgneal@236 15 "fields": {
bgneal@236 16 "is_extra": false,
bgneal@236 17 "image": "smiley/images/biggrin.gif",
bgneal@236 18 "code": ":-D",
bgneal@236 19 "title": "Big Grin"
bgneal@236 20 }
bgneal@236 21 },
bgneal@236 22 {
bgneal@236 23 "pk": 7,
bgneal@236 24 "model": "smiley.smiley",
bgneal@236 25 "fields": {
bgneal@236 26 "is_extra": false,
bgneal@236 27 "image": "smiley/images/bigrazz.gif",
bgneal@236 28 "code": ":-P",
bgneal@236 29 "title": "Big Razz"
bgneal@236 30 }
bgneal@236 31 },
bgneal@236 32 {
bgneal@236 33 "pk": 8,
bgneal@236 34 "model": "smiley.smiley",
bgneal@236 35 "fields": {
bgneal@236 36 "is_extra": false,
bgneal@236 37 "image": "smiley/images/confused.gif",
bgneal@236 38 "code": "o_O",
bgneal@236 39 "title": "Confused"
bgneal@236 40 }
bgneal@236 41 },
bgneal@236 42 {
bgneal@236 43 "pk": 4,
bgneal@236 44 "model": "smiley.smiley",
bgneal@236 45 "fields": {
bgneal@236 46 "is_extra": false,
bgneal@236 47 "image": "smiley/images/cool.gif",
bgneal@236 48 "code": "8^)",
bgneal@236 49 "title": "Cool"
bgneal@236 50 }
bgneal@236 51 },
bgneal@236 52 {
bgneal@236 53 "pk": 9,
bgneal@236 54 "model": "smiley.smiley",
bgneal@236 55 "fields": {
bgneal@236 56 "is_extra": false,
bgneal@236 57 "image": "smiley/images/cry.gif",
bgneal@236 58 "code": ":-(",
bgneal@236 59 "title": "Cry"
bgneal@236 60 }
bgneal@236 61 },
bgneal@236 62 {
bgneal@236 63 "pk": 10,
bgneal@236 64 "model": "smiley.smiley",
bgneal@236 65 "fields": {
bgneal@236 66 "is_extra": false,
bgneal@236 67 "image": "smiley/images/dead.gif",
bgneal@236 68 "code": "x_x",
bgneal@236 69 "title": "Dead"
bgneal@236 70 }
bgneal@236 71 },
bgneal@236 72 {
bgneal@236 73 "pk": 11,
bgneal@236 74 "model": "smiley.smiley",
bgneal@236 75 "fields": {
bgneal@236 76 "is_extra": false,
bgneal@236 77 "image": "smiley/images/embarrassed.gif",
bgneal@236 78 "code": ":-#",
bgneal@236 79 "title": "Embarrassed"
bgneal@236 80 }
bgneal@236 81 },
bgneal@236 82 {
bgneal@236 83 "pk": 13,
bgneal@236 84 "model": "smiley.smiley",
bgneal@236 85 "fields": {
bgneal@236 86 "is_extra": false,
bgneal@236 87 "image": "smiley/images/laugh.gif",
bgneal@236 88 "code": ":lol:",
bgneal@236 89 "title": "LOL"
bgneal@236 90 }
bgneal@236 91 },
bgneal@236 92 {
bgneal@236 93 "pk": 14,
bgneal@236 94 "model": "smiley.smiley",
bgneal@236 95 "fields": {
bgneal@236 96 "is_extra": false,
bgneal@236 97 "image": "smiley/images/mad.gif",
bgneal@236 98 "code": "X-(",
bgneal@236 99 "title": "Mad"
bgneal@236 100 }
bgneal@236 101 },
bgneal@236 102 {
bgneal@236 103 "pk": 3,
bgneal@236 104 "model": "smiley.smiley",
bgneal@236 105 "fields": {
bgneal@236 106 "is_extra": false,
bgneal@236 107 "image": "smiley/images/no.gif",
bgneal@236 108 "code": ":no:",
bgneal@236 109 "title": "No"
bgneal@236 110 }
bgneal@236 111 },
bgneal@236 112 {
bgneal@236 113 "pk": 15,
bgneal@236 114 "model": "smiley.smiley",
bgneal@236 115 "fields": {
bgneal@236 116 "is_extra": false,
bgneal@236 117 "image": "smiley/images/none.gif",
bgneal@236 118 "code": ":-|",
bgneal@236 119 "title": "None"
bgneal@236 120 }
bgneal@236 121 },
bgneal@236 122 {
bgneal@236 123 "pk": 1,
bgneal@236 124 "model": "smiley.smiley",
bgneal@236 125 "fields": {
bgneal@236 126 "is_extra": false,
bgneal@236 127 "image": "smiley/images/bigeek.gif",
bgneal@236 128 "code": ":shock:",
bgneal@236 129 "title": "Shock"
bgneal@236 130 }
bgneal@236 131 },
bgneal@236 132 {
bgneal@236 133 "pk": 19,
bgneal@236 134 "model": "smiley.smiley",
bgneal@236 135 "fields": {
bgneal@236 136 "is_extra": false,
bgneal@236 137 "image": "smiley/images/sigh.gif",
bgneal@236 138 "code": ":sigh:",
bgneal@236 139 "title": "Sigh"
bgneal@236 140 }
bgneal@236 141 },
bgneal@236 142 {
bgneal@236 143 "pk": 20,
bgneal@236 144 "model": "smiley.smiley",
bgneal@236 145 "fields": {
bgneal@236 146 "is_extra": false,
bgneal@236 147 "image": "smiley/images/smile.gif",
bgneal@236 148 "code": ":-)",
bgneal@236 149 "title": "Smile"
bgneal@236 150 }
bgneal@236 151 },
bgneal@236 152 {
bgneal@236 153 "pk": 21,
bgneal@236 154 "model": "smiley.smiley",
bgneal@236 155 "fields": {
bgneal@236 156 "is_extra": false,
bgneal@236 157 "image": "smiley/images/uhoh.gif",
bgneal@236 158 "code": ":uh-oh:",
bgneal@236 159 "title": "Uh-Oh"
bgneal@236 160 }
bgneal@236 161 },
bgneal@236 162 {
bgneal@236 163 "pk": 17,
bgneal@236 164 "model": "smiley.smiley",
bgneal@236 165 "fields": {
bgneal@236 166 "is_extra": false,
bgneal@236 167 "image": "smiley/images/rolleyes.gif",
bgneal@236 168 "code": ":whatever:",
bgneal@236 169 "title": "Whatever"
bgneal@236 170 }
bgneal@236 171 },
bgneal@236 172 {
bgneal@236 173 "pk": 6,
bgneal@236 174 "model": "smiley.smiley",
bgneal@236 175 "fields": {
bgneal@236 176 "is_extra": false,
bgneal@236 177 "image": "smiley/images/smilewinkgrin.gif",
bgneal@236 178 "code": ";-)",
bgneal@236 179 "title": "Wink"
bgneal@236 180 }
bgneal@236 181 },
bgneal@236 182 {
bgneal@236 183 "pk": 2,
bgneal@236 184 "model": "smiley.smiley",
bgneal@236 185 "fields": {
bgneal@236 186 "is_extra": false,
bgneal@236 187 "image": "smiley/images/yes.gif",
bgneal@236 188 "code": ":yes:",
bgneal@236 189 "title": "Yes"
bgneal@236 190 }
bgneal@236 191 },
bgneal@236 192 {
bgneal@236 193 "pk": 18,
bgneal@236 194 "model": "smiley.smiley",
bgneal@236 195 "fields": {
bgneal@236 196 "is_extra": false,
bgneal@236 197 "image": "smiley/images/sleep.gif",
bgneal@236 198 "code": ":sleep:",
bgneal@236 199 "title": "Zzzzz"
bgneal@236 200 }
bgneal@236 201 }
bgneal@236 202 ]