Skip to content

Commit 121e227

Browse files
committed
Initial commit.
0 parents  commit 121e227

File tree

6,394 files changed

+183269
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,394 files changed

+183269
-0
lines changed

README

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
2+
3+
The Example Processing Files are...
4+
5+
Toplevel...
6+
generate_all - accept some flags and run all "generate" scripts
7+
using those flags
8+
generate_options - convert command line flags into shell options to
9+
control image generation. Also provides the
10+
'usage' output
11+
index.html
12+
generate - generate script for just the top level
13+
also contains specific index creation for the
14+
four 'image' stores
15+
16+
Each Sub-Directory (crop is a good general section to study)
17+
index.html
18+
generate - generate for each sub-direcory all very simular
19+
* process command line options
20+
* clear/backup existing examples
21+
* link/copy source images into current directory
22+
* generate examples from "index.html"
23+
* run any other scripts needed
24+
* compare examples against backup
25+
* and finally do any special cleanup!
26+
generate_* - other generation scripts need for this section
27+
28+
Processing Scripts (toplevel)
29+
generate_clear - either deletes all image files, or backs them up
30+
for compares. Backup images are prefexed with '_'
31+
generate_examples - THE MAIN WORKHORSE
32+
This is the one that reads the HTML index files,
33+
extracts the commands
34+
from 'CODE' blocks. It then runs the command
35+
according to command line flags, or flags in each
36+
'CODE'
37+
generate_compare - compare backed up images against the just
38+
generated images to find examples where the
39+
results have changed.
40+
Backups are deleted (or not) after comparison
41+
generate_font_chars - extract specific characters from of array of
42+
an array of characters (for append/montage examples)
43+
generate_symbols - extract images from specific fonts, usually used
44+
to display mathematical processing (morphology)
45+
generate_tags - generate a "tags" index file for vim editor
46+
(you can ignore)
47+
generate_version - create a image of the current IM version during the
48+
example creation of a specific "index.html"
49+
50+
Helper Scripts
51+
52+
cmp_backups - look at backup images that was left behind as
53+
they fails the image compare. I manually
54+
deletes the backup images when satisfied all is
55+
okay.
56+
forum_link.cgi - redirect links to the User Forums appropriately.
57+
The user forum moved three times during those 10
58+
years, and I got sick of having to change all the
59+
links in all the index.html, so I have it go thru
60+
this script.
61+
62+
63+
The scripts sub-directory is just scripts for processing images using
64+
imagemagick. Many are referred to and even used by specific examples.
65+
The directory should be in your PATH.
66+
67+
Note in any specific section (sub-directory) I typically tried to keep
68+
what source images are used to a minimum.
69+
70+
I preferred to reuse the source image in multiple examples,
71+
or use previously generated example results for later example input.
72+
73+
74+
75+
76+
Anthony Thyssen ( System Programmer ) <A.Thyssen@griffith.edu.au>
77+
--------------------------------------------------------------------------
78+
My religious faith is a private matter bettween me and my God.
79+
-- Robert A. Heinlein "If this Goes On..."
80+
--------------------------------------------------------------------------
81+
Anthony's Castle http://www.ict.griffith.edu.au/anthony/
82+

advanced/aqua_coeffs.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.500,-5.050,2.050,0.300

advanced/aqua_coeffs.txt.gif

715 Bytes

advanced/aqua_light+edge.png

3.42 KB

advanced/aqua_lighting.png

2.41 KB

advanced/aqua_plot.gif

2.65 KB

advanced/aqua_plot.jpg

20.5 KB

advanced/aqua_result.png

5.4 KB

advanced/aqua_shade.png

2.46 KB

advanced/aqua_shape.png

2.41 KB

advanced/aqua_text.png

95 KB

advanced/asterix.gif

83 Bytes

advanced/asterix_blue.gif

598 Bytes

advanced/asterix_cyan.gif

596 Bytes

advanced/asterix_green.gif

603 Bytes

advanced/asterix_grey.gif

594 Bytes

advanced/asterix_maroon.gif

598 Bytes

advanced/asterix_red.gif

599 Bytes

advanced/asterix_yellow.gif

595 Bytes

advanced/ball.gif

72 Bytes

advanced/ball_blue.gif

556 Bytes

advanced/ball_cyan.gif

561 Bytes

advanced/ball_green.gif

565 Bytes

advanced/ball_grey.gif

554 Bytes

advanced/ball_maroon.gif

560 Bytes

advanced/ball_red.gif

560 Bytes

advanced/ball_yellow.gif

558 Bytes

advanced/create_bullet

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
#
3+
# Given a shaped image, create a color image with a highlight shading.
4+
#
5+
INPUT=$1
6+
COLOR=$2
7+
OUTPUT=$3
8+
9+
convert $INPUT -alpha on \
10+
\( +clone -channel A -separate +channel \
11+
-bordercolor black -border 5 -blur 0x2 -shade 120x30 \
12+
-normalize -blur 0x1 -fill $COLOR -tint 100 \) \
13+
-gravity center -compose Atop -composite \
14+
$OUTPUT
15+
16+
#\( +clone -fx A +matte -bordercolor black -border 5 \
17+
18+

advanced/flare_1_final.png

44 KB

advanced/flare_1a.png

543 Bytes

advanced/flare_1b-0.png

545 Bytes

advanced/flare_1b-1.png

594 Bytes

advanced/flare_1b.png

32.1 KB

advanced/flare_1c-0.png

540 Bytes

advanced/flare_1c-1.png

594 Bytes

advanced/flare_1c.png

19.5 KB

advanced/flare_2_color.png

50.5 KB

advanced/flare_2_final.png

42.7 KB

advanced/flare_2a.png

17.5 KB

advanced/flare_2b.png

427 Bytes

advanced/flare_2c.png

312 Bytes

advanced/flare_2f.png

18.1 KB

advanced/gel_border.png

8.81 KB

advanced/gel_button.png

15.6 KB

advanced/gel_highlight.png

7.12 KB

advanced/gel_shape.png

1 KB

advanced/generate

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
#
3+
# Regenerage all the images from the code blocks in the index.html
4+
#
5+
6+
. ../generate_options
7+
../generate_clear
8+
jpg_opt='-compress LossLess'
9+
10+
# don't backup intermete images, let IM overwrite as needed
11+
mv_perl -q 's/_flare_(..)\.png/flare_${1}\.png/' _flare_??.png
12+
13+
ln -s ../img_photos/holocaust_md.jpg .
14+
ln -s ../img_photos/holocaust_tn.gif .
15+
ln -s ../images/jigsaw_*.png .
16+
ln -s ../images/pokemon.gif .
17+
ln -s ../images/tile_wood.gif .
18+
19+
. ../generate_examples
20+
21+
# Junk the gunplot 'fit' output
22+
rm -f fit.log
23+
24+
25+
../generate_compare
26+
27+
echo "DONE"
28+
29+

advanced/heart.png

481 Bytes

advanced/heart_blue.png

999 Bytes

advanced/heart_cyan.png

979 Bytes

advanced/heart_green.png

1.06 KB

advanced/heart_grey.png

664 Bytes

advanced/heart_maroon.png

1.06 KB

advanced/heart_red.png

989 Bytes

advanced/heart_yellow.png

976 Bytes

advanced/holocaust_jigsaw_tn.png

25.8 KB

advanced/holocaust_md.jpg

advanced/holocaust_piece_tn.png

3.61 KB

advanced/holocaust_puzzle_tn.png

22.6 KB

advanced/holocaust_tn.gif

0 commit comments

Comments
 (0)