|
Hi,
attached is the script which I am presently using to create a down-sized copy of all images under control of digikam. It is written in python and only uses the directory structure and needs `convert` and `identify` from imagemagick. There are a couple of open problems and glitches, see the comments in the code - use at your own risk. Best, Arnd P.S.: I'd guess that the next step would be to determine differences between two digikam3.db and update the one on the main computer for all new tags etc. and file-by-file. (For this I will have to learn a bit about sqlite, the digikam sqlite database and possibly pysqlite to steer all that from python ...) _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
|
Dnia sobota, 17 czerwca 2006 23:03, Arnd Baecker napisał:
> Hi, > > attached is the script which I am presently using > to create a down-sized copy of all images under control of digikam. > It is written in python and only uses the directory structure > and needs `convert` and `identify` from imagemagick. > There are a couple of open problems and glitches, > see the comments in the code - use at your own risk. Hello, I don't read Python well but I see that you put much effort to check image size. You don't need to do that. Just mogrify -resize "1024>x768>" image.jpg Operation will be performed only when image size is bigger. Be careful with quoting. m. _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
|
Hi Mikolaj,
On Sun, 18 Jun 2006, Mikolaj Machowski wrote: [...] > I don't read Python well but I see that you put much effort to check > image size. You don't need to do that. Just > > mogrify -resize "1024>x768>" image.jpg > > Operation will be performed only when image size is bigger. > > Be careful with quoting. This is very nice!! This will shorten the code considerably. Many thanks, Arnd _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
|
Dnia niedziela, 18 czerwca 2006 23:06, Arnd Baecker napisał:
> Hi Mikolaj, > > On Sun, 18 Jun 2006, Mikolaj Machowski wrote: > > [...] > > > I don't read Python well but I see that you put much effort to check > > image size. You don't need to do that. Just > > > > mogrify -resize "1024>x768>" image.jpg > > > > Operation will be performed only when image size is bigger. > > > > Be careful with quoting. > > This is very nice!! This will shorten the code considerably. I forgot to explain why quoting is important - if you miss something '>' will be treated as redirection and you end will all images 0 byte size :) BTDT :( m. -- "Statistics are like bikinis. What they reveal is suggestive, but what they conceal is vital" - Aaron Levenstein _______________________________________________ Digikam-users mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-users |
| Free forum by Nabble | Edit this page |
