Summary: | Convert images to png conversion not deterministic | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Bartek Pietrasiak <pietras.sp> |
Component: | Plugin-Bqm-Convert | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, languitar, marcel.wiesweg |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 5.0.0 | |
Sentry Crash Report: | |||
Attachments: |
the mentioned proof ;)
not reproducible not reproducible (2) |
Description
Bartek Pietrasiak
2009-11-05 00:35:42 UTC
Created attachment 38097 [details]
the mentioned proof ;)
One more check. After you have reproduced, check the real file size on hard disk (via e.g. ls). They will be exactly the same ... ;) Similar problem in editor. Please do the following: 1. F4 on some jpg 2. Save it one with max png compression 3. Edit again and save it once again with min compression The files will have different file size on hard disk (what it is expected), but digikam will show files size different from the really ones. Created attachment 38105 [details]
not reproducible
checked in digiKam image editor: this is not reproducible. Sound like a failure from your libpng...
Gilles Caulier
Created attachment 38106 [details]
not reproducible (2)
Same for kipi-plugins Batch Convert image...
Gilles Caulier
So is the problem, as the bug title suggests, a problem with PNG encoding, or is the problem that digikam shows a different file size in its album view, while the PNG encoding itself has no problem at all? Marcel, I'm not sure. perhaps i have a chance. I suspect a problem in Database parser which collect information about image properties. At least, i cannot see a problem with libpng on my computer to generate PNG file with different compression settings. Gilles Caulier There is one more thing which can bee seen in the screens included by Gilles. Kipi produces 4,4 MB png when max compresion. BQM and the editor can create 3,4 MB png for that test file. kipi tool use ImageMagick in background (it use libpng ) digiKam editor use a dedicated framework based on libpng and written in digiKam core (DImg). I don't know why ImageMagick file is larger... At least size are different... Gilles Caulier I've updated the libpng. The problem remains. However, I created a new dir using console and copied the png to this new dir. Digikam found this new dir and display correct values. After selecting "Reread metadata from images" from main menu, I can also see correct values in the old album. This sounds like digikam reads the size of the new files before the conversion has stopped writing the whole file. So a temporary file size is stored in the database. Bartek, This file still valid using kipi-plugins 2.4 ? Gilles Caulier Bartek, This file still valid using kipi-plugins 4.10.0 ? Gilles Caulier New Kipiplugins 4.11.0 is available : https://www.digikam.org/node/740 Can you reproduce the problem with this release ? Gilles Caulier BatchProcessImage is not maintained since a while and is obsolete now. It will be removed with 5.0.0. Use digiKam BQM instead... |