Irc-Unix.net

Главная | Actual Topics | Обратная связь | Guest Book | В избранное | Сделать домашней
Категории
 System & Utilities
 Unix News
 OS Emulator
 Developing
 Learning/Education
 Games
 Humour
Каталог статей
Все статьи

Antispam
Статьи
Биллу Гейтсу тоже предлагают избавиться ...
Вымогательство в борьбе со спамом
Календарь

September, 2017
ПнВтСрЧтПтСбВс
123
45678910
11121314151617
18192021222324
252627282930
Опросы
Какой из этих ОС Вы отдаете большее предпочтение?

QNX
FreeBSD
Linux(any)
Solaris
Mac OS
Windows XP
Windows 2003
Что такое ОС? :)


Результаты
Другие опросы

Всего голосов: 325
Комментарии: 0
Ссылки

Архив Новостей
 September 2017 (13)
 August 2017 (13)
 February 2017 (14)
 January 2017 (19)
 December 2016 (16)
 November 2016 (16)
 October 2016 (21)
 September 2016 (18)
 August 2016 (16)
 July 2016 (16)
 June 2016 (20)
 May 2016 (18)
 April 2016 (15)
 March 2016 (22)
 February 2016 (17)
 January 2016 (15)
 December 2015 (15)
 November 2015 (22)
 October 2015 (20)
 September 2015 (17)
 August 2015 (25)
 July 2015 (20)
 June 2015 (23)
 May 2015 (21)
 April 2015 (17)
 March 2015 (19)
 February 2015 (9)
 January 2015 (23)
 December 2014 (9)
 November 2014 (13)
 October 2014 (12)
 September 2014 (18)
 August 2014 (20)
 July 2014 (10)
 June 2014 (12)
 May 2014 (12)
 April 2014 (10)
 March 2014 (22)
 February 2014 (10)
 January 2014 (8)
 December 2013 (26)
 November 2013 (53)
 October 2013 (40)
 September 2013 (48)
 August 2013 (63)
 July 2013 (56)
 June 2013 (52)
 May 2013 (49)
 April 2013 (67)
 March 2013 (74)
 February 2013 (63)
 January 2013 (62)
 December 2012 (62)
 November 2012 (66)
 October 2012 (68)
 September 2012 (48)
 August 2012 (75)
 July 2012 (60)
 June 2012 (71)
 May 2012 (69)
 April 2012 (85)
 March 2012 (86)
 February 2012 (90)
 January 2012 (81)
 December 2011 (103)
 November 2011 (118)
 October 2011 (74)
 September 2011 (2)
 June 2011 (110)
 May 2011 (118)
 April 2011 (111)
 March 2011 (112)
 February 2011 (101)
 January 2011 (119)
 December 2010 (117)
 November 2010 (118)
 October 2010 (131)
 September 2010 (117)
 August 2010 (226)
 July 2010 (351)
 June 2010 (305)
 May 2010 (319)
 April 2010 (343)
 March 2010 (329)
 February 2010 (311)
 January 2010 (312)
 December 2009 (266)
 November 2009 (156)
 July 2009 (101)
 June 2009 (279)
 May 2009 (365)
 April 2009 (348)
 March 2009 (347)
 February 2009 (323)
 January 2009 (318)
 December 2008 (237)
 November 2008 (155)
 October 2008 (334)
 September 2008 (310)
 August 2008 (343)
 July 2008 (362)
 June 2008 (322)
 May 2008 (634)
 April 2008 (1276)
 March 2008 (1658)
 February 2008 (250)
 January 2008 (6)
 November 2007 (1)
 September 2007 (1)
 June 2007 (1)
 May 2007 (1)
 March 2007 (1)
 January 2007 (2)
 December 2006 (1)
 October 2006 (2)
 September 2006 (1)
 August 2006 (2)

Using Digikam and ownCloud to share family pictures

System & Utilities

Soon after my daughter was born, I became increasingly concerned about sharing her pictures in Facebook. I’d usually post one picture of her, and see it quickly reshared by family and friend. Yes, it was flattering, but with privacy concerns growing daily, it left an uneasy feeling.
So, at one time I stopped posting in Facebook (I’m mostly a lurker nowadays) and most important stopped posting family pictures.
I would share some pictures over email, but it’s not easy and you can only share a few pictures each time. I kept looking for a solution that would allow sharing pictures without losing control, and it had to fit my workflow.
I use digikam on MySQL to organize my pictures (btw, upgrade to 2.9, performance is much improved!). I’ll import the pictures from my camera, organize into albums (family, work, vacations, etc), check for color balance, etc. tag faces and rate the ones I like most.
I run an owncloud server I use for the family. And ownCloud has a way to share via a public link, with an expiry date. And I can control access to it, and disable crawlers and other brute force attacks.
In the end, I came up with a solution based on the rating of the pictures. Any picture I tag with 5 stars in Digikam will be copied to a folder which is in turn synced to ownCloud via the ownCloud desktop sync. Then, I can share any album by sending the appropiate link via email. I can share all albums or only specific files if I want to.
The pieces of the solution are:
– Digikam is configured to write metadata to picture files
– A folder is configured in ownCloud desktop sync to sync automatically to an “Albums” folder in my server. That folder is also shared with other members of my family, so they can reshare the same way if they want to
– A script runs each night searching for picture files with 5 stars (using exiftool). It copies the tree structure and file. So you get the same album structure in owncloud as you see in digikam.
I wrote the script in Bash. I tried to do it in Python, but the support libraries to read Exif tags seem to be very limited, and exiftool plus some awk and sed did the job just fine.

#!/bin/bash
IFS=$(echo -en "nb")
cd $1
tree_list=$(find . -type d)
for t in $tree_list
do
file_list=$(exiftool -m -Rating "$t" | awk '/Rating : 5/ { print p} {p = $0 }' | sed s/========// | sed -e 's/^[ t]*//')
if [ -n "$file_list" ]
then
mkdir -p "$2/$t"
for f in $file_list
do
cp -au $f "$2/$t"
done
fi
done

In the future, a filter could be added to the ownCloud desktop sync, who knows?
There are cornercases, like removing a picture and having it removed from ownCloud too. I’ll add that in the future if I ever need it.

A note. I run owncloud 8.0.2. The Pictures app is not performant enough when you have lots of pictures because it tries to fetch data on all pictures before displaying anything. So I had to resort to using Gallery+ app, which works well. It might even replace Pictures as the default app in the future. And I share the links directly from the gallery app. The UI is a lot nicer for someone only interested on checking out the pictures you shared.

gallery





  


Разместил: Planet KDE | Дата: 12.04.2015 | Прочитано: 518 | Раздел: System & Utilities   

Рейтинг статьи

Средняя оценка: 0.00/0Средняя оценка: 0Всего голосов:0

Отлично
Хорошо Нормально Пойдёт Плохо


Смотрите также связанные темы

03.03.2008 digiKam 0.9.4 splashscreens contest : and the winners are...
This week end, the team have voted to choose the splashscreens used with next release. You can seen the pictures below:digiKam 0.9.4: Michel Pottier
15.07.2008 F-Spot - GNOME Photo Management Application
There are several advanced photo management programs that you can use to collect, organize, enjoy, and share all those pictures you have been taking with your digital camera.
06.01.2012 vExpert Spotlight: Jonathan Franconi
vExpert Spotlight: Jonathan Franconi Blog URL: www.virtualizationimpact.com & www.handsonvirtualization.comTwitter handle: @jfranconiCurrent employer: VMware / Professional Services Organization / Technical Consultant   How did you get into IT? I started my life in IT at a very young age, it had to be around early 1992 or 1993 when I remember my father showing me the new IBM mainframe that was purchased for the family business. A few years later I can remember my father bringing home his first laptop, at the time a 30 pound IBM Thinkpad, from that moment on I couldn'...
28.04.2010 VMworld 2010 Registration Now Open
VMworld 2010 Registration Now Open VMworld 2010August 30 – September 2Moscone Center, San Francisco  October 12 – 14Bella Center, Copenhagen  Registration for VMworld 2010  is now open for both San Francisco & Copenhagen!  Register for VMworld 2010 before June 25th and take advantage  of your early bird discount.  VMworld 2010, brought to you  by VMware, gives you unparalleled access to educational opportunities  that will show you how to reduce IT complexity, and enable IT as a  service  through virtualization and cloud com...
01.11.2007 Puffy's Marathon: What's New in OpenBSD 4.2

06.10.2006 Sharing Internet Connections

20.06.2016 [Linux и BSD]: новости, статьи, свежий софт от LinuxRSP.RU #447
+ Вышел RhodeCode 4.1 + Snap-пакеты из Ubuntu теперь работают и в других дистрибутивах + Выпущена Восьмая платформа BaseALT + Состоялся релиз открытой аппаратной платформы icoBoard 1.0 + Релиз компилятора SDCC 3.6.0 + Релиз Qt 5.7.0 и Qt Creator 4.0.2 + Первый релиз Nextcloud, форка ownCloud + Релиз LibreCAD 2.1.0. Команде разработчиков нужна помощь! + До конца года состоится выход российских смартфонов на ОС Sailfish + Программа PyCon Russia 2016 готова + Haskell: GHC 8.0.1 + Доступен i2pd 2.7.0, клиент анонимной сети I2P, написанный на языке C++ + Вышла версия 0.7 beta QMole - порт Linux на ...
07.07.2016 digiKam 5.0.0 is published
This release marks almost complete port of the application to Qt5. All Qt4/KDE4 code has been removed and many parts have been re-written, reviewed, and tested.
07.03.2008 digiKam now support full color themable interface...
If you have already tried pro-software to manage photo as lightroom, aperture, or lightzone, you have certainly seen than the interface support color sheme, generally using dark color...This is now the case for digiKam now. Following intructions from Daniel Bauer from this
09.03.2008 digiKam 0.9.4-beta1 release
Dear all digiKam fans and users!The digiKam development team is happy to release SourceForge as well.NEW FEATURES:General :1. Color theme scheme are pervasively applied in graphical interfaces, giving digiKam a real Pro-look when dark schemes are selected.1a. Color theme scheme can be changed from either Editor or LightTable.2. Updated internal CImg library to last stable 1.2.7 (released at 2008/01/23).
Нет комментариев. Почему бы Вам не оставить свой?
Вы не можете отправить комментарий анонимно, пожалуйста зарегистрируйтесь.
Google Search
Google

Web irc-unix.net

Топ Новостей
1: KDE Community announces fully open source Plasma Mobile
Hot NEWS!
Просмотров - 547


2: Using Digikam and ownCloud to share family pictures
Просмотров - 517

3: Apply agile methodologies to upstream development environments.... if you can.
Просмотров - 492

4: KWallet5 can be auto-unlocked during login again
Просмотров - 479

5: Interview with Laura
Просмотров - 454

6: Use ownCloud provided Packages, then VM, then Zip, no distro packages.
Просмотров - 451

7: Plasma Components on Android: Accelerating Subsurface Mobile Development
Просмотров - 441

8: VMware Workstation 11 and kwin - hangs and hiccups (solved?)
Просмотров - 420

9: debian/rake: Ruby DH Sequencing?
Просмотров - 420

10: Plasma 5 Powers KaOS Productivity
Просмотров - 410

11: KWrite on Mac – Application Bundle
Просмотров - 404

12: One year old: Document Liberation Project
Просмотров - 385

13: FOSDEM Desktops DevRoom 2016 Call for Participation
Просмотров - 383

14: New Year Calligra Words Sprint
Просмотров - 380

15: digiKam 5.0.0-beta2 is released
Просмотров - 378

Google 120X240
Ссылки

Главная | Actual Topics | Статьи | Обратная связь | Guest Book
Генерация: 1.998 сек. и 13 запросов к базе данных за 1.944 сек.
Powered by SLAED CMS © 2005-2007 SLAED. All rights reserved.