Rotating TIFF in album View does not work

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Rotating TIFF in album View does not work

Bugzilla from guenther.erhard@gmx.de
Hi,


I'm using digikam 0.10.0 (rev.: 926179) from svn.


I could rotate Tiff images with 0.9.5 without any problems. In 0.10 I get an error message: "Failed to rotate image". Is this bug already known?


The command line shows following log:
...
digikam(6375)/digikam (core) Digikam::CollectionManager::locationForPath: Testing location 1 "/home/ablage/Grafiken/Digicam/test/Bild011.tif" "/home/ablage/Grafiken/Digicam"

digikam(6375)/KIPI (general) KIPIJPEGLossLessPlugin::ImageRotate::rotateImageMagick: ImageMagick Command line: ("convert", "-verbose", "-rotate", "270", "/home/ablage/Grafiken/Digicam/test/Bild011.tif[0]", "/tmp/kde-guenni/digikamTJ6375kipiplugin-rotate")

TIFF Directory at offset 0x8 (8)

Image Width: 5606 Image Length: 3745

Resolution: 4000, 4000 pixels/inch

Bits/Sample: 16

Compression Scheme: None

Photometric Interpretation: RGB color

Orientation: row 0 top, col 0 lhs

Samples/Pixel: 3

Rows/Strip: 1

Planar Configuration: single image plane

Tag 11: digiKam-0.9.5-beta2

Make: Nikon

Model: Nikon SUPER COOLSCAN 5000 ED

Software: Nikon Scan 4.0.0 W

DateTime: 2008:02:05 16:49:45

Tag 18246: 0

Tag 18249: 0

RichTIFFIPTC Data: <present>, 160 bytes

EXIFIFDOffset: 1072

ICC Profile: <present>, 492 bytes

digikam(6375)/digikam (core) Digikam::DImg::load: "/home/ablage/Grafiken/Digicam/test/Bild011.tif" : TIFF file identified

timeChanged

...


Using the editor to rotate the same image works flawlessly.


Regards,

Guenther



_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Rotating TIFF in album View does not work

Gilles Caulier-4
With this tool (a kipi-plugin), Image Magick is used in background.
Command line with options is given below :

"convert", "-verbose", "-rotate", "270",
"/home/ablage/Grafiken/Digicam/test/Bild011.tif[0]",
"/tmp/kde-guenni/digikamTJ6375kipiplugin-rotate")

I remember a problem with "-verbose" option of "convert" program and
tiff file. Try to reproduce on command line without this option to see
if tiff file can be rotated.

Gilles Caulier

2009/2/20 Günther Erhard <[hidden email]>:

> Hi,
>
> I'm using digikam 0.10.0 (rev.: 926179) from svn.
>
> I could rotate Tiff images with 0.9.5 without any problems. In 0.10 I get an
> error message: "Failed to rotate image". Is this bug already known?
>
> The command line shows following log:
> ...
> digikam(6375)/digikam (core) Digikam::CollectionManager::locationForPath:
> Testing location 1 "/home/ablage/Grafiken/Digicam/test/Bild011.tif"
> "/home/ablage/Grafiken/Digicam"
>
> digikam(6375)/KIPI (general)
> KIPIJPEGLossLessPlugin::ImageRotate::rotateImageMagick: ImageMagick Command
> line: ("convert", "-verbose", "-rotate", "270",
> "/home/ablage/Grafiken/Digicam/test/Bild011.tif[0]",
> "/tmp/kde-guenni/digikamTJ6375kipiplugin-rotate")
>
> TIFF Directory at offset 0x8 (8)
>
> Image Width: 5606 Image Length: 3745
>
> Resolution: 4000, 4000 pixels/inch
>
> Bits/Sample: 16
>
> Compression Scheme: None
>
> Photometric Interpretation: RGB color
>
> Orientation: row 0 top, col 0 lhs
>
> Samples/Pixel: 3
>
> Rows/Strip: 1
>
> Planar Configuration: single image plane
>
> Tag 11: digiKam-0.9.5-beta2
>
> Make: Nikon
>
> Model: Nikon SUPER COOLSCAN 5000 ED
>
> Software: Nikon Scan 4.0.0 W
>
> DateTime: 2008:02:05 16:49:45
>
> Tag 18246: 0
>
> Tag 18249: 0
>
> RichTIFFIPTC Data: <present>, 160 bytes
>
> EXIFIFDOffset: 1072
>
> ICC Profile: <present>, 492 bytes
>
> digikam(6375)/digikam (core) Digikam::DImg::load:
> "/home/ablage/Grafiken/Digicam/test/Bild011.tif" : TIFF file identified
>
> timeChanged
>
> ...
>
> Using the editor to rotate the same image works flawlessly.
>
> Regards,
>
> Guenther
>
> _______________________________________________
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Rotating TIFF in album View does not work

Bugzilla from guenther.erhard@gmx.de
Salut Gilles,


> I remember a problem with "-verbose" option of "convert" program and
> tiff file. Try to reproduce on command line without this option to
> see if tiff file can be rotated.
>
Yes you are right!
Without "-verbose"the image is rotated and I got following log:


convert /home/ablage/Grafiken/Digicam/test/Bild011.tif -rotate 270 /home/ablage/Grafiken/Digicam/test/Bild011-rotated.tif

convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectory'.

convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with tag 11 (0xb) encountered. `TIFFReadDirectory'.

convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with tag 18246 (0x4746) encountered. `TIFFReadDirectory'.

convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with tag 18249 (0x4749) encountered. `TIFFReadDirectory'.

convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with tag 40961 (0xa001) encountered. `TIFFReadCustomDirectory'.

convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: invalid TIFF directory; tags are not sorted in ascending order. `TIFFReadDirectory'.

convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with tag 11 (0xb) encountered. `TIFFReadDirectory'.

convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with tag 18246 (0x4746) encountered. `TIFFReadDirectory'.

convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with tag 18249 (0x4749) encountered. `TIFFReadDirectory'.


With "-verbose" convert stalls with a memory error:


convert /home/ablage/Grafiken/Digicam/test/Bild011.tif -rotate 270 -verbose /home/ablage/Grafiken/Digicam/test/Bild011-rotated.tif

TIFF Directory at offset 0x0 (0)

Subfile Type: multi-page document (2 = 0x2)

Image Width: 3745 Image Length: 5606

Resolution: 4000, 4000 pixels/inch

Bits/Sample: 16

Compression Scheme: None

Photometric Interpretation: RGB color

FillOrder: msb-to-lsb

Orientation: row 0 top, col 0 lhs

Samples/Pixel: 3

Rows/Strip: 1

Planar Configuration: single image plane

DateTime: 2008:02:05 16:49:45

Make: Nikon

Model: Nikon SUPER COOLSCAN 5000 ED

Software: ImageMagick 6.4.3 2008-12-03 Q16 OpenMP http://www.imagemagick.org

DocumentName: /home/ablage/Grafiken/Digicam/test/Bild011-rotated.tif

ICC Profile: <present>, 492 bytes

RichTIFFIPTC Data: <present>, 164 bytes

Speicherzugriffsfehler


Merci!

Günther



_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Rotating TIFF in album View does not work

Gilles Caulier-4
There is no reason for that, or i'm wrong (:=)))

It's sound like an ImageMagick and/or libtiff bug... Please report at
the right place.

I will disable "-verbose" to jpeglossless kipi-plugin.

Gilles

2009/2/20 Günther Erhard <[hidden email]>:

> Salut Gilles,
>
>> I remember a problem with "-verbose" option of "convert" program and
>> tiff file. Try to reproduce on command line without this option to
>> see if tiff file can be rotated.
>>
> Yes you are right!
> Without "-verbose"the image is rotated and I got following log:
>
> convert /home/ablage/Grafiken/Digicam/test/Bild011.tif -rotate 270
> /home/ablage/Grafiken/Digicam/test/Bild011-rotated.tif
>
> convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: invalid TIFF
> directory; tags are not sorted in ascending order. `TIFFReadDirectory'.
>
> convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with
> tag 11 (0xb) encountered. `TIFFReadDirectory'.
>
> convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with
> tag 18246 (0x4746) encountered. `TIFFReadDirectory'.
>
> convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with
> tag 18249 (0x4749) encountered. `TIFFReadDirectory'.
>
> convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with
> tag 40961 (0xa001) encountered. `TIFFReadCustomDirectory'.
>
> convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: invalid TIFF
> directory; tags are not sorted in ascending order. `TIFFReadDirectory'.
>
> convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with
> tag 11 (0xb) encountered. `TIFFReadDirectory'.
>
> convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with
> tag 18246 (0x4746) encountered. `TIFFReadDirectory'.
>
> convert: /home/ablage/Grafiken/Digicam/test/Bild011.tif: unknown field with
> tag 18249 (0x4749) encountered. `TIFFReadDirectory'.
>
> With "-verbose" convert stalls with a memory error:
>
> convert /home/ablage/Grafiken/Digicam/test/Bild011.tif -rotate 270 -verbose
> /home/ablage/Grafiken/Digicam/test/Bild011-rotated.tif
>
> TIFF Directory at offset 0x0 (0)
>
> Subfile Type: multi-page document (2 = 0x2)
>
> Image Width: 3745 Image Length: 5606
>
> Resolution: 4000, 4000 pixels/inch
>
> Bits/Sample: 16
>
> Compression Scheme: None
>
> Photometric Interpretation: RGB color
>
> FillOrder: msb-to-lsb
>
> Orientation: row 0 top, col 0 lhs
>
> Samples/Pixel: 3
>
> Rows/Strip: 1
>
> Planar Configuration: single image plane
>
> DateTime: 2008:02:05 16:49:45
>
> Make: Nikon
>
> Model: Nikon SUPER COOLSCAN 5000 ED
>
> Software: ImageMagick 6.4.3 2008-12-03 Q16 OpenMP http://www.imagemagick.org
>
> DocumentName: /home/ablage/Grafiken/Digicam/test/Bild011-rotated.tif
>
> ICC Profile: <present>, 492 bytes
>
> RichTIFFIPTC Data: <present>, 164 bytes
>
> Speicherzugriffsfehler
>
> Merci!
>
> Günther
>
> _______________________________________________
> 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
Reply | Threaded
Open this post in threaded view
|

Assigning a color profile to TIFF images does not work anymore with 0.10.0

Bugzilla from guenther.erhard@gmx.de
Salut Gilles,


I've used the svn versions for some time now. Yesterday I compiled the latest version and discovered that assigning a color profile does not work anymore.


Use case:
- My workspace profile is set to AdobeRGB
- I load a TIF16 image with an embedded "Nikon Adobe RGB" profile
into the editor
- the editor asks me whether I want to convert, assign or do nothing
- I choose assign as the profiles are identical and to avoid the message
showing again in future
- when I save this image the profile is still the "Nikon Adobe RGB"


The last version from svn which I was using until yesterday was from end of February and worked as expected.


BTW: I discovered an old wish (Bug 138446) in the bug database where some user requested a menu entry for assigning color profiles. Will it be implemented?


Merci !
Günther


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users