/[opencvs]/eyes/enlightenment2.txt
ViewVC logotype

Contents of /eyes/enlightenment2.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations)
Wed Apr 9 03:45:44 2014 UTC (4 years ago) by hib
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +22 -15 lines
File MIME type: text/plain
als is complete
1
2 2048
3
4 # This is better than enlightenmnet.txt because
5 # 1. we always do the hologram now.
6 # 2. A border 1 square wide offsets the bigger squares so the eyes and tounge have only one image under them.
7 # 3. the tounge color can also be decided
8 #
9 # This evolutionary version was created for image number 17 of the set.
10
11 # build_final.sh was the old code for this
12 #
13
14
15 export PATH=$PATH:~/cvs/player/bin
16
17 #Size:
18 # 4800 - old school demos
19 # 2048 - new school demos
20 # 31200 - 43.3333333 inches at 720 dpi
21 # 31680 - 44 inches at 720 dpi/22 inches at 1440 dpi
22 # 63360 - 44 inches at 1440 dpi
23 # 28000 - 23.33333 inches at 1200 dpi
24 # 28800 - 24 inches at 1200 dpi
25 # 33600 - 23.333333 inches at 1440 dpi
26 # 16800 - 23.333333 inches at 720 dpi
27 # 131072 - 8192x8192 - this is for handling the fact that the lines are somewhat off kilter.
28 # 11200 - new size 23.33333 inches at 480 dpi
29
30 export ENLIGHTENMENT_SIZE=31200
31 export ENLIGHTENMENT_SIZE=4800
32 export ENLIGHTENMENT_SIZE=11200
33
34 # setup for source and size
35 #export ENLIGHTENMENT_HOME=/t/enlightenment/source
36 export ENLIGHTENMENT_HOME=/t/enlightenment/source_no_acid
37 export ENLIGHTENMENT_HOMEB=/t/enlightenment/source
38 export MAGICK_TMPDIR=/t/tmp
39 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
40 export ENLIGHTENMENT_ROWS=16
41 export ENLIGHTENMENT_COLUMNS=16
42 export ENLIGHTENMENT_SQUARES=`expr $ENLIGHTENMENT_ROWS \* $ENLIGHTENMENT_COLUMNS`
43 export ENLIGHTENMENT_COLMM=`expr $ENLIGHTENMENT_COLUMNS - 1`
44 export ENLIGHTENMENT_ROWMM=`expr $ENLIGHTENMENT_ROWS - 1`
45 export ENLIGHTENMENT_SQUARESMM=`expr $ENLIGHTENMENT_ROWMM \* $ENLIGHTENMENT_COLMM`
46 export ENLIGHTENMENT_CBRDR=`expr $ENLIGHTENMENT_COLUMNS \* 2`
47 export ENLIGHTENMENT_RBRDR=`expr $ENLIGHTENMENT_ROWS \* 2 - 2`
48 export ENLIGHTENMENT_SQUARES_TOTAL=`echo $ENLIGHTENMENT_SQUARESMM + $ENLIGHTENMENT_CBRDR + $ENLIGHTENMENT_RBRDR + $ENLIGHTENMENT_CBRDR + $ENLIGHTENMENT_RBRDR`
49 export ENLIGHTENMENT_SAMPLE_SIZE=$ENLIGHTENMENT_SIZE
50 export ENLIGHTENMENT_SQUARES_MINUS_3=`expr $ENLIGHTENMENT_SQUARES_TOTAL - 3`
51 # this part works for 4800 and/or tounge showing lsd.
52 export ENLIGHTEMNENT_LEFT_S=`expr $ENLIGHTENMENT_DOT \* 160 / 300`
53 export ENLIGHTEMNENT_LEFT_X=`expr $ENLIGHTENMENT_DOT \* 81 / 300`
54 export ENLIGHTEMNENT_LEFT_Y=`expr $ENLIGHTENMENT_DOT \* 20 / 300`
55 export ENLIGHTEMNENT_RIGHT_S=`expr $ENLIGHTENMENT_DOT \* 160 / 300`
56 export ENLIGHTEMNENT_RIGHT_X=`expr $ENLIGHTENMENT_DOT \* 48 / 300`
57 export ENLIGHTEMNENT_RIGHT_Y=`expr $ENLIGHTENMENT_DOT \* 10 / 300`
58 export ENLIGHTEMNENT_LSD_S=`expr $ENLIGHTENMENT_DOT \* 133 / 300`
59 export ENLIGHTEMNENT_LSD_X=`expr $ENLIGHTENMENT_DOT \* 80 / 300`
60 export ENLIGHTEMNENT_LSD_Y=`expr $ENLIGHTENMENT_DOT \* 150 / 300`
61 # ^^^ above did not work so I redid it for the source_no_acid below
62 # left 16 left and down right 16 left and down
63 export ENLIGHTEMNENT_LEFT_S=`expr $ENLIGHTENMENT_DOT \* 160 / 300`
64 export ENLIGHTEMNENT_LEFT_X=`expr $ENLIGHTENMENT_DOT \* 65 / 300`
65 export ENLIGHTEMNENT_LEFT_Y=`expr $ENLIGHTENMENT_DOT \* 36 / 300`
66 export ENLIGHTEMNENT_RIGHT_S=`expr $ENLIGHTENMENT_DOT \* 160 / 300`
67 export ENLIGHTEMNENT_RIGHT_X=`expr $ENLIGHTENMENT_DOT \* 32 / 300`
68 export ENLIGHTEMNENT_RIGHT_Y=`expr $ENLIGHTENMENT_DOT \* 26 / 300`
69 export ENLIGHTEMNENT_LSD_S=`expr $ENLIGHTENMENT_DOT \* 133 / 300`
70 export ENLIGHTEMNENT_LSD_X=`expr $ENLIGHTENMENT_DOT \* 80 / 300`
71 export ENLIGHTEMNENT_LSD_Y=`expr $ENLIGHTENMENT_DOT \* 150 / 300`
72
73 # ^^^ set to 131072 to have the squares skewed to the picture
74
75
76
77
78
79 # make a new size:
80 mkdir $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE
81 mkdir $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m
82 mkdir $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE
83 mkdir $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/m
84
85
86 # can multiply by 6 if want to, but there are multiple lines
87 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis.txt $ENLIGHTENMENT_DOT | multiproc.sh bash
88
89 # old way:
90 convert $ENLIGHTENMENT_HOMEB/common/base18k.bmp -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.bmp
91 convert $ENLIGHTENMENT_HOMEB/common/alpha18k.bmp -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha.bmp
92 convert $ENLIGHTENMENT_HOMEB/common/alpha_hologram.png -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.bmp
93 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.bmp >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt &
94 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha.bmp >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha.txt &
95 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.bmp >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt &
96 wait
97
98
99
100
101
102
103 # new code: to make the squares accurate witht eh performations.
104 perl $e/enl_box_range.pl > $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/box_range.txt
105 #cat settop0.txt setbottom0.txt setleft0.txt setright0.txt set0.txt | enlightenment_pattern box_range.txt $ENLIGHTENMENT_SIZE 0 0 $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE
106 # and the pattern looked crappy. The psychadelics need to be exact to look good.
107 #So I reverse map the girl and vollia- the girl looks slightly more alive, and the old style mapping can continue
108
109 #new way:
110 echo $ENLIGHTENMENT_HOMEB/common/base18k.bmp | \
111 enlightenment_straighten /t/enlightenment/source/18000/box_range.txt $ENLIGHTENMENT_SIZE 0 0 $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE \
112 >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt
113 echo $ENLIGHTENMENT_HOMEB/common/alpha_hologram.png | \
114 enlightenment_straighten /t/enlightenment/source/common/box_range4800.txt $ENLIGHTENMENT_SIZE 0 0 $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE \
115 >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt
116
117 # to build the hologram is unique because the numbers change based onthe resolution. But here is the 4800 deal
118 # build_greya enl_source.txt 4 4800 4800 600 600 0 4800 0 4800 | convert txt: hologram.png
119
120 # and here
121 # build_greya enl_source.txt 4 31680 31680 720 720 0 31680 0 31680 | convert txt: $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.png
122 #
123 # build_greya enl_source.txt 4 28800 28800 1200 1200 0 28800 0 4800 | convert txt: h0.png &
124 # build_greya enl_source.txt 4 28800 28800 1200 1200 0 28800 4800 9600 | convert txt: h1.png &
125 # build_greya enl_source.txt 4 28800 28800 1200 1200 0 28800 9600 14400 | convert txt: h2.png &
126 # build_greya enl_source.txt 4 28800 28800 1200 1200 0 28800 14400 19200 | convert txt: h3.png &
127 # build_greya enl_source.txt 4 28800 28800 1200 1200 0 28800 19200 24000 | convert txt: h4.png &
128 # build_greya enl_source.txt 4 28800 28800 1200 1200 0 28800 24000 28800 | convert txt: h5.png &
129 # convert -limit memory 6000000000 -limit map 6000000000 h0.png h1.png h2.png h3.png h4.png h5.png -append $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp
130
131
132 build_greya enl_source.txt 4 11200 11200 1200 1200 0 11200 0 4800 | convert txt: h0.png &
133 build_greya enl_source.txt 4 11200 11200 1200 1200 0 11200 4800 9600 | convert txt: h1.png &
134 build_greya enl_source.txt 4 11200 11200 1200 1200 0 11200 9600 11200 | convert txt: h2.png &
135 wait
136 convert -limit memory 6000000000 -limit map 6000000000 h0.png h1.png h2.png -append $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp
137
138 perl $e/enl_4800_to_x.pl </b/art/2011/enlightenment/source/4800/enl_source.txt $ENLIGHTENMENT_SIZE >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/enl_source.txt
139
140
141
142 build_greya enl_source.txt 4 33600 33600 1200 1200 0 33600 0 4800 | convert txt: h0.png &
143 build_greya enl_source.txt 4 33600 33600 1200 1200 0 33600 4800 9600 | convert txt: h1.png &
144 build_greya enl_source.txt 4 33600 33600 1200 1200 0 33600 9600 14400 | convert txt: h2.png &
145 build_greya enl_source.txt 4 33600 33600 1200 1200 0 33600 14400 19200 | convert txt: h3.png &
146 build_greya enl_source.txt 4 33600 33600 1200 1200 0 33600 19200 24000 | convert txt: h4.png &
147 build_greya enl_source.txt 4 33600 33600 1200 1200 0 33600 24000 33600 | convert txt: h5.png &
148 wait
149 convert -limit memory 6000000000 -limit map 6000000000 h0.png h1.png h2.png h3.png h4.png h5.png -append $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp
150
151 build_greya enl_source.txt 4 31200 31200 1200 1200 0 31200 0 5280 | convert txt: h0.png &
152 build_greya enl_source.txt 4 31200 31200 1200 1200 0 31200 5280 10560 | convert txt: h1.png &
153 build_greya enl_source.txt 4 31200 31200 1200 1200 0 31200 10560 15840 | convert txt: h2.png &
154 build_greya enl_source.txt 4 31200 31200 1200 1200 0 31200 15840 21120 | convert txt: h3.png &
155 build_greya enl_source.txt 4 31200 31200 1200 1200 0 31200 21120 26400 | convert txt: h4.png &
156 build_greya enl_source.txt 4 31200 31200 1200 1200 0 31200 26400 31200 | convert txt: h5.png &
157
158 convert -limit memory 6000000000 -limit map 6000000000 h0.png h1.png h2.png h3.png h4.png h5.png -append $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp
159 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt
160
161
162
163
164
165 build_greya enl_source.txt 4 16800 16800 1200 1200 0 16800 0 5280 | convert txt: h0.png &
166 build_greya enl_source.txt 4 16800 16800 1200 1200 0 16800 5280 10560 | convert txt: h1.png &
167 build_greya enl_source.txt 4 16800 16800 1200 1200 0 16800 10560 15840 | convert txt: h2.png &
168 build_greya enl_source.txt 4 16800 16800 1200 1200 0 16800 15840 16800 | convert txt: h3.png &
169
170 convert -limit memory 6000000000 -limit map 6000000000 h0.png h1.png h2.png h3.png -append $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp
171 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt
172
173
174 # need hologram in both places
175 ln $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/hologram.txt
176
177
178
179
180 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt
181 # note - alpha_hologram is adjusted as the extreme values of alpha make it more likely to see dots than randomness - this is weird because we do
182 # have uniform distribution - might be because I am using distance as a calculation. Anyways.
183
184
185
186
187
188 # eye color specific
189 # make templates
190 cd /t/enlightenment/.../build
191 export MAGICK_TMPDIR=/t/tmp
192
193 #Karl
194 export EYE_COLOR=green
195 export TOUNGE_COLOR=multi
196 export SEED=1618033
197 export POS=0
198 echo $SEED >seed.txt
199 # note - karl did not have the sort
200
201 #
202 export EYE_COLOR=pink
203 export EYE_COLOR2=$EYE_COLOR
204 export EYE_COLOR3=$EYE_COLOR
205 export TOUNGE_COLOR=multi
206 export SEED=1432
207 export POS=0
208 echo $SEED >seed.txt
209
210 cat $ENLIGHTENMENT_HOME/common/$EYE_COLOR.txt $ENLIGHTENMENT_HOME/common/$EYE_COLOR2.txt $ENLIGHTENMENT_HOME/common/$EYE_COLOR3.txt | sort -u >eyecolor$POS.txt
211 # pick the 1 tounge pixel colors
212 awk <$ENLIGHTENMENT_HOME/common/$TOUNGE_COLOR.txt '{print "'$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SAMPLE_SIZE/m/'" $1 }' | randomize $SEED | head -1 > tounge_choice$POS.txt
213 cat $ENLIGHTENMENT_HOME/common/$TOUNGE_COLOR.txt | randomize $SEED | head -1 > tounge_choicep$POS.txt
214
215 # in case the eye color is the same as the tounge colog - eliminate the choice from the eye choice
216 cat tounge_choicep$POS.txt | awk '{print "grep -v " $1 " <eyecolor$POS.txt >setez$POS.txt"}' | bash
217
218 # pick the 2 eye pixel colors
219 awk <setez$POS.txt '{print "'$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SAMPLE_SIZE/m/'" $1 }' |
220 randomize $SEED | head -2 > eye_choice$POS.txt
221
222 convert `head -1 eye_choice$POS.txt` -resize $ENLIGHTEMNENT_LEFT_S"x"$ENLIGHTEMNENT_LEFT_S lea$POS.png
223 composite -geometry +$ENLIGHTEMNENT_LEFT_X"+"$ENLIGHTEMNENT_LEFT_Y lea$POS.png `head -1 eye_choice$POS.txt` lefteye$POS.png
224 convert `tail -1 eye_choice$POS.txt` -resize $ENLIGHTEMNENT_LEFT_S"x"$ENLIGHTEMNENT_LEFT_S rta$POS.png
225 composite -geometry +$ENLIGHTEMNENT_RIGHT_X"+"$ENLIGHTEMNENT_RIGHT_Y rta$POS.png `tail -1 eye_choice$POS.txt` righteye$POS.png
226 convert `cat tounge_choice$POS.txt` -background none -virtual-pixel background +distort ScaleRotateTranslate -25 \
227 -resize $ENLIGHTEMNENT_LSD_S"x"$ENLIGHTEMNENT_LSD_S lsd$POS.png
228 composite -geometry +$ENLIGHTEMNENT_LSD_X"+"$ENLIGHTEMNENT_LSD_Y lsd$POS.png `cat tounge_choice$POS.txt` tongue$POS.png
229
230
231 # build the position by taking out the chosen eye colors, then randomizing the rest
232 ls $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SAMPLE_SIZE/m/*.bmp >set$POS.txt
233 cat eye_choice$POS.txt tounge_choice$POS.txt | awk '{print "grep -v " $1 " <set$POS.txt >sett$POS.txt;mv sett$POS.txt set$POS.txt"}' | bash
234 randomize $SEED <set$POS.txt | head -$ENLIGHTENMENT_SQUARES_MINUS_3 >sett$POS.txt
235 head -126 sett$POS.txt >set$POS.txt
236 #head -1 eye_choice$POS.txt >>set$POS.txt
237 echo lefteye$POS.png >>set$POS.txt
238 head -127 sett$POS.txt | tail -1 >>set$POS.txt
239 #tail -1 eye_choice$POS.txt >>set$POS.txt
240 echo righteye$POS.png >>set$POS.txt
241 tail -n+128 sett$POS.txt | head -28 >>set$POS.txt
242 #cat tounge_choice$POS.txt >>set$POS.txt
243 echo tongue$POS.png >>set$POS.txt
244 tail -n+156 sett$POS.txt | head -67 >>set$POS.txt
245 tail -n+223 sett$POS.txt | head -$ENLIGHTENMENT_CBRDR >settop$POS.txt
246 tail -n+255 sett$POS.txt | head -$ENLIGHTENMENT_CBRDR >setbottom$POS.txt
247 tail -n+287 sett$POS.txt | head -$ENLIGHTENMENT_RBRDR >setleft$POS.txt
248 tail -$ENLIGHTENMENT_RBRDR sett$POS.txt >setright$POS.txt
249
250 rm sett$POS.txt
251
252 {
253 rm 2>/dev/null >/dev/null p$POS.txt lsd$POS.png rta$POS.png lea$POS.png
254 mknod p$POS.txt p
255 cat settop$POS.txt setbottom$POS.txt setleft$POS.txt setright$POS.txt set$POS.txt | \
256 enlightenment_montage $ENLIGHTENMENT_SIZE 0 0 $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE >p$POS".txt" &
257
258 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt \
259 p$POS.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/hologram.txt \
260 | convert txt: holo_pixeled$POS"".png &
261
262 } &
263
264
265 export SEED=`expr $SEED + 1000000`
266 export POS=`expr $POS + 1`
267
268
269
270
271
272 # Qi she variant - to put image on left shoulder
273 # convert source/qi2.png -resize 1980x1980 source/qi_bigger.png
274 # me +170 set9.txt
275 # Change to
276 # /t/enlightenment/038_qi_she/source/qi_bigger.png
277
278
279
280 convert holo_pixeled0.png -resize '50%x50%' h0.png
281 convert holo_pixeled1.png -resize '50%x50%' h1.png
282 convert holo_pixeled2.png -resize '50%x50%' h2.png
283 convert holo_pixeled3.png -resize '50%x50%' h3.png
284 convert holo_pixeled4.png -resize '50%x50%' h4.png
285 convert holo_pixeled5.png -resize '50%x50%' h5.png
286 convert holo_pixeled6.png -resize '50%x50%' h6.png
287 convert holo_pixeled7.png -resize '50%x50%' h7.png
288 convert holo_pixeled8.png -resize '50%x50%' h8.png
289 convert holo_pixeled9.png -resize '50%x50%' h9.png
290
291 convert holo_pixeled10.png -resize '50%x50%' h10.png
292 convert holo_pixeled11.png -resize '50%x50%' h11.png
293 convert holo_pixeled12.png -resize '50%x50%' h12.png
294 convert holo_pixeled13.png -resize '50%x50%' h13.png
295 convert holo_pixeled14.png -resize '50%x50%' h14.png
296 convert holo_pixeled15.png -resize '50%x50%' h15.png
297 convert holo_pixeled16.png -resize '50%x50%' h16.png
298 convert holo_pixeled17.png -resize '50%x50%' h17.png
299 convert holo_pixeled18.png -resize '50%x50%' h18.png
300 convert holo_pixeled19.png -resize '50%x50%' h19.png
301 convert holo_pixeled20.png -resize '50%x50%' h20.png
302
303
304
305
306
307 convert holo_pixeled0.png -resize '25%x25%' h0.png
308 convert holo_pixeled1.png -resize '25%x25%' h1.png
309 convert holo_pixeled2.png -resize '25%x25%' h2.png
310 convert holo_pixeled3.png -resize '25%x25%' h3.png
311 convert holo_pixeled4.png -resize '25%x25%' h4.png
312 convert holo_pixeled5.png -resize '25%x25%' h5.png
313 convert holo_pixeled6.png -resize '25%x25%' h6.png
314 convert holo_pixeled7.png -resize '25%x25%' h7.png
315 convert holo_pixeled8.png -resize '25%x25%' h8.png
316 convert holo_pixeled9.png -resize '25%x25%' h9.png
317
318 convert holo_pixeled10.png -resize '25%x25%' h10.png
319 convert holo_pixeled11.png -resize '25%x25%' h11.png
320 convert holo_pixeled12.png -resize '25%x25%' h12.png
321 convert holo_pixeled13.png -resize '25%x25%' h13.png
322 convert holo_pixeled14.png -resize '25%x25%' h14.png
323 convert holo_pixeled15.png -resize '25%x25%' h15.png
324 convert holo_pixeled16.png -resize '25%x25%' h16.png
325 convert holo_pixeled17.png -resize '25%x25%' h17.png
326 convert holo_pixeled18.png -resize '25%x25%' h18.png
327 convert holo_pixeled19.png -resize '25%x25%' h19.png
328 convert holo_pixeled20.png -resize '25%x25%' h20.png
329
330 scp -P 26 h[0-9].png h1[0-9].png hib@kcd.com:
331
332 # FINAL
333 # then the final - set the size to be the big final size and
334 #export SEED=`expr $SEED + ?000000`
335 #export POS=?
336
337
338
339
340
341
342
343 #Then edit font_bottom.sh to add the bottom text
344
345
346
347
348
349
350 # signing it
351 {
352 echo >title.txt '
353 Document of title.
354
355 This document certifies that the digital piece "Enlightenment First Edition 42/69 created as of 1/3/2014
356 is authentic.
357
358 Here is the documentation that describes this digital artwork:
359
360
361
362 '
363
364
365 echo "identity" `/usr/local/bin/identity_of_file *.png` >>title.txt
366
367 gpg --print-md '*' *.png >>title.txt
368 }
369 unix2dos <title.txt >t2.txt
370 mv t2.txt title.txt
371
372 #As user chamelion:
373 gpg --export -a chamelion >chamelion.key
374 gpg --detach-sign title.txt
375 gpg --detach-sign *.png
376
377
378
379
380
381
382
383
384
385
386
387 Mini:
388
389
390
391
392 # signing it
393 {
394 echo >title.txt '
395 Document of title.
396
397 This document certifies that the digital piece "Enlightenment Mini Edition Prototype 1/4 created as of 3/21/2012
398 is authentic.
399
400 This is a miniature edition of Enlightenment, an embellishment of Trevor Brown'\''s "Little Strange Dots"
401 This is one of the 4 prototypes for this edition run. 22x22 inches @ 1440 dpi.
402
403 Here is the documentation that describes this digital artwork:
404
405
406
407 '
408
409
410 echo "identity" `/usr/local/bin/identity_of_file *.png` >>title.txt
411
412 gpg --print-md '*' *.png >>title.txt
413 }
414 unix2dos <title.txt >t2.txt
415 mv t2.txt title.txt
416
417 #As user chamelion:
418 gpg --export -a chamelion >chamelion.key
419 gpg --detach-sign title.txt
420 gpg --detach-sign *.png
421
422
423
424
425
426
427
428
429
430
431
432 # Old school building of pix image and randomify:
433
434 montage -limit memory 6000000000 -limit map 6000000000 `cat set$POS.txt`\
435 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_COLMM"x"$ENLIGHTENMENT_ROWMM d$POS".png"
436 montage -limit memory 6000000000 -limit map 6000000000 `cat setleft$POS.txt`\
437 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile 1"x"$ENLIGHTENMENT_RBRDR e$POS".png"
438 convert -limit memory 6000000000 -limit map 6000000000 "e$POS".png -resize 50%x50% f$POS.png
439 montage -limit memory 6000000000 -limit map 6000000000 `cat setright$POS.txt`\
440 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile 1"x"$ENLIGHTENMENT_RBRDR g$POS".png"
441 convert -limit memory 6000000000 -limit map 6000000000 "g$POS".png -resize 50%x50% h$POS.png
442 convert -limit memory 6000000000 -limit map 6000000000 f$POS.png d$POS.png h$POS.png +append i$POS.png
443 rm d$POS.png e$POS.png f$POS.png g$POS.png h$POS.png
444 montage -limit memory 6000000000 -limit map 6000000000 `cat settop$POS.txt`\
445 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_CBRDR"x"1 j$POS".png"
446 convert -limit memory 6000000000 -limit map 6000000000 "j$POS".png -resize 50%x50% k$POS.png
447 montage -limit memory 6000000000 -limit map 6000000000 `cat setbottom$POS.txt`\
448 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_CBRDR"x"1 l$POS".png"
449 convert -limit memory 6000000000 -limit map 6000000000 "l$POS".png -resize 50%x50% m$POS.png
450 convert -limit memory 6000000000 -limit map 6000000000 k$POS.png i$POS.png m$POS.png -append p$POS.bmp
451 rm i$POS.png j$POS.png k$POS.png l$POS.png m$POS.png
452
453 bash analyze_fast_image.sh p$POS".bmp" >p$POS".txt"
454 #randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
455 # p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.txt | convert txt: pixeled.$POS.png
456 # or for hologram
457 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt \
458 p$POS.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/hologram.txt \
459 | convert txt: holo_pixeled$POS.png
460
461
462
463
464 # special - adding new images to the fray.
465 cd /b/art/2011/enlightenment/source_no_acid/common/newerpics/outbox/batch1
466 # make everything a png
467 mkdir png
468 mkdir other
469 mv *.png png
470
471 # make sure no spaces if filenames
472 ls | grep ' '
473 # should be no - rename if not
474 ls *.*.*
475 # should be no - rename if not
476
477 for i in $(ls *.jpg | awk -F "." '{print $1}'); do convert $i.jpg png/$i.png;mv $i.jpg other ; done
478 for i in $(ls *.JPG | awk -F "." '{print $1}'); do convert $i.JPG png/$i.png;mv $i.JPG other ; done
479 for i in $(ls *.jpeg | awk -F "." '{print $1}'); do convert $i.jpeg png/$i.png;mv $i.jpeg other ; done
480 for i in $(ls *.gif | awk -F "." '{print $1}'); do convert $i.gif png/$i.png;mv $i.gif other ; done
481 cd png
482 bash compute_all_averages.sh >../analysis_batch2.txt
483 for i in $(ls *.png); do ln $i ../../../../pics ; done
484
485 # neet to cpy analysis.txt so we know what to use it for and such
486
487 cp ../analysis_batch2.txt ../../../..
488 cd /b/art/2011/enlightenment/source_no_acid/common
489 cat >>analysis.txt analysis_batch2.txt
490
491 #??? compute the images for analysis
492 # assume other env vars are set
493 export MAGICK_TMPDIR=/t/tmp
494 export ENLIGHTENMENT_HOME=/t/enlightenment/source_no_acid
495
496 export ENLIGHTENMENT_SIZE=11200
497 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
498 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
499
500 export ENLIGHTENMENT_SIZE=16800
501 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
502 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
503
504 export ENLIGHTENMENT_SIZE=17280
505 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
506 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
507
508
509 export ENLIGHTENMENT_SIZE=2048
510 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
511 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
512
513 export ENLIGHTENMENT_SIZE=28000
514 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
515 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
516
517 export ENLIGHTENMENT_SIZE=31200
518 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
519 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
520
521 export ENLIGHTENMENT_SIZE=33600
522 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
523 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
524
525 export ENLIGHTENMENT_SIZE=4800
526 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
527 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
528
529 # then add the new colors to the text fields
530 perl -e 'for ($i = 718;$i<1385;$i++) { print "g$i.bmp\n" } ' >list_batch2.txt
531 edit it for l1 l2 ???
532 awk <list_batch2.txt '{print $1, $2; if ($3 != "") print $1, $3; if ($4 != "") print $1, $4}' >l
533 mv l list_batch2.txt
534
535
536 # verify that there are no spelling mistakes
537 awk <list_batch2.txt '{print $2}' | sort -u
538
539
540
541 # add to the files
542 awk <list_batch2.txt '{print "echo >>" $2 ".txt " $1}' | bash
543
544

  ViewVC Help
Powered by ViewVC 1.1.5