forked from murtaugh/95layouts
readme + makefile
parent
cf465bf5c4
commit
c7b65da9bb
@ -0,0 +1 @@
|
|||||||
|
images/
|
@ -0,0 +1,30 @@
|
|||||||
|
# find all .md files in the directory
|
||||||
|
# mdsrc=$(shell ls *.md)
|
||||||
|
mdsrc=$(shell find . -iname "*.md")
|
||||||
|
# mdsrc=$(wildcard *.md */*.md **/*.md )
|
||||||
|
# map *.mp => *.html for mdsrc
|
||||||
|
html_from_md=$(mdsrc:%.md=%.html)
|
||||||
|
|
||||||
|
all: $(html_from_md)
|
||||||
|
|
||||||
|
fixnames:
|
||||||
|
rename "s/ /_/g" *
|
||||||
|
|
||||||
|
today:
|
||||||
|
touch `date +"%Y-%m-%d.md"`
|
||||||
|
|
||||||
|
now_folder:
|
||||||
|
mkdir `date +"%Y-%m-%d-%H%M%S"`
|
||||||
|
|
||||||
|
# Implicit rule to know how to make .html from .md
|
||||||
|
%.html: %.md
|
||||||
|
pandoc --from markdown \
|
||||||
|
--to html \
|
||||||
|
--standalone \
|
||||||
|
--smart \
|
||||||
|
--section-divs \
|
||||||
|
--css styles.css \
|
||||||
|
$< -o $@
|
||||||
|
# special rule for debugging variables
|
||||||
|
print-%:
|
||||||
|
@echo '$*=$($*)'
|
@ -1 +1,49 @@
|
|||||||
Exploring different ways to do page layout
|
95 layouts
|
||||||
|
================
|
||||||
|
|
||||||
|
Because there's always more than one way to do it.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Publishing an "image gallery"
|
||||||
|
------------------------------------
|
||||||
|
|
||||||
|
Imagemagick's suite of tools includes *montage* which is quite flexible and useful for making a quick overview page of image.
|
||||||
|
|
||||||
|
* mogrify
|
||||||
|
* identify
|
||||||
|
* convert
|
||||||
|
|
||||||
|
|
||||||
|
Sizing down a bunch of images
|
||||||
|
--------------------------------
|
||||||
|
|
||||||
|
Warning: MOGRIFY MODIES THE IMAGES -- ERASING THE ORIGINAL -- make a copy of the images before you do this!!!
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mogrify -resize 1024x *.JPG
|
||||||
|
```
|
||||||
|
|
||||||
|
Fixing the orientation of images
|
||||||
|
------------------------------------
|
||||||
|
```bash
|
||||||
|
mogrify -auto-orient *.JPG
|
||||||
|
```
|
||||||
|
|
||||||
|
Using Montage
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
```bash
|
||||||
|
montage -label "%f" *.JPG \
|
||||||
|
-shadow \
|
||||||
|
-geometry 1000x1000+100+100 \
|
||||||
|
montage.caption.jpg
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Using pdftk to put things together
|
||||||
|
--------------------------------------
|
||||||
|
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
# "Fix" the images rotation
|
||||||
|
# mogrify -auto-orient *.JPG
|
||||||
|
|
||||||
|
|
||||||
|
# montage *.JPG -geometry 1000x1000 montage.1000x1000.jpg
|
||||||
|
|
||||||
|
montage -label "%f" *.JPG \
|
||||||
|
-shadow \
|
||||||
|
-geometry 1000x1000+100+100 \
|
||||||
|
montage.caption.jpg
|
||||||
|
|
||||||
|
# montage -label '%f' *.JPG \
|
||||||
|
# -tile x1 -shadow -geometry '60x60+2+2>' label_shadow.jpg
|
Loading…
Reference in New Issue