Hi,
I test Digikam 5 from Philip Johnsson PPA on ubuntu 16.04 and would like to use the "user shell script" in batch processing but I only succeed to get empty jpg files for the moment. What I would like to do is just to apply two command lines using exiv2 to remove some metadata informations and set modifify the creation date Basically, to remove some metadata i use a command file in exiv2 (first line) and for the date the second command line with each time the filename at the end of each line. exiv2 -m'/media/samsungeco/Urbexpassion/exiv2-cleanup.cmd' exiv2 -Y'-30' -O'+7' -D'-60' ad So, to proceed, I begin to use two differents user shell scripts with one of the command line above in each and I add $INPUT at the end like this for the first tool exiv2 -m'/media/samsungeco/Urbexpassion/exiv2-cleanup.cmd' $INPUT for the second one exiv2 -Y'-30' -O'+7' -D'-60' ad $INPUT But I only get a file with the right name but with a size of 0 byte I tried to escape some special characters with no results. So if somebody here could tell what I missed or what I'm doing wrong, I would really appreciate -- Utilisant le logiciel de courrier d'Opera : http://www.opera.com/mail/ _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
You must write your changes to $OUTPUT file.
Maik On Sonntag, 26. Juni 2016 09:54:50 CEST Photonoxx wrote: > Hi, > > I test Digikam 5 from Philip Johnsson PPA on ubuntu 16.04 and would like > to use the "user shell script" in batch processing but I only succeed to > get empty jpg files for the moment. > > What I would like to do is just to apply two command lines using exiv2 to > remove some metadata informations and set modifify the creation date > > Basically, to remove some metadata i use a command file in exiv2 (first > line) and for the date the second command line with each time the filename > at the end of each line. > > exiv2 -m'/media/samsungeco/Urbexpassion/exiv2-cleanup.cmd' > exiv2 -Y'-30' -O'+7' -D'-60' ad > > So, to proceed, I begin to use two differents user shell scripts with one > of the command line above in each and I add $INPUT at the end like this > > for the first tool > exiv2 -m'/media/samsungeco/Urbexpassion/exiv2-cleanup.cmd' $INPUT > > for the second one > exiv2 -Y'-30' -O'+7' -D'-60' ad $INPUT > > But I only get a file with the right name but with a size of 0 byte > > I tried to escape some special characters with no results. > > So if somebody here could tell what I missed or what I'm doing wrong, I > would really appreciate _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
Maik, Perhaps put this information in tooltip widget from BQM tool settings panel can help end user. Gilles 2016-06-26 10:06 GMT+02:00 Maik Qualmann <[hidden email]>: You must write your changes to $OUTPUT file. _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
In reply to this post by Photonoxx
In this case, if no new image data to be created, the $INPUT file must be
copied to $OUTPUT. cp $INPUT $OUTPUT And performe the EXIF operations then to the $OUTPUT file. Maik On Sonntag, 26. Juni 2016 09:54:50 CEST Photonoxx wrote: > Hi, > > I test Digikam 5 from Philip Johnsson PPA on ubuntu 16.04 and would like > to use the "user shell script" in batch processing but I only succeed to > get empty jpg files for the moment. > > What I would like to do is just to apply two command lines using exiv2 to > remove some metadata informations and set modifify the creation date > > Basically, to remove some metadata i use a command file in exiv2 (first > line) and for the date the second command line with each time the filename > at the end of each line. > > exiv2 -m'/media/samsungeco/Urbexpassion/exiv2-cleanup.cmd' > exiv2 -Y'-30' -O'+7' -D'-60' ad > > So, to proceed, I begin to use two differents user shell scripts with one > of the command line above in each and I add $INPUT at the end like this > > for the first tool > exiv2 -m'/media/samsungeco/Urbexpassion/exiv2-cleanup.cmd' $INPUT > > for the second one > exiv2 -Y'-30' -O'+7' -D'-60' ad $INPUT > > But I only get a file with the right name but with a size of 0 byte > > I tried to escape some special characters with no results. > > So if somebody here could tell what I missed or what I'm doing wrong, I > would really appreciate _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
Hi,
I was stumbling over a similar problem a while ago. So essentially digikam gives two path/filenames to the script and expects the script to only read from $INPUT and in any case create a picture at $OUTPUT. After the script finishes it uses $OUTPUT and discards $INPUT. Correct? A general question about where to get such information: The handbook is of incredible quality and still useful, but highly outdated and the digikam recipes contains good information, but is not a manual and the wiki is an assorted list of tutorials. How is a new and sometimes also a not so new user supposed to get recent information about how things work i.e. are to be used? Is it the tooltips? I do not mean to criticise, you do an incredible job on the code (which is so huge that I unfortunately failed to contribute) and your time is well invested there. I would just like to know what the "official" take on digikam's documentation is. Cheers, Simon On 26/06/16 10:16, Maik Qualmann wrote: > In this case, if no new image data to be created, the $INPUT file must be > copied to $OUTPUT. > > cp $INPUT $OUTPUT > > And performe the EXIF operations then to the $OUTPUT file. > > Maik > > On Sonntag, 26. Juni 2016 09:54:50 CEST Photonoxx wrote: >> Hi, >> >> I test Digikam 5 from Philip Johnsson PPA on ubuntu 16.04 and would like >> to use the "user shell script" in batch processing but I only succeed to >> get empty jpg files for the moment. >> >> What I would like to do is just to apply two command lines using exiv2 to >> remove some metadata informations and set modifify the creation date >> >> Basically, to remove some metadata i use a command file in exiv2 (first >> line) and for the date the second command line with each time the filename >> at the end of each line. >> >> exiv2 -m'/media/samsungeco/Urbexpassion/exiv2-cleanup.cmd' >> exiv2 -Y'-30' -O'+7' -D'-60' ad >> >> So, to proceed, I begin to use two differents user shell scripts with one >> of the command line above in each and I add $INPUT at the end like this >> >> for the first tool >> exiv2 -m'/media/samsungeco/Urbexpassion/exiv2-cleanup.cmd' $INPUT >> >> for the second one >> exiv2 -Y'-30' -O'+7' -D'-60' ad $INPUT >> >> But I only get a file with the right name but with a size of 0 byte >> >> I tried to escape some special characters with no results. >> >> So if somebody here could tell what I missed or what I'm doing wrong, I >> would really appreciate > > _______________________________________________ > Digikam-users mailing list > [hidden email] > https://mail.kde.org/mailman/listinfo/digikam-users _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
Free forum by Nabble | Edit this page |