version 1.2, 2012/08/28 08:15:13
|
version 1.4, 2012/08/28 08:43:05
|
Line 5
|
Line 5
|
# can do whatever you want with this stuff. If we meet some day, and you think |
# can do whatever you want with this stuff. If we meet some day, and you think |
# this stuff is worth it, you can buy me a beer in return Aron Schlesinger |
# this stuff is worth it, you can buy me a beer in return Aron Schlesinger |
# |
# |
# $Paefchen: scripts/pgallery/src/pgallery.sh,v 1.1 2012/08/27 14:23:59 as Exp $ | # $Paefchen: scripts/pgallery/src/pgallery.sh,v 1.3 2012/08/28 08:27:25 as Exp $ |
# |
# |
|
|
ARG_TITLE="PGallery" |
ARG_TITLE="PGallery" |
Line 36 usage()
|
Line 36 usage()
|
usage $0: ( [-f <files>] | [-s <suffix>] ) [-d <dir>] [-n <name>] |
usage $0: ( [-f <files>] | [-s <suffix>] ) [-d <dir>] [-n <name>] |
[-t <thumbnail_size>] [-u <thumbnail_quality>] |
[-t <thumbnail_size>] [-u <thumbnail_quality>] |
[-b <big_size>] [-c <big_quality>] |
[-b <big_size>] [-c <big_quality>] |
[-i <index>] [-U] | -h | [-i <index>] [-C <copyright>] [-U] | -h | -v |
Options: |
Options: |
-b size size from big images in pixel (default: $ARG_BIGSIZE) |
-b size size from big images in pixel (default: $ARG_BIGSIZE) |
-c quality quality from big images 0-100% (default: $ARG_BIGQALITY) |
-c quality quality from big images 0-100% (default: $ARG_BIGQALITY) |
Line 50 Options:
|
Line 50 Options:
|
(default: $ARG_FILETYPES) |
(default: $ARG_FILETYPES) |
-t size size from thumbnail images in pixel (default: $ARG_TNSIZE) |
-t size size from thumbnail images in pixel (default: $ARG_TNSIZE) |
-u quality quality from thumbnail images 0-100% (default: $ARG_BIGQALITY) |
-u quality quality from thumbnail images 0-100% (default: $ARG_BIGQALITY) |
|
-v print version |
|
-C copyright copyright (html) string (default: $ARG_COPYRIGHT) |
-U no update, new calculation of all images. |
-U no update, new calculation of all images. |
normally only new and modified images will calculated |
normally only new and modified images will calculated |
-C copyright copyright (html) string (default: $ARG_COPYRIGHT) |
|
-v print version |
|
USAGE |
USAGE |
exit |
exit |
} |
} |
Line 162 div.tn, div.big {
|
Line 162 div.tn, div.big {
|
border-color: gray; |
border-color: gray; |
box-shadow: 1px 1px 2px #000; |
box-shadow: 1px 1px 2px #000; |
padding: 1px; |
padding: 1px; |
|
border-radius: 3px; |
} |
} |
div.tn:hover { |
div.tn:hover { |
background-color: #222; |
background-color: #222; |
Line 323 html_img()
|
Line 324 html_img()
|
linkb=$3 |
linkb=$3 |
linkn=$4 |
linkn=$4 |
|
|
height=$($BIN_IMGINFO -f $img | awk '{print $4}') | info=$($BIN_IMGINFO -f $img) |
| width=$(echo $info | awk '{print $3}') |
| height=$(echo $info | awk '{print $4}') |
|
|
if [ "$linkb" != "" ] |
if [ "$linkb" != "" ] |
then |
then |
Line 345 html_img()
|
Line 348 html_img()
|
<div class="right">$hlinkn</div> |
<div class="right">$hlinkn</div> |
</div> |
</div> |
<div class="big"> |
<div class="big"> |
<img src="$img" /> | <img alt="$img" width="$width" height="$height" src="$img" /> |
</div> |
</div> |
<div class="c"> |
<div class="c"> |
$ARG_TITLE $ARG_COPYRIGHT |
$ARG_TITLE $ARG_COPYRIGHT |