After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 491193 - Importf fails for images converted to PNG with digiKam
Importf fails for images converted to PNG with digiKam
Status: RESOLVED DUPLICATE of bug 326411
Product: f-spot
Classification: Other
Component: Import
0.4.x
Other All
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2007-10-28 21:45 UTC by Ivan Dilchovski
Modified: 2007-11-22 16:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ivan Dilchovski 2007-10-28 21:45:23 UTC
Please describe the problem:
When importing image fies, converted to .png with digiKam (0.9.2), an Exception is rised, complaining about "Invalid PNG magic number"

Steps to reproduce:
1. Convert an image to .png with digiKam
2. Try to import the image to F-Spot
3. 


Actual results:
An error pops-up

Expected results:
The image should be imported to the photos collection.

Does this happen every time?
Yes

Other information:
THe terminal output for each image import is like this one:

item ImportCommand+SourceItem
Scanning /Elmo/Pictures/Photo Albums/15.10.2007 Svet RD
Scanning /Elmo/Pictures/Photo Albums/15.10.2007 Svet RD/101MSDCF
item changed
open uri = file:///Elmo/Pictures/Photo Albums/15.10.2007 Svet RD/DSCF1056.png
Error importing /Elmo/Pictures/Photo Albums/15.10.2007 Svet RD/DSCF1056.png
System.Exception: Invalid PNG magic number
  at FSpot.Png.PngFile+PngHeader..ctor (System.IO.Stream stream) [0x00000]
  at FSpot.Png.PngFile.get_Header () [0x00000]
  at FSpot.Png.PngFile.get_Chunks () [0x00000]
  at FSpot.Png.PngFile.get_Date () [0x00000]
  at FileImportBackend.ChooseLocation (System.String path, System.Collections.Stack created_directories) [0x00000]
  at FileImportBackend.Step (.Photo& photo, Gdk.Pixbuf& thumbnail, System.Int32& count) [0x00000]
Could not import file
Comment 1 Maxxer 2007-10-29 08:33:35 UTC
Can you provide one of those failing pictures?
thanks
Comment 2 Maxxer 2007-11-22 16:59:40 UTC
I've exported a picture to png using digikam, and I could import it in f-spot without problems. 

That error shows up when a !png image is imported with png extension.
Since no information has been provided, I believe this was the error you experienced.

To check if the file was really a png, issue
$ file /Elmo/Pictures/Photo Albums/15.10.2007 Svet RD/DSCF1056.png

Reopen in case....

*** This bug has been marked as a duplicate of 326411 ***