Announcement

#1 2011-06-13 09:57:39

broadstairs
Member
2011-05-28
11

Rotation of images does not work when exported from digikam

I have found that when I export images from digikam/kipi-plugins (version 1.9.0 of both) to Piwigo they do not rotate, however when I upload from the option on the webpage the same image does rotate correctly. At this point I dont know whether Piwigo should be doing the rotate or if it should be rotated by the kipi-plugin prior to upload? Piwigo is the latest 2.2.3.

Stuart

Offline

 

#2 2011-06-13 10:04:30

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Rotation of images does not work when exported from digikam

With Digikam (or any sotfware using kipi-plugins) the photo is rotated before upload, by the kipi-plugin and not by Piwigo itself. Does the problem occurs for all photos or only a few photos?

Offline

 

#3 2011-06-13 10:41:10

broadstairs
Member
2011-05-28
11

Re: Rotation of images does not work when exported from digikam

Well it is seems to happen to all photos which I have tried and should be rotated. They are rotated when displayed in Digikam so it knows about the orientation tag OK. I'll report it on the kipi-plugins mailing list.

Is there a way to get Piwigo to rotate them once uploaded?

Stuart

Offline

 

#4 2011-06-14 14:25:45

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Rotation of images does not work when exported from digikam

broadstairs wrote:

Is there a way to get Piwigo to rotate them once uploaded?

No, not yet.

Offline

 

#5 2011-06-15 15:15:01

sbyke
Member
2011-02-26
13

Re: Rotation of images does not work when exported from digikam

I have the same problem.  Ploader 1.6.0 and 2.07c both fail to rotate images, digikam (both the 1.9.0 that comes with ubuntu 11.04 and 2.0 beta 6) fail to rotate images.

However if I use the piwigo admin web interface the photos come up correctly rotated.

Ploader was especially weird because as soon as I drag a photo in it displays a thumbnail incorrectly rotated *AND* says that it's rotating:

$ ploader
Rotate 270
Rotate 90
Rotate 90
Rotate 270
Rotate 270
Rotate 270

I do have php5-imagick installed and piwigo -> admin -> add -> settings does show a "High definition" section. 

I do have the iptc tag tweak:

  $conf['use_iptc'] = true;

  $conf['use_iptc_mapping'] = array(
  'keywords'        => '2#025',
  );

I tried setting "$conf['upload_form_automatic_rotation'] = true;" without any help.

Anyone have suggestions for fixing either ploader, digikam, or piwigo so the photos are properly rotated?

I'm open to other ways to do bulk uploads,  ideally while preserving the IPTC tags.   My goal is to tag and select which photos to publish client side, and upload (or synchronize) a subset of those photos for publishing to piwigo.   Smart folders are working quite well BTW, it's great being able to tag then client side and have the files automatically appear in one more more albums.

Offline

 

#6 2011-06-15 15:28:05

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Rotation of images does not work when exported from digikam

Hi sbyke,

When a photo is uploaded by Digikam or pLoader, they use the Piwigo web API method pwg.images.add and Piwigo doesn't perform any resize or rotation.

Please give a try to Shotwell, they use pwg.images.addSimple which let Piwigo perform resize/rotate.

Offline

 

#7 2011-06-15 15:53:59

sbyke
Member
2011-02-26
13

Re: Rotation of images does not work when exported from digikam

Ah, shotwell does work.  Unfortunately it can't see a significant fraction of my images because it (at least the one in 11.04) doesn't handle raw.

Are there any command line uploaders/synchronization methods?  Maybe something that looks for a 5 star rating, or a tag called publish or the like.  That way people could use any tool that handles IPTC and be able to upload/synchronize whichever fraction of their photo collection to piwigo.

Offline

 

#8 2011-06-15 16:03:39

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Rotation of images does not work when exported from digikam

In Piwigo, you can find a script called tools/piwigo_remote.pl, this is a Perl command line tool. It was not designed for "real use" but as a "proof of concept". I could add the support of pwg.images.addSimple method, but you would still have to know the numeric identifier of the destination album.

Offline

 

#9 2011-06-15 16:31:15

sbyke
Member
2011-02-26
13

Re: Rotation of images does not work when exported from digikam

Ah, interesting.   I don't know PHP at all, but I'm pretty familiar with perl.  If you add pwg.images.addSimple support I can add the support for synchronization off all files with a given IPTC tag.

Rats, looks like iptc tags are incompatible with raw files, hrm.

Offline

 

#10 2011-06-15 16:38:55

sbyke
Member
2011-02-26
13

Re: Rotation of images does not work when exported from digikam

Oh, btw, knowing the "numeric identifier of the destination album" wouldn't be to big a deal.  As long as tagging and smart albums work the upload tool just needs to point to a single album.  Then the user can use dates/tags to control where images land.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact