Apache-Gallery-1.0.2/ 0000755 0001750 0001750 00000000000 11573741742 012427 5 ustar mil mil Apache-Gallery-1.0.2/TODO 0000644 0001750 0001750 00000001277 11573732721 013123 0 ustar mil mil $Author: mil $ $Rev: 255 $
$Date: 2004-04-12 19:49:02 +0200 (Mon, 12 Apr 2004) $
- Write a gallery-cleancache.pl script for removing entries in
the cache where the original picture has been removed.
- /admin page to edit comments and .rotate file. (Cleanup in
.cache when changing rotation)
- Write perlscript to make static html galleries.
- Sort by the DateTimeOriginal part of the EXIF header
if possible
- Make the template and imagesystem pluggable
- Make scaling quality configurable
- Thumbnails are to be generated in tmp files first,
then moved to the correct location.
- Use imlib_create_cropped_scaled_image in resizepicture
- Try to avoid running too many resize processes
Apache-Gallery-1.0.2/templates/ 0000755 0001750 0001750 00000000000 11573741742 014425 5 ustar mil mil Apache-Gallery-1.0.2/templates/default/ 0000755 0001750 0001750 00000000000 11573741742 016051 5 ustar mil mil Apache-Gallery-1.0.2/templates/default/refresh.tpl 0000644 0001750 0001750 00000000155 11573732720 020225 0 ustar mil mil
Apache-Gallery-1.0.2/templates/default/directory.tpl 0000644 0001750 0001750 00000000167 11573732720 020576 0 ustar mil mil
Apache-Gallery-1.0.2/templates/default/rss_item.tpl 0000644 0001750 0001750 00000000235 11573732720 020413 0 ustar mil mil -
{ $TITLE }
{ $LINK }
Apache-Gallery-1.0.2/templates/default/file.tpl 0000644 0001750 0001750 00000000216 11573732720 017504 0 ustar mil mil
Apache-Gallery-1.0.2/templates/default/gallery.css 0000644 0001750 0001750 00000001633 11573732720 020221 0 ustar mil mil body {
background-color: #cccccc;
font-family: Verdana, Lucida, Arial;
font-size: 10px;
margin-left: 10px;
margin-top: 10px;
text-align: center;
}
td {
font-size: 10px;
}
table {
margin-left: auto;
margin-right: auto;
}
#menu {
font-size: 11px;
text-align: left;
height: 30px;
}
#nav {
font-size: 11px;
text-align: left;
height: 30px;
text-align: right;
}
#directory {
background-color: #ffffff;
border: 1px solid #666666;
padding: 20px;
text-align: left;
top: 0px;
}
#folder {
float: left;
height: 100px;
padding: 2px;
text-align: center;
width: 120px;
}
#picture img {
border: 1px solid #000000;
}
a {
color: #5555aa;
}
a img {
border: 2px solid #5555aa;
}
a:hover {
color: #ff9400;
}
a:hover img {
border: 2px solid #ff9400;
}
#folder img {
border: 0px;
}
.info {
background-color: #eeeeee;
border: 1px dashed #888888;
color: #666666;
font-size: 10px;
margin: 10px;
padding: 5px;
}
Apache-Gallery-1.0.2/templates/default/scale.tpl 0000644 0001750 0001750 00000000067 11573732720 017660 0 ustar mil mil { $SIZE }
Apache-Gallery-1.0.2/templates/default/intervalactive.tpl 0000644 0001750 0001750 00000000015 11573732720 021602 0 ustar mil mil { $SECONDS }
Apache-Gallery-1.0.2/templates/default/index.tpl 0000644 0001750 0001750 00000000662 11573732720 017701 0 ustar mil mil
Apache-Gallery-1.0.2/templates/default/dircomment.tpl 0000644 0001750 0001750 00000000153 11573732720 020726 0 ustar mil mil
Apache-Gallery-1.0.2/templates/default/nodircomment.tpl 0000644 0001750 0001750 00000000000 11573732720 021252 0 ustar mil mil Apache-Gallery-1.0.2/templates/default/scaleactive.tpl 0000644 0001750 0001750 00000000012 11573732720 021042 0 ustar mil mil { $SIZE }
Apache-Gallery-1.0.2/templates/default/slideshowisoff.tpl 0000644 0001750 0001750 00000000004 11573732720 021610 0 ustar mil mil Off
Apache-Gallery-1.0.2/templates/default/showpicture.tpl 0000644 0001750 0001750 00000001454 11573732720 021146 0 ustar mil mil
Viewing picture { $NUMBER } of { $TOTAL } at { $RESOLUTION } pixels
Size [ { $SIZES } ]
Slideshow [ { $SLIDESHOW } ]
{ $BACK }
{ $PICTUREINFO }
{ $NEXT }
Apache-Gallery-1.0.2/templates/default/info.tpl 0000644 0001750 0001750 00000000031 11573732720 017513 0 ustar mil mil { $KEY }: { $VALUE }
Apache-Gallery-1.0.2/templates/default/navpicture.tpl 0000644 0001750 0001750 00000000255 11573732720 020750 0 ustar mil mil { $DIRECTION } - { $FILENAME }
Apache-Gallery-1.0.2/templates/default/orig.tpl 0000644 0001750 0001750 00000000052 11573732720 017523 0 ustar mil mil Original
Apache-Gallery-1.0.2/templates/default/picture.tpl 0000644 0001750 0001750 00000000170 11573732720 020237 0 ustar mil mil
Apache-Gallery-1.0.2/templates/default/error.tpl 0000644 0001750 0001750 00000000306 11573732720 017716 0 ustar mil mil
{ $ERRORTITLE }
{ $ERROR }
Back
Apache-Gallery-1.0.2/templates/default/slideshowoff.tpl 0000644 0001750 0001750 00000000040 11573732720 021254 0 ustar mil mil Off
Apache-Gallery-1.0.2/templates/default/pictureinfo.tpl 0000644 0001750 0001750 00000000376 11573732720 021123 0 ustar mil mil
Apache-Gallery-1.0.2/templates/default/layout.tpl 0000644 0001750 0001750 00000000351 11573732720 020102 0 ustar mil mil
{ $TITLE }
{ $META }
{ $MAIN }
Apache-Gallery-1.0.2/templates/default/interval.tpl 0000644 0001750 0001750 00000000121 11573732720 020404 0 ustar mil mil { $SECONDS }
Apache-Gallery-1.0.2/templates/default/rss.tpl 0000644 0001750 0001750 00000000312 11573732720 017371 0 ustar mil mil
{ $ITEMS }
Apache-Gallery-1.0.2/templates/default/nopictureinfo.tpl 0000644 0001750 0001750 00000000330 11573732720 021446 0 ustar mil mil
Apache-Gallery-1.0.2/templates/new/ 0000755 0001750 0001750 00000000000 11573741742 015216 5 ustar mil mil Apache-Gallery-1.0.2/templates/new/refresh.tpl 0000644 0001750 0001750 00000000155 11573732721 017373 0 ustar mil mil
Apache-Gallery-1.0.2/templates/new/directory.tpl 0000644 0001750 0001750 00000000176 11573732721 017744 0 ustar mil mil
Apache-Gallery-1.0.2/templates/new/rss_item.tpl 0000644 0001750 0001750 00000000235 11573732721 017561 0 ustar mil mil -
{ $TITLE }
{ $LINK }
Apache-Gallery-1.0.2/templates/new/file.tpl 0000644 0001750 0001750 00000000222 11573732721 016647 0 ustar mil mil
Apache-Gallery-1.0.2/templates/new/gallery.css 0000644 0001750 0001750 00000002124 11573732721 017363 0 ustar mil mil body {
background-color: #cccccc;
color: #666666;
font-family: Verdana, Lucida, Arial, serif;
font-size: 10px;
margin-left: 10px;
margin-top: 10px;
text-align: center;
}
td {
font-size: 10px;
}
table {
margin-left: auto;
margin-right: auto;
}
#title {
font-size: 11px;
text-align: left;
}
#menu {
font-size: 13px;
text-align: right;
height: 30px;
margin-right: 20px;
}
#directory {
background-color: #ffffff;
border: 6px solid #aaaaaa;
padding: 20px;
text-align: left;
top: 0px;
}
.folder {
float: left;
height: 100px;
padding: 2px;
text-align: center;
width: 120px;
}
#picture {
text-align: center;
}
#picture img {
border: 6px solid #777777;
}
a {
color: #5555aa;
text-decoration: none;
}
a img {
border: 3px solid #5555aa;
}
a:hover {
color: #ff9400;
}
a:hover img {
border: 3px solid #ff9400;
}
.folder img {
border: 0px;
}
.folder a:hover img {
border: 0px;
}
#gallery {
margin-top: 50px;
}
#comment {
background-color: #333333;
border: 3px solid #555555;
color: #999999;
width: 400px;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
padding: 5px;
}
Apache-Gallery-1.0.2/templates/new/scale.tpl 0000644 0001750 0001750 00000000067 11573732721 017026 0 ustar mil mil { $SIZE }
Apache-Gallery-1.0.2/templates/new/intervalactive.tpl 0000644 0001750 0001750 00000000015 11573732721 020750 0 ustar mil mil { $SECONDS }
Apache-Gallery-1.0.2/templates/new/index.tpl 0000644 0001750 0001750 00000000721 11573732721 017043 0 ustar mil mil
{ $MENU }
{ $FORM_BEGIN }
{ $FORM_END }
Apache-Gallery-1.0.2/templates/new/dircomment.tpl 0000644 0001750 0001750 00000000153 11573732721 020074 0 ustar mil mil
Apache-Gallery-1.0.2/templates/new/nodircomment.tpl 0000644 0001750 0001750 00000000000 11573732721 020420 0 ustar mil mil Apache-Gallery-1.0.2/templates/new/scaleactive.tpl 0000644 0001750 0001750 00000000012 11573732721 020210 0 ustar mil mil { $SIZE }
Apache-Gallery-1.0.2/templates/new/slideshowisoff.tpl 0000644 0001750 0001750 00000000004 11573732721 020756 0 ustar mil mil Off
Apache-Gallery-1.0.2/templates/new/showpicture.tpl 0000644 0001750 0001750 00000001355 11573732721 020314 0 ustar mil mil
{ $MENU }
IMG { $NUMBER } of { $TOTAL } { $EXIFVALUES }
[ Size: { $SIZES } | Slideshow: { $SLIDESHOW } ]
{ $PICTUREINFO }
Apache-Gallery-1.0.2/templates/new/info.tpl 0000644 0001750 0001750 00000000031 11573732721 016661 0 ustar mil mil { $KEY }: { $VALUE }
Apache-Gallery-1.0.2/templates/new/navpicture.tpl 0000644 0001750 0001750 00000000163 11573732721 020114 0 ustar mil mil { $DIRECTION }
Apache-Gallery-1.0.2/templates/new/orig.tpl 0000644 0001750 0001750 00000000052 11573732721 016671 0 ustar mil mil Original
Apache-Gallery-1.0.2/templates/new/picture.tpl 0000644 0001750 0001750 00000000203 11573732721 017402 0 ustar mil mil { $SELECT }
Apache-Gallery-1.0.2/templates/new/error.tpl 0000644 0001750 0001750 00000001323 11573732721 017064 0 ustar mil mil
{ $ERRORTITLE }
{ $ERROR }
Back
Apache-Gallery-1.0.2/templates/new/slideshowoff.tpl 0000644 0001750 0001750 00000000040 11573732721 020422 0 ustar mil mil Off
Apache-Gallery-1.0.2/templates/new/pictureinfo.tpl 0000644 0001750 0001750 00000000343 11573732721 020263 0 ustar mil mil
Apache-Gallery-1.0.2/templates/new/layout.tpl 0000644 0001750 0001750 00000000351 11573732721 017250 0 ustar mil mil
{ $TITLE }
{ $META }
{ $MAIN }
Apache-Gallery-1.0.2/templates/new/interval.tpl 0000644 0001750 0001750 00000000121 11573732721 017552 0 ustar mil mil { $SECONDS }
Apache-Gallery-1.0.2/templates/new/rss.tpl 0000644 0001750 0001750 00000000312 11573732721 016537 0 ustar mil mil
{ $ITEMS }
Apache-Gallery-1.0.2/templates/new/nopictureinfo.tpl 0000644 0001750 0001750 00000000330 11573732721 020614 0 ustar mil mil
Apache-Gallery-1.0.2/templates/bright/ 0000755 0001750 0001750 00000000000 11573741742 015704 5 ustar mil mil Apache-Gallery-1.0.2/templates/bright/refresh.tpl 0000644 0001750 0001750 00000000155 11573732717 020066 0 ustar mil mil
Apache-Gallery-1.0.2/templates/bright/directory.tpl 0000644 0001750 0001750 00000000202 11573732717 020425 0 ustar mil mil
Apache-Gallery-1.0.2/templates/bright/rss_item.tpl 0000644 0001750 0001750 00000000235 11573732717 020254 0 ustar mil mil -
{ $TITLE }
{ $LINK }
Apache-Gallery-1.0.2/templates/bright/file.tpl 0000644 0001750 0001750 00000000222 11573732717 017342 0 ustar mil mil
Apache-Gallery-1.0.2/templates/bright/navdirectory.tpl 0000644 0001750 0001750 00000000210 11573732717 021131 0 ustar mil mil
Apache-Gallery-1.0.2/templates/bright/gallery.css 0000644 0001750 0001750 00000004115 11573732717 020060 0 ustar mil mil body {
background-color: #eee;
font-family: tahoma, verdana, sans-serif;
color: #555;
text-align: center;
font-size: 11px;
margin: 10px;
}
td {
font-size: 11px;
}
a {
color: #506677;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
table {
margin: auto;
}
.gallery-info {
text-align: left;
margin-bottom: 30px;
}
/*
.img-white {
margin: 0px auto;
float: left;
background: url(/eeeBorder.gif) no-repeat top left;
}
.img-shadow {
float: left;
background: url(/eeeshadow.gif) no-repeat bottom right;
}
*/
.img-border {
background-color: #fff;
border: 1px solid #555;
padding: 8px;
font-size: 11px;
margin: 6px;
text-align: right;
}
.img-shadow img {
border: 2px solid #ddd;
border-left: 2px solid #999;
border-top: 2px solid #999;
}
.img-border div {
margin-top: 4px;
}
.clr {
clear: both;
}
div.gallery-nav {
float: right;
text-align: right;
}
div.gallery-info {
float: left;
text-align: left;
}
div.gallery-info a {
}
div.gallery-info:hover {
color: #000;
}
div.gallery-info:hover a {
color: #5b8db2;
}
.img-info {
margin-bottom: 5px;
}
.img-info:hover {
color: #000;
}
.comment {
margin-bottom: 5px;
font-size: 18px;
}
.comment:hover {
color: #000;
font-size: 18px;
}
.img-options {
margin-top: 10px;
margin-bottom: 100px;
}
.img-options:hover {
color: #000;
}
.img-options:hover a {
color: #5b8db2;
}
.aginfo:hover {
color: #000;
}
.aginfo:hover a {
color: #0066b2;
}
#directory {
background-color: #fff;
border: 4px solid #ddd;
padding: 20px;
text-align: left;
top: 0px;
width: 620px;
}
.directory-preview {
background-color: #fff;
border: 4px solid #ddd;
padding: 20px;
text-align: left;
top: 0px;
width: 200px;
height: 50px;
}
.thumb {
float: left;
text-align: center;
width: 150px;
height: 150px;
margin: 2px;
}
.thumb img {
border-color: #506677;
vertical-align: middle;
}
.folder {
float: left;
height: 100px;
padding: 2px;
text-align: center;
width: 120px;
}
.folder img {
border: 0px;
}
.folder a:hover img {
border: 0px;
}
.folder a:hover {
text-decoration: none;
}
Apache-Gallery-1.0.2/templates/bright/scale.tpl 0000644 0001750 0001750 00000000067 11573732717 017521 0 ustar mil mil { $SIZE }
Apache-Gallery-1.0.2/templates/bright/intervalactive.tpl 0000644 0001750 0001750 00000000015 11573732717 021443 0 ustar mil mil { $SECONDS }
Apache-Gallery-1.0.2/templates/bright/index.tpl 0000644 0001750 0001750 00000001037 11573732717 017537 0 ustar mil mil
{ $MENU }
{ $BROWSELINKS }
{ $FORM_BEGIN }
{ $PREV_DIR_FILES }
{ $FILES }
{ $NEXT_DIR_FILES }
{ $DIRCOMMENT }
{ $FORM_END }
Apache-Gallery-1.0.2/templates/bright/dircomment.tpl 0000644 0001750 0001750 00000000153 11573732717 020567 0 ustar mil mil
Apache-Gallery-1.0.2/templates/bright/nodircomment.tpl 0000644 0001750 0001750 00000000000 11573732717 021113 0 ustar mil mil Apache-Gallery-1.0.2/templates/bright/scaleactive.tpl 0000644 0001750 0001750 00000000012 11573732717 020703 0 ustar mil mil { $SIZE }
Apache-Gallery-1.0.2/templates/bright/slideshowisoff.tpl 0000644 0001750 0001750 00000000004 11573732717 021451 0 ustar mil mil Off
Apache-Gallery-1.0.2/templates/bright/showpicture.tpl 0000644 0001750 0001750 00000001647 11573732717 021013 0 ustar mil mil
{ $MENU }
{ $BACK } -
u p - { $NEXT }
IMG { $NUMBER } of { $TOTAL }
| { $EXIF_DATETIMEORIGINAL }
| { $EXIF_EXPOSURETIME }s
| { $EXIF_ISOSPEEDRATINGS }iso
| { $EXIF_FOCALLENGTH }
| { $EXIF_APERTUREVALUE }
{ $PICTUREINFO }
[ Size: { $SIZES } | Slideshow: { $SLIDESHOW } ]
Apache-Gallery-1.0.2/templates/bright/info.tpl 0000644 0001750 0001750 00000000033 11573732717 017356 0 ustar mil mil { $KEY }: { $VALUE }
Apache-Gallery-1.0.2/templates/bright/navpicture.tpl 0000644 0001750 0001750 00000000163 11573732717 020607 0 ustar mil mil { $DIRECTION }
Apache-Gallery-1.0.2/templates/bright/orig.tpl 0000644 0001750 0001750 00000000052 11573732717 017364 0 ustar mil mil Original
Apache-Gallery-1.0.2/templates/bright/picture.tpl 0000644 0001750 0001750 00000000236 11573732717 020103 0 ustar mil mil { $SELECT }
Apache-Gallery-1.0.2/templates/bright/error.tpl 0000644 0001750 0001750 00000001313 11573732717 017556 0 ustar mil mil
{ $ERRORTITLE }
{ $ERROR }
Back
Apache-Gallery-1.0.2/templates/bright/slideshowoff.tpl 0000644 0001750 0001750 00000000040 11573732717 021115 0 ustar mil mil Off
Apache-Gallery-1.0.2/templates/bright/README 0000644 0001750 0001750 00000001172 11573732717 016567 0 ustar mil mil For this template to work the first two of the following options are a necessity, option three and four only completes the
design. Option two should of course be hacked to fit the EXIF from your camera.
Remember to copy the new gallery.css to your DocumentRoot as well.
PerlSetVar GalleryEXIFMode 'variables'
PerlSetVar GalleryInfo 'Model => Model, Timestamp => DateTimeOriginal, Exposure Time => ExposureTime, ISO Speed Rating => ISOSpeedRatings, Focal Length => FocalLength, ApertureValue => ApertureValue, Flash => Flash'
PerlSetVar GalleryThumbnailSize '140x105'
PerlSetVar GalleryThumbnailSizeLS 1
Apache-Gallery-1.0.2/templates/bright/pictureinfo.tpl 0000644 0001750 0001750 00000000055 11573732717 020756 0 ustar mil mil
{ $INFO }
{ $COMMENT }
Apache-Gallery-1.0.2/templates/bright/layout.tpl 0000644 0001750 0001750 00000001050 11573732717 017740 0 ustar mil mil
{ $TITLE }
{ $META }
{ $MAIN }
Apache-Gallery-1.0.2/templates/bright/interval.tpl 0000644 0001750 0001750 00000000125 11573732717 020251 0 ustar mil mil { $SECONDS }
Apache-Gallery-1.0.2/templates/bright/rss.tpl 0000644 0001750 0001750 00000000312 11573732717 017232 0 ustar mil mil
{ $ITEMS }
Apache-Gallery-1.0.2/templates/bright/nopictureinfo.tpl 0000644 0001750 0001750 00000000000 11573732717 021301 0 ustar mil mil Apache-Gallery-1.0.2/MANIFEST 0000644 0001750 0001750 00000005323 11573732721 013560 0 ustar mil mil Changes
htdocs/agfolder.png
htdocs/application-doc.png
htdocs/application-pdf.png
htdocs/application-rtf.png
htdocs/c.png
htdocs/sound-mp3.png
htdocs/sound-ogg.png
htdocs/sound-wav.png
htdocs/video-asf.png
htdocs/video-avi.png
htdocs/video-mov.png
htdocs/video-mpeg.png
htdocs/video-mpg.png
htdocs/video-wmv.png
INSTALL
lib/Apache/Gallery.pm
LICENSE
Makefile.PL
MANIFEST
META.yml
README
t/001_use.t
t/002_graphlibs.t
t/002_injpg.jpg
t/002_inpng.png
t/003_comment.t
t/003_commenttest
t/004_cache_dir.t
t/005_imageinfo.t
t/005_jpg.jpg
t/006_thumbnails.t
t/007_pod.t
templates/bright/dircomment.tpl
templates/bright/directory.tpl
templates/bright/error.tpl
templates/bright/file.tpl
templates/bright/gallery.css
templates/bright/index.tpl
templates/bright/info.tpl
templates/bright/intervalactive.tpl
templates/bright/interval.tpl
templates/bright/layout.tpl
templates/bright/navdirectory.tpl
templates/bright/navpicture.tpl
templates/bright/nodircomment.tpl
templates/bright/nopictureinfo.tpl
templates/bright/orig.tpl
templates/bright/pictureinfo.tpl
templates/bright/picture.tpl
templates/bright/README
templates/bright/refresh.tpl
templates/bright/rss_item.tpl
templates/bright/rss.tpl
templates/bright/scaleactive.tpl
templates/bright/scale.tpl
templates/bright/showpicture.tpl
templates/bright/slideshowisoff.tpl
templates/bright/slideshowoff.tpl
templates/default/dircomment.tpl
templates/default/directory.tpl
templates/default/error.tpl
templates/default/file.tpl
templates/default/gallery.css
templates/default/index.tpl
templates/default/info.tpl
templates/default/intervalactive.tpl
templates/default/interval.tpl
templates/default/layout.tpl
templates/default/navpicture.tpl
templates/default/nodircomment.tpl
templates/default/nopictureinfo.tpl
templates/default/orig.tpl
templates/default/pictureinfo.tpl
templates/default/picture.tpl
templates/default/refresh.tpl
templates/default/rss_item.tpl
templates/default/rss.tpl
templates/default/scaleactive.tpl
templates/default/scale.tpl
templates/default/showpicture.tpl
templates/default/slideshowisoff.tpl
templates/default/slideshowoff.tpl
templates/new/dircomment.tpl
templates/new/directory.tpl
templates/new/error.tpl
templates/new/file.tpl
templates/new/gallery.css
templates/new/index.tpl
templates/new/info.tpl
templates/new/intervalactive.tpl
templates/new/interval.tpl
templates/new/layout.tpl
templates/new/navpicture.tpl
templates/new/nodircomment.tpl
templates/new/nopictureinfo.tpl
templates/new/orig.tpl
templates/new/pictureinfo.tpl
templates/new/picture.tpl
templates/new/refresh.tpl
templates/new/rss_item.tpl
templates/new/rss.tpl
templates/new/scaleactive.tpl
templates/new/scale.tpl
templates/new/showpicture.tpl
templates/new/slideshowisoff.tpl
templates/new/slideshowoff.tpl
TODO
UPGRADE
Apache-Gallery-1.0.2/t/ 0000755 0001750 0001750 00000000000 11573741742 012672 5 ustar mil mil Apache-Gallery-1.0.2/t/006_thumbnails.t 0000644 0001750 0001750 00000001021 11573732715 015604 0 ustar mil mil use Apache::Gallery;
use Test::More;
eval { require Test::MockObject; };
if ($@) {
plan skip_all => 'skip because Test::MockObject not found';
}
else {
plan tests => 4;
my $r = Test::MockObject->new();
$r->set_always('dir_config', '100x75');
my ($width, $height) = Apache::Gallery::get_thumbnailsize($r, 640, 480);
is ($width, 100, 'Width');
is ($height, 75, 'Height');
($width, $height) = Apache::Gallery::get_thumbnailsize($r, 480, 640);
is ($width, 56, 'Height rotated');
is ($height, 75, 'Width rotated');
}
Apache-Gallery-1.0.2/t/003_comment.t 0000644 0001750 0001750 00000000340 11573732715 015100 0 ustar mil mil use Test::More tests => 2;
use Apache::Gallery;
my $comment = Apache::Gallery::get_comment("t/003_commenttest");
is ( $comment->{TITLE}, "My test title", 'Title');
is ( $comment->{COMMENT}, "My test comment", 'Comment');
Apache-Gallery-1.0.2/t/005_jpg.jpg 0000644 0001750 0001750 00000000614 11573732715 014541 0 ustar mil mil ÿØÿà JFIF H H ÿþ Created with The GIMPÿÛ C
$.' ",#(7),01444'9=82<.342ÿÛ C
2!!22222222222222222222222222222222222222222222222222ÿÀ " ÿÄ ÿÄ " !1$QA‘²ÿÄ ÿÄ ÿÚ ? f¸Ån
ö (½kIî½w€äm8ºÇÏÂzÍfoWÅ™+ÅBb&ŸD‹L¬RÎíÍf#‹Œå"4?‘JfS"í¥¸ÿÙ Apache-Gallery-1.0.2/t/002_inpng.png 0000644 0001750 0001750 00000000764 11573732715 015103 0 ustar mil mil ‰PNG
IHDR /%@ bKGD ÿ ÿ ÿ ½§“ pHYs ÒÝ~ü tIMEÒ 7ÔÆ IDATxœÁYnÛ0 @.7SvhŒ Gèw€Þÿ& šÄ°åJ¢÷ÎÐi|úóþ^[;XÛË^ir©µZ«ÇãcY…è*%ÛæsÉÀ97Z¦œ‘]ß«cJŒ2B*s‘JbH[]sÊ Œ•œrL‘´
œåœ»¾è9£„T )§ñv›eŒÒnŒÔª7ºg”Ä÷×uEDÒj#ÍïžÂi9%Dôë–bH! çÊ(Ê™Òwô~ˆî`CP[»Í3%s¶,K*eÃX)wƒ{<Pkݼ!àŽbúçwFZkMk¥ÕÖç@t\ˆ=„Ï¿_ß?÷yî€CuõÞ{—J¾®Ÿ÷
·=0茵Úhk”Nè=T¡èÛïËñèdÏa¤>Ø-+¢/¹`Œ[iÛš#¦}£î`…Ôz8ÙqrÓËé|¾¼¾Ú—·ñ×…tˆ~{Üï·ëÏ|ý¦JÉÖ!sNé bÎ9ÆÁœÆáù즳§áyì”ùµ±çÍñ—/a IEND®B`‚ Apache-Gallery-1.0.2/t/004_cache_dir.t 0000644 0001750 0001750 00000004063 11573732715 015346 0 ustar mil mil use Apache::Gallery;
my $tests;
BEGIN {
$tests=8;
eval { require Test::MockObject };
if ($@) {
print("1..$tests\n");
for (1..$tests) {
print ("ok $_ # skip Test::MockObject not found\n");
}
exit 0;
}
}
use Test::More tests => $tests;
use File::Spec;
# Test these cases:
# +--------------------------------------------------+
# | No. | GalleryCacheDir | Virtual | Strip Filename |
# | 1 | undef | y | y |
# | 2 | undef | y | n |
# | 3 | undef | n | y |
# | 4 | undef | n | n |
# | 5 | 't/cachetest' | y | y |
# | 6 | 't/cachetest' | y | n |
# | 7 | 't/cachetest' | n | y |
# | 8 | 't/cachetest' | n | n |
# +-----+-----------------+---------+----------------+
sub request {
my ($cachedir, $virtual) = @_;
my $r=Test::MockObject->new();
$r->set_always('location', '/location');
$r->set_always('uri', '/uripath1/uripath2/urifile');
$r->set_always('dir_config', $cachedir);
my $server=Test::MockObject->new();
$server->set_always('is_virtual', $virtual);
$server->set_always('server_hostname', 'hostname' );
$r->set_always('server', $server);
return $r;
}
my $r=request(undef, 1);
is(Apache::Gallery::cache_dir($r, 1), '/var/tmp/Apache-Gallery/hostname/uripath1/uripath2');
is(Apache::Gallery::cache_dir($r, 0), '/var/tmp/Apache-Gallery/hostname/uripath1/uripath2/urifile');
$r=request(undef, 0);
is(Apache::Gallery::cache_dir($r, 1), '/var/tmp/Apache-Gallery/location/uripath1/uripath2');
is(Apache::Gallery::cache_dir($r, 0), '/var/tmp/Apache-Gallery/location/uripath1/uripath2/urifile');
$r=request('t/cachetest', 1);
is(Apache::Gallery::cache_dir($r, 1), 't/cachetest/uripath1/uripath2');
is(Apache::Gallery::cache_dir($r, 0), 't/cachetest/uripath1/uripath2/urifile');
$r=request('t/cachetest', 0);
is(Apache::Gallery::cache_dir($r, 1), 't/cachetest/uripath1/uripath2');
is(Apache::Gallery::cache_dir($r, 0), 't/cachetest/uripath1/uripath2/urifile');
Apache-Gallery-1.0.2/t/002_graphlibs.t 0000644 0001750 0001750 00000002007 11573732715 015412 0 ustar mil mil use Test::More;
use Apache::Gallery;
use Image::Size qw(imgsize);
eval { require Apache::FakeRequest; };
if ($@) {
plan skip_all => 'skip Apache::FakeRequest not found';
}
else {
plan tests => 4;
my $request = Apache::FakeRequest->new('get_remote_host' => 'localhost');
Apache::Gallery::resizepicture($request, 't/002_inpng.png', 't/inpng-resized.png', 10, 10, 0, '');
Apache::Gallery::resizepicture($request, 't/002_injpg.jpg', 't/injpg-resized.jpg', 10, 10, 0, '');
my ($pngwidth, $pngheight)=imgsize('t/inpng-resized.png');
my ($jpgwidth, $jpgheight)=imgsize('t/injpg-resized.jpg');
is ($pngwidth, 10, 'PNG Width') or diag('You need to install libpng before libimlib');
is ($pngheight, 10, 'PNG Height') or diag('You need to install libpng before libimlib');
is ($jpgwidth, 10, 'JPG Width') or diag('You need to install libjpeg before libimlib');
is ($jpgheight, 10, 'JPG Height') or diag('You need to install libjpeg before libimlib');
unlink('t/inpng-resized.png');
unlink('t/injpg-resized.jpg');
}
Apache-Gallery-1.0.2/t/002_injpg.jpg 0000644 0001750 0001750 00000000614 11573732715 015065 0 ustar mil mil ÿØÿà JFIF H H ÿþ Created with The GIMPÿÛ C
$.' ",#(7),01444'9=82<.342ÿÛ C
2!!22222222222222222222222222222222222222222222222222ÿÀ " ÿÄ ÿÄ " !1$QA‘²ÿÄ ÿÄ ÿÚ ? f¸Ån
ö (½kIî½w€äm8ºÇÏÂzÍfoWÅ™+ÅBb&ŸD‹L¬RÎíÍf#‹Œå"4?‘JfS"í¥¸ÿÙ Apache-Gallery-1.0.2/t/007_pod.t 0000644 0001750 0001750 00000000626 11573732715 014233 0 ustar mil mil use Test::More;
use File::Spec;
use File::Find;
use strict;
eval "use Test::Pod 0.95";
if ($@) {
plan skip_all => 'Test::Pod v0.95 required for testing POD';
} else {
Test::Pod->import;
my @files;
my $blib = File::Spec->catfile(qw(blib lib));
find( sub {push @files, $File::Find::name if /\.p(l|m|od)$/}, $blib);
plan tests => scalar @files;
foreach my $file (@files) {
pod_file_ok($file);
}
}
Apache-Gallery-1.0.2/t/001_use.t 0000644 0001750 0001750 00000000103 11573732715 014225 0 ustar mil mil use Test::More tests => 1;
BEGIN { use_ok('Apache::Gallery'); }
Apache-Gallery-1.0.2/t/003_commenttest 0000644 0001750 0001750 00000000045 11573732715 015540 0 ustar mil mil TITLE: My test title
My test comment
Apache-Gallery-1.0.2/t/005_imageinfo.t 0000644 0001750 0001750 00000000616 11573732715 015404 0 ustar mil mil use Apache::Gallery;
use Test::More;
eval { require Apache::FakeRequest; };
if ($@) {
plan skip_all => 'skip Apache::FakeRequest not found';
}
else {
plan tests => 1;
my $request = Apache::FakeRequest->new('get_remote_host' => 'localhost');
my $info = Apache::Gallery::get_imageinfo($request, "t/005_jpg.jpg", "JPG", 15, 11);
is ( $info->{Comment}, "Created with The GIMP", 'Comment');
}
Apache-Gallery-1.0.2/INSTALL 0000644 0001750 0001750 00000010040 11573732721 013450 0 ustar mil mil Apache/Gallery version 1.0
===========================
INSTALLATION
Before you start installing Apache::Gallery you need to check
that you have the following installed:
- Perl 5 (http://www.cpan.org/src/README.html)
- Apache (http://httpd.apache.org/) - 1.3.x or 2.x
- mod_perl (http://perl.apache.org/) - 1.x or 2.x (2.0.0 or newer)
- X11 libraries (ie, XFree86)
- Imlib2 (http://prdownloads.sourceforge.net/enlightenment/imlib2-1.0.3.tar.gz)
Perl Modules: (Use http://search.cpan.org/ to find them)
- URI::Escape
- Image::Info version 1.11. (NB NB NB: Version 1.12 is known to give problems)
- Image::Size
- Text::Template
- CGI (3.08)
- Image::Imlib2 (1.02)
When installing Imlib2 from rpm, deb or other packages formats, remember
that you need the imlib2-dev package too. On Debian this can be installed
by running:
apt-get install libimlib2-dev
Then, to install Apache::Gallery run the following commands:
perl Makefile.PL
make
export MOD_PERL_API_VERSION=2 # Only if you run mod_perl 2.0
make test (optional)
make install
If you use Apache 1.3 and mod_perl 1, you need to configure
your virtualhostblock to look like:
ServerName gallery.yourdomain.org
DocumentRoot /data/pictures/
ErrorLog logs/gallery-error_log
TransferLog logs/gallery-access_log
PerlSetVar GalleryTemplateDir '/usr/local/apache/gallery/templates/default/'
PerlSetVar GalleryInfo 'Picture Taken => DateTimeOriginal, Flash => Flash'
PerlSetVar GallerySizes '640 1024 1600 2272'
PerlSetVar GalleryThumbnailSize '100x75'
PerlSetVar GalleryCopyrightImage 'htdocs/c.png'
SetHandler perl-script
PerlHandler Apache::Gallery
In case you run apache 2 and modperl 2 (or 1.99), it needs to look
like:
ServerName gallery.yourdomain.org
DocumentRoot /data/pictures/
ErrorLog logs/gallery-error_log
TransferLog logs/gallery-access_log
PerlSetVar GalleryTemplateDir '/usr/local/apache/gallery/templates/default/'
PerlSetVar GalleryInfo 'Picture Taken => DateTimeOriginal, Flash => Flash'
PerlSetVar GallerySizes '640 1024 1600 2272'
PerlSetVar GalleryThumbnailSize '100x75'
PerlSetVar GalleryCopyrightImage 'htdocs/c.png'
PerlOptions +GlobalRequest
SetHandler modperl
PerlResponseHandler Apache::Gallery
Warning: Apache::Gallery does not work properly if mod_autoindex
is loaded by Apache. Indeed, mod_autoindex overrides Apache::Gallery
and does not let it display directory content.
To check if your apache loads mod_autoindex, just look for this line
in httpd.conf:
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
If this line is not commented, Apache::Gallery will only work when an
image is loaded directly. Whenever a directory listing is requested,
Apache will respond with the classic (and ugly) directory listing performed
by mod_autoindex.
Copy the files from templates/ to where you pointed GalleryTemplateDir to.
Create a directory called gallery in your Apache icons directory and
copy the png files in htdocs to this directory.
The gallery.css file from the template directory you choose must be
copied to the DocumentRoot of your gallery.
It is possible to include a graphical copyright notice on each picture now.
By setting the GalleryCopyrightImage PerlSetVar you can define the path
to a picture that you want include in the bottom right of each picture.
Feel free to contact me with questions if you have problems setting up
Apache::Gallery. You can write to michael@legart.dk
Make sure you try the latest version of the gallery from
before reporting bugs.
If you are brave you can also download the latest snapshot
from http://svn.apachegallery.dk/snapshots/
If you have problems installing Apache::Gallery, please make
sure to run "make test" to see, what may be the problem.
When reporting bugs please use this page and include the output from make test
in your bugreport:
Apache-Gallery-1.0.2/htdocs/ 0000755 0001750 0001750 00000000000 11573741742 013713 5 ustar mil mil Apache-Gallery-1.0.2/htdocs/video-avi.png 0000644 0001750 0001750 00000010274 11573732716 016311 0 ustar mil mil ‰PNG
IHDR 0 4 Ì“»‘ bKGD ÿ ÿ ÿ ½§“ qIDATxÚÕšklTç™Çç2Wǰc¨
¡&Œ¹†ºIKAU›Dù%ÍF»lÛD‰"íVÚ¤¹©©”~JC‰öCQTÒ‹
I Á!°cÇNlã`ì±Æ·¹xf|ΜË~˜™ÃŒmín¥ô•F3žóúçúÿ?ÏsÀ~Àü&¼jjj®-Z´è7Àv °qËìéé1§¯X,fš¦iF£QóFKÓ4SQsllÌ4MÓ5ÿ/+›>ŸÏ|úé§3J-Ü€x#áÀ4MsÆ…p8Œiš˜¦IQQь뺮£iš¦‹Å¬½·ÝvÛuËÌrî\K×u’É$‰D‚ŽŽ¶lÙP
\¦ cúÿÜP³d2Iaa!š¦Í¸¦iÉdUUQU•d2IYY™µ7£Ì_»4MãÊ•+³zõjŽ;ð5P8g“Wžë°@ 0«bªª211ÁÕ«Wñù|´´´ÐÝÝ͵kר¼y3555,]º”[·âp8$é–•H&“ x½^Ö¯_Ï‘#Gxøá‡¿VeVOÜ0„ü~?•••ZÖ4M“H$B{{;}}}|ñÅ,_¾œºº:,X€®ë$ Z[[9þ<º®óÂ/pÇw`³Ý83ç+ŠÂ©S§hllÄ0DQ¤¯¯ææ3ìÝûoD"‘JÜPþþþÁ†††xã7(**b÷îݬ]»6'æE¡§§»ÝNAAMMM¼öÚküèG?bÇŽx<ž9scj*ÁÉ“Ÿ²mÛ6TUE’$$I¢¥¥…žžyä‘ìœH ¦^¯—D"ÁÐЂ °gÏAàĉ<÷Üs¼ñÆlذžü|ïlÄÔÔÇŽ}Àoû[âñ8¦i¤ƒÊÊJÙ±ã~|ðA€ÕÀe :§jkkyÿý÷9pà >ú(~ø!|ðëÖ£²²’úúzÃàÝwß%âñxáСC,]º”ýû÷£ë:uuuìØ±ƒ½{÷ÒÔÔ„ËåF–嘦‰a˜Üwß}”””‰Çcƒ#„B!"‘ȈW˜F¥É9QèØ±cüå/aß¾}>|˜ãÇÓØØHaa!ÑhÓ4ñûýƒÁtO‹Å(++³<¤ª*^¯—yóæ±yófÞ~ûmžzê)¼^oV>¤´p8ˆ¢È†
…B\¾ü5’$‡9yÒËG}`Ï ¨|#Tg``€††TU¥©©‰{ï½§ÓI,Ãét"óçϧ¨¨ˆX,† „B!^~ùevïÞ¢(LMM‘——G2™dÙ²e¼ùæ›<ñÄx