A Suggestion

eltche

Joined: 2006-03-14
Posts: 19
Posted: Tue, 2006-05-23 22:33

Hi !

To upload (by ftp (temp dir)) the images :
I would like to remove the steps where we must choose the good dir to put the image. What I'd like to do, it is to recover the category's fields IPTC . I browse all the different folder (dir) to compare their name with the category's fields and finaly i copy the image in the good dir !
So i think that it's possible to do that, but i don't know how ? Please first give me your opinion and if you know the gallery's source code, so help me to do it !
Thanks

 
eltche

Joined: 2006-03-14
Posts: 19
Posted: Mon, 2006-05-29 08:48

please, tell me how to do ?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2006-05-30 15:49

you can use GalleryCoreApi::newFactoryInstance to get an instance of ExifInterface_1_0. This will let you retrieve IPTC data. No idea what you're asking about "choose the good dir". I suggest making your own module that registers an ItemAddPlugin to add files the way you want (this will give you a new tab under "add items").