[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS Update: gleipnir
- To: cvs@lists.cleannorth.org
- Subject: CVS Update: gleipnir
- From: Dan Brosemer <odin@cleannorth.org>
- Date: Sun, 17 Aug 2008 13:45:07 -0400 (EDT)
- List-help: <mailto:cvs-request@lists.cleannorth.org?subject=help>
- List-post: <mailto:cvs@lists.cleannorth.org>
- List-subscribe: <mailto:cvs-request@lists.cleannorth.org?subject=subscribe>
- List-unsubscribe: <mailto:cvs-request@lists.cleannorth.org?subject=unsubscribe>
- Resent-date: Sun, 17 Aug 2008 13:45:10 -0400 (EDT)
- Resent-from: cvs@lists.cleannorth.org
- Resent-message-id: <94DrE.A.g4.8OGqIB@skroob.cleannorth.org>
- Resent-sender: cvs-request@lists.cleannorth.org
Log Message:
-----------
Change watermark behavior to be visible even on big photos.
Modified Files:
--------------
gleipnir/public_html/gallery:
upload.pl
Revision Data
-------------
Index: upload.pl
===================================================================
RCS file: /cvs/gleipnir/public_html/gallery/upload.pl,v
retrieving revision 1.12
retrieving revision 1.13
diff -Lpublic_html/gallery/upload.pl -Lpublic_html/gallery/upload.pl -u -r1.12 -r1.13
--- public_html/gallery/upload.pl
+++ public_html/gallery/upload.pl
@@ -199,7 +199,8 @@
};
};
$iw->alphaBlending(1);
- $image->copy($iw, $image->width-$iw->width-$gleipnir->cfetch(images=>'wmpad'), $image->height-$iw->height-$gleipnir->cfetch(images=>'wmpad'), 0, 0, $iw->width, $iw->height);
+ my $wmheight = $image->width/8/$iw->width*$iw->height;
+ $image->copyResampled($iw, $image->width-($image->width/8)-$gleipnir->cfetch(images=>'wmpad'), $image->height-$wmheight-$gleipnir->cfetch(images=>'wmpad'), 0, 0, $image->width/8, $wmheight, $iw->width, $iw->height);
};
# Grab the image.
- Prev by Date: CVS Update: svartalfheim.net
- Next by Date: CVS Update: gleipnir
- Previous by thread: CVS Update: gleipnir
- Next by thread: CVS Update: gleipnir
- Index(es):