PDA

View Full Version : Add all unused photos


toast_dk
4th of July 2002 (Thu), 05:43
Is it at all possible to have EE import the timestamps from the thumbs and use those for 'date' and 'time' when using 'add all unused photos'?

If so, how? If not, WHY not?? ;)

It would be cool to have the option "use thumb's timestamp" in the "Exhibition Photodata Defaults" screen.

And another thing - not really that important - couldnt 'orientation' be read automatically??


/Steffen

PS: I'm still SO damned impressed with EE!!! GJ!

Pekka
4th of July 2002 (Thu), 09:07
toast_dk wrote:
Is it at all possible to have EE import the timestamps from the thumbs and use those for 'date' and 'time' when using 'add all unused photos'?

If so, how? If not, WHY not?? ;)

It would be cool to have the option "use thumb's timestamp" in the "Exhibition Photodata Defaults" screen.



function http://www.php.net/manual/en/function.filemtime.php can do it, but as I think it: the time in database should not be the day you save the file, but the day when you shot the photo.

And another thing - not really that important - couldnt 'orientation' be read automatically??

I could, but it would slow down importing a bit. But as I would like to have a custom "not found" image anyways on photo editor, why not add orientation detection as well (comes from same function, for "free" ). I'll let you know soon if this feature will appear in next version.

PS: I'm still SO damned impressed with EE!!! GJ!

I'm impressed I could ever learn to code anything :)

PS. I just coded something useful to next version: no more shutter speed + shutter unit! You just enter shutter speed normally like it is:
1/200
1s
.3s
also 1:200 is "approved"

EE takes care of putting it to "correct form" internally.

Pekka
4th of July 2002 (Thu), 09:27
I have now coded it.

In photo editor, orientation info (horizontal, vertical,square) is now automatically fetched from thumbnail. This can be set on or off in settings (in case someone wants square thumbs, or the small delay to get file info disturbs too much).

(Note that when a new image is created the orientation is fetched while editor page opens, which means you have to save the data to get orientation saved).

pigasus
4th of July 2002 (Thu), 10:04
Pekka wrote:
PS. I just coded something useful to next version: no more shutter speed + shutter unit! You just enter shutter speed normally like it is:
1/200
1s
.3s
also 1:200 is "approved"

EE takes care of putting it to "correct form" internally.


If the database entry changes as well, will the upgrade convert our data from the old style to the new?

Sally

Pekka
4th of July 2002 (Thu), 11:31
pigasus wrote:
Pekka wrote:
PS. I just coded something useful to next version: no more shutter speed + shutter unit! You just enter shutter speed normally like it is:
1/200
1s
.3s
also 1:200 is "approved"

EE takes care of putting it to "correct form" internally.


If the database entry changes as well, will the upgrade convert our data from the old style to the new?

Sally

The database entry does not change.

toast_dk
4th of July 2002 (Thu), 16:31
Pekka wrote:
I have now coded it.

OK - now I'm damned impressed with you too! :) Thats FAST!

/Steffen