Apache-Gallery

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

	- Added two new configuration options GalleryDocFile and
	  GalleryImgFile that makes it possible to configured which
	  filetypes should be displayed. See the documentation for
	  details. (Guillaume Rousse)
	- Added new option GalleryThumbnailSizeLS. If set to 1,
	  GalleryThumbnailSize is the long and the short side
	  of the thumbnail image instead of the width and height.
	  (Don Armstrong)
	- Switched to use Text::Template instead of CGI::FastTemplate,
	  see the UPGRADE file for details. (Don Armstrong)
	- Create copyright notices on pictures using truetype fonts
    instead of png images. Font, color and size can be configured
    (Thomas Petersen, Michael Legart)

0.7 Mon Sep  8 22:30:35 CEST 2003

	- Support mod_perl version 1 and 2 (1.99) (Michael Legart)	
	- Send status code 500 on errors, 404 on file not found and
	  make IE show our own errorpage. (Thomas L. Kjeldsen)
	- Bugfix for directories named "0" (Andreas Plesner Jacobsen)
	- Added "selection mode". Select images with checkboxes and

README  view on Meta::CPAN

        Pattern matching the files you want Apache::Gallery to view in the
        index as normal files. All other filetypes will still be served by
        Apache::Gallery but are not visible in the index.

        The default is
        '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|pdf|rtf|wav|dlt|txt|html?|csv|
        eps)$'

    GalleryTTFDir
        To use the GalleryCopyrightText feature you must set this option to
        the directory where your True Type fonts are stored. No default is
        set.

        Example:

                PerlSetVar      GalleryTTFDir '/usr/share/fonts/'

    GalleryTTFFile
        To use the GalleryCopyrightText feature this option must be set to
        the name of the True Type font you wish to use. Example:

                PerlSetVar      GalleryTTFFile 'verdanab.ttf'

    GalleryTTFSize
        Configure the size of the CopyrightText that will be inserted as
        copyright notice in the corner of your pictures.

        Example:

                PerlSetVar      GalleryTTFSize '10'

lib/Apache/Gallery.pm  view on Meta::CPAN


			log_error("GalleryCopyrightText is empty. No text inserted to picture\n");

		} elsif (!-e "$GalleryTTFDir/$GalleryTTFFile") {

			log_error("GalleryTTFFile $GalleryTTFFile was not found\n");

		} else {
 
			$GalleryTTFFile =~ s/\.TTF$//i;
			$image->add_font_path("$GalleryTTFDir");

			$image->load_font("$GalleryTTFFile/$GalleryTTFSize");
			my($text_x, $text_y) = $image->get_text_size("$GalleryCopyrightText");
			my $x = $image->get_width();
			my $y = $image->get_height();

			my $offset = 3;

			if (($text_x < $x - $offset) && ($text_y < $y - $offset)) {
				if ($GalleryCopyrightBackgroundColor =~ /^\d+,\d+,\d+,\d+$/) {
					my ($br_val, $bg_val, $bb_val, $ba_val) = split (/,/, $GalleryCopyrightBackgroundColor);
					$image->set_colour($br_val, $bg_val, $bb_val, $ba_val);

lib/Apache/Gallery.pm  view on Meta::CPAN


Pattern matching the files you want Apache::Gallery to view in the index
as normal files. All other filetypes will still be served by Apache::Gallery
but are not visible in the index.

The default is '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|pdf|rtf|wav|dlt|txt|html?|csv|eps)$'

=item B<GalleryTTFDir>

To use the GalleryCopyrightText feature you must set this option to the
directory where your True Type fonts are stored. No default is set.

Example:

	PerlSetVar      GalleryTTFDir '/usr/share/fonts/'

=item B<GalleryTTFFile>

To use the GalleryCopyrightText feature this option must be set to the
name of the True Type font you wish to use. Example:

	PerlSetVar      GalleryTTFFile 'verdanab.ttf'

=item B<GalleryTTFSize>

Configure the size of the CopyrightText that will be inserted as 
copyright notice in the corner of your pictures.

Example:

templates/bright/gallery.css  view on Meta::CPAN

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;

templates/bright/gallery.css  view on Meta::CPAN

}
.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;

templates/bright/gallery.css  view on Meta::CPAN

	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;

templates/default/gallery.css  view on Meta::CPAN

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;

templates/default/gallery.css  view on Meta::CPAN

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;
}

templates/new/gallery.css  view on Meta::CPAN

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;



( run in 1.472 second using v1.01-cache-2.11-cpan-5735350b133 )