Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > MISCELLANEOUS > Lounge

Post Reply
 
Thread Tools
  #1  
Old 04-13-2005, 11:39 AM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
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
Reply With Quote
  #2  
Old 04-13-2005, 11:49 AM
Connie
Guest
 
Posts: n/a
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)
Reply With Quote
  #3  
Old 04-13-2005, 01:08 PM
mgb123 Offline
pp regular
 
Join Date: Mar 2005
Posts: 31
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?
Reply With Quote
  #4  
Old 04-13-2005, 01:11 PM
Connie
Guest
 
Posts: n/a
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:
Reply With Quote
  #5  
Old 04-13-2005, 01:13 PM
mgb123 Offline
pp regular
 
Join Date: Mar 2005
Posts: 31
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...
Reply With Quote
  #6  
Old 04-14-2005, 02:11 AM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
thanks
I hope a new admin page
Reply With Quote
  #7  
Old 05-06-2005, 09:28 PM
muji's Avatar
muji Offline
forum loafer
 
Join Date: May 2005
Location: antwerp, belgium
Posts: 4
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 !
Reply With Quote
  #8  
Old 09-08-2005, 08:11 AM
jfk Offline
forum loafer
 
Join Date: Sep 2005
Posts: 7
Post

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");
After
Code:
        } else if( $_POST['autodate'] == 2 ) {
            $datetime = gmdate("Y-m-d H:i:s",time()+(3600 * $tz));
add
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;
And finally, after
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";
Add
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));
               }
It works for me, but YMMV.

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. ;-)
Reply With Quote
  #9  
Old 09-08-2005, 11:05 AM
jfk Offline
forum loafer
 
Join Date: Sep 2005
Posts: 7
Wink EXIF modification available for download (pixelpost 1.4.2 only)

Quote:
Originally Posted by jfk
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...
Come to think of it, it's not a (neat and clean) add-on, it's more a modification. Anyway...

Quote:
Originally Posted by jfk
Still, I can post the updated parts of admin/index.php here:
Better yet, I've put the modification ready-to-download with some HOWTO on my site:

http://cco.xs4all.nl/~jfk/pixelpost-addon/
Reply With Quote
  #10  
Old 09-08-2005, 07:30 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
I'll try that.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:44 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs