Re: just my 2 cents
Claudio Piciarelli <[email protected]> Sat, 6 Sep 2003 20:23:47 +0200
| Newsgroups | gmane.comp.web.cthumb.devel |
|---|---|
| Message-ID | <[email protected]> |
Christian Maegaard ha scritto:
[...]
> >But these are quite useless, if a user specifies InsertExif he wants info about
> >the camera settings and so on, not info about the file.
> I always use the InsertExif with the UseMogrify option (requires
> ImageMagick to be installed). Using that option, the exif data will be
> preserved even in the scaled down versions. As you point out later,
that's cool, thank you for the advice ;)
>>* about the time displayed with DisplayFileDate. If the InsertExif option is
>>used, cthumb displays the time and date taken from the exif info, otherwise
>>it uses the mtime of the file. Personally I don't like this, the exif time
>>and the file time are two totally different concepts, so they sholudn't be
>>confused. For example if I rotate a picture with jpegtran (great tool!) the
>>file time changes, but the exif time doesn't. It would be nice if the user
>>could choose if the displayed time is the one taken from the file info or
>>from the exif info. In the second case, it should be displayed the exif
>>time even if the user specifies InsertExif=0 ("I don't want full exif
>>informations, but I want the exif time"... this isn't possible with the
>>current version of cthumb).
> Certainly a nice to have to differentiate between exif time and file
> time. When browsing a photo album though, I would personally always
> prefer the time of the photo (.i.e. the exif time).
I prefer it too, and this is what I was talking about (I'm sorry if
it wasn't too clear). I would like to have the exif time even if I
don't want the full exif info. This is because exif infos are
generally only relevant to me, not to other people who just want to
look at the photo album. They are only interested in the photo (exif)
time.
Cthumb could always get the time&date using jhead (if the picture
doesn't have an exif header, jhead returns the file time&date, so
it isn't a problem if the exif info are not present).
This way, InsertExif=1 should only switch on/off the display of FULL
exif informations.
>>I now use this layout, from top to bottom:
>>-prev/up/next arrows (without album title)
>>-the picture
>>-the different resolutions links
>>-picture caption
>>-picture date and time
>>-story
>>-exif info
>>
> This feature would be fantastic. I have wished for that for a long time,
> but never got around to do it myself. Did you already implement this in
> cthumb? If so, maybe you could send the patch to Carlos.
yes, it's quite simple to do since we just want to move down few
html lines. Here it is the patch for cthumb 4.2 (see attachment).
--
`cat ~/.mutt/signature`
NO ai brevetti sul software nella UE
http://swpat.ffii.org
cthumb.diff
(text/plain, 2.9 KB)
--- cthumb.orig Sat Sep 6 19:55:57 2003
+++ cthumb Sat Sep 6 20:07:51 2003
@@ -1105,11 +1105,6 @@
$str .= "<center>\n";
- # Display timestamps, if desired.
- if ($originalPictureTimestamp ne "" && $DisplayFileDate != 0) {
- $str .= "$originalPictureTimestamp<br>\n";
- }
-
# Render the navigation controls, "previous", "album index",and
# "next" evenly distributed across the top of the picture.
$str .= "<table cellspacing=\"0\" cellpadding=\"4\" border=\"0\" ";
@@ -1133,14 +1128,15 @@
else {
$str .= "<a href=\"" . relative_path($url, $albumURL) . "\">";
}
- $str .= "<img src=\"" . relative_path($url, "$themePrefix/$backarrow") . "\" border=\"0\" alt=\"Index\" align=\"middle\"></a><br><br>\n";
+ $str .= "<img src=\"" . relative_path($url, "$themePrefix/$backarrow") . "\" border=\"0\" alt=\"Index\" align=\"middle\"></a>\n";
+ } else {
+ $str .= "<a href=\"" . relative_path($url, $albumURL) . "\">";
+ $str .= "<font face=\"$TitleFont\" size=\"$TitleFontSize\" ";
+ $str .= "color=\"$TextColor\"><b>";
+ $str .= "$albumTitle";
+ $str .= "</b></font>";
+ $str .= "</a>\n";
}
- $str .= "<a href=\"" . relative_path($url, $albumURL) . "\">";
- $str .= "<font face=\"$TitleFont\" size=\"$TitleFontSize\" ";
- $str .= "color=\"$TextColor\"><b>";
- $str .= "$albumTitle";
- $str .= "</b></font>";
- $str .= "</a>\n";
$str .= "</td>\n";
$str .= "<td align=\"right\" width =\"15%\">";
@@ -1197,19 +1193,6 @@
$str .= "</font></form>\n";
$str .= "<br>\n";
}
- # Generate the themed title.
- $str .= "<p><font face=\"$TitleFont\" size=\"$TitleFontSize\" ";
- $str .= "color=\"$TextColor\"><b>";
- $str .= $pictureTitle;
- $str .= "</b></font></p>\n";
-
- # Generate the story.
- if ($StoryOn == 1 && $pictureStory ne "") {
- $str .= "<p><font face=\"$StoryFont\" size=\"$StoryFontSize\" ";
- $str .= "color=\"$StoryFontColor\">";
- $str .= $pictureStory;
- $str .= "</font></p>\n";
- }
# Render the image directly under the navigation controls.
$str .= "<img src=\"";
@@ -1231,6 +1214,26 @@
$str .= "\"><br>\n\n";
$str .= $geometryLink;
+
+ # Generate the themed title.
+ $str .= "<p><font face=\"$TitleFont\" size=\"$TitleFontSize\" ";
+ $str .= "color=\"$TextColor\"><b>";
+ $str .= $pictureTitle;
+ $str .= "</b></font></p>\n";
+
+ # Display timestamps, if desired.
+ if ($originalPictureTimestamp ne "" && $DisplayFileDate != 0) {
+ $str .= "$originalPictureTimestamp<br>\n";
+ }
+
+ # Generate the story.
+ if ($StoryOn == 1 && $pictureStory ne "") {
+ $str .= "<p><font face=\"$StoryFont\" size=\"$StoryFontSize\" ";
+ $str .= "color=\"$StoryFontColor\">";
+ $str .= $pictureStory;
+ $str .= "</font></p>\n";
+ }
+
$str .= "</center>\n";
if ($InsertExif == 1){