|
#1
|
|||
|
|||
|
EXIF date
Hello
new version is good working! and I just want a new function for ' Date and Time for the entry' can I use a EXIF information use Date and Time for the entry? please add a check box thanks |
|
#2
|
|||
|
|||
|
Hello!
So when uploading the EXIF-Date should be taken as the publishing-date? Thanks for the suggestion, we should it take it on our list of possible new features! 8) |
|
#3
|
|||
|
|||
|
Maybe a shot date, and a published date?
Connie,
It does sound like a cool feature. It's not that it should take the place of the published date, but rather that it might be a good addition? |
|
#4
|
|||
|
|||
|
I think so too, it could be the 4th option for uploading:
. post now . post one day later . post at special date . use exif date it's on the whishlist :lol: |
|
#5
|
|||
|
|||
|
Wow, i wouldn't have thought of doing it that way...that's a great idea.
It would be cool if in the admin options, you could set a default, and that would be checked off automatically, but you could still see the other options there as well... |
|
#6
|
|||
|
|||
|
thanks
I hope a new admin page
|
|
#7
|
||||
|
||||
|
a really usefull feature
the way Connie describes it i had in mind too.
i had a poke around in the code last night, but could not get the exif data at the moment the admin page is loaded. the exif data only gets read out at the time the image is dipslayed in the front-end. the feature would be very usefull for keeping a slower pace in uploading the images. now all the images get the same upload date, but i would like to 'post' them to the day (moment) they where taken. i used to do the main part of my job coding php, so i could maybe write an addon for this. i have very few spare time, so if somebody can explain how i get the exif functions started in admin/index.php ... one could implement this in around line 390 in admin/index.php : Code:
} else if( $_POST['autodate'] == 2 ) {
$datetime = gmdate("Y-m-d H:i:s",time()+(3600 * $tz));
}
// ADD ANOTHER OPTION
} else if( $_POST['autodate'] == 3 ) {
// $datetime = NEED EXIF VAR HERE
}
hope i can soon use pixelpost this way ! |
|
#8
|
|||
|
|||
|
Incidentally, this was JUST the feature I was missing when I first tried pixelpost 1.4.2. So I hacked my own. It's probably not the most neat solution, but it works. Don't know how I can submit it as an add-on, however, so if anyone can point me in the right direction...
Still, I can post the updated parts of admin/index.php here: Somewhere in the top, near other "require"s, add: Code:
require("../includes/exifer1_5/exif.php");
Code:
} else if( $_POST['autodate'] == 2 ) {
$datetime = gmdate("Y-m-d H:i:s",time()+(3600 * $tz));
Code:
} else if( $_POST['autodate'] == 3 ) { // New, JFK: post date from EXIF
// delay action to later point. We don't know the filename yet...
// just set a flag so we know what to do later on
$postdatefromexif = 1;
Code:
if(move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
chmod($uploadfile, 0644);
$result = check_upload($_FILES['userfile']['error']);
$filnamn =strtolower($_FILES['userfile']['name']);
$filnamn = $time_stamp_r .$filnamn;
$filtyp = $_FILES['userfile']['type'];
$filstorlek = $_FILES['userfile']['size'];
$status = "ok";
Code:
// JFK: date from exif. We now know the path + filename.
if($postdatefromexif == 1) {
$exif_result = read_exif_data_raw($uploadfile,"0");
$exposuredatetime = $exif_result['SubIFD']['DateTimeOriginal'];
list($exifyear,$exifmonth,$exifday,$exifhour,$exifmin, $exifsec
) = split('[: ]', $exposuredatetime);
$datetime = date("Y-m-d H:i:s", mktime($exifhour, $exifmin, $ex
ifsec, $exifmonth, $exifday, $exifyear));
}
![]() And still, it would be easier if I could just submit the entire admin/index.php file as an add-on. Let me know how I can do that. Additionally, if someone can come up with a "post date == exif date" function for the copy_folder add-on, so that I can convert my current photo(b)log to pixelpost, that would be much appreciated. ;-) |
|
#9
|
|||
|
|||
|
Quote:
Quote:
http://cco.xs4all.nl/~jfk/pixelpost-addon/ |
|
#10
|
||||
|
||||
|
I'll try that.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
| Post Reply |
| Thread Tools | |
|
|