Bug 172359 - Set content type and safety level on flickr upload [patch]
Summary: Set content type and safety level on flickr upload [patch]
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Flickr (show other bugs)
Version: 5.6.0
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-07 21:34 UTC by Marcin Kasperski
Modified: 2018-03-23 11:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.7.0


Attachments
Enable safety level and content type (50.54 KB, patch)
2009-07-09 01:25 UTC, Pieter Edelman
Details
Enable safety level and content type (46.85 KB, patch)
2009-09-10 08:39 UTC, Pieter Edelman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Kasperski 2008-10-07 21:34:29 UTC
Version:           0.9.3 (using 3.5.10, Kubuntu (hardy) 4:3.5.10-0ubuntu1~hardy1)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.24-16-generic

Flickr expects people to correctly set photos safety level (safe, moderate, restricted) and content type (photo, screenshot, other graphics). See 3rd point of guidelines:

   http://www.flickr.com/guidelines.gne

Digikam Flickr export does not allow one to set those characteristics, therefore if - say - I use digikam to upload some screenshots, I must go to the flickr web interface and reconfigure those characteristics.

Flickr API handles those:

http://www.flickr.com/services/api/upload.api.html

(see safety_level and content_type)

So, please add those flags to the flickr export dialog.
Comment 1 Marcin Kasperski 2008-10-07 21:36:04 UTC
(see also http://www.flickr.com/help/filters )
Comment 2 Pieter Edelman 2009-07-09 01:25:39 UTC
Created attachment 35173 [details]
Enable safety level and content type

This patch adds the ability to set safety level and content type for all photos or for each photo individually. It depends however on the patch in bug 193685.

To set the status for all photos, there are comboboxes for each option on the Upload options tab. To set it for the individual photos, there are comboboxes next to each photo.
To reduce clutter, these options only become available when an Extended Settings button is pressed on the Upload options tab. If it is turned off, the comboboxes on this tab and the columns in the images list for these options are hidden. Maybe some existing options can be moved here as well.

This patch implements a general delegate to show comboboxes in an ImageList. I don't know if it should be moved to the common/libkipiplugins directory so that other people can benefit as well for their plugins.
Comment 3 caulier.gilles 2009-09-09 16:06:26 UTC
Pieter,

Can you update your patch to work against current implementation from svn.

Thanks in advance...

Gilles Caulier
Comment 4 Pieter Edelman 2009-09-10 08:39:42 UTC
Created attachment 36832 [details]
Enable safety level and content type

Update against SVN.
Comment 5 caulier.gilles 2009-09-10 11:27:50 UTC
SVN commit 1021845 by cgilles:

apply patch from Pieter Edelman abou to add extented Flickr upload properties.
BUGS: 172359


 M  +2 -0      CMakeLists.txt  
 AM            comboboxdelegate.cpp   [License: GPL (v2+)]
 AM            comboboxdelegate.h   [License: GPL (v2+)]
 AM            comboboxintermediate.cpp   [License: GPL (v2+)]
 AM            comboboxintermediate.h   [License: GPL (v2+)]
 M  +12 -3     flickritem.h  
 M  +198 -4    flickrlist.cpp  
 M  +24 -2     flickrlist.h  
 M  +10 -2     flickrtalker.cpp  
 M  +130 -7    flickrwidget.cpp  
 M  +30 -15    flickrwidget.h  
 M  +21 -0     flickrwindow.cpp  
 M  +8 -0      flickrwindow.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1021845
Comment 6 Andi Clemens 2009-09-10 12:37:58 UTC
One small issue I found:
Scaling the dialog down will overlap the widgets in the "Overwrite default options" groupbox.
But I guess this is rather easy to fix :)
Comment 7 caulier.gilles 2009-09-10 12:40:51 UTC
yes, using QScrollview, as in digiKam setup page for ex. Do you want to patch it ?

I'm still very busy at home and in my office. I prepare new session of evening classes as previous year...

Gilles
Comment 8 Pieter Edelman 2009-09-11 20:22:06 UTC
I fixed this along with a bug that displayed only very small thumbnails in SVN, revision 10221411.