[PATCH] Fix case sensitiveness in Image::outputFormat()

Robby Stephenson robby at periapsis.org
Sun Feb 22 23:40:28 MST 2009


On Sunday 22 February 2009, Sandor Bodo-Merle wrote:
> But there is a bigger problem for me. The supported formats does not
> contain "gif" and it seems that all my gif files ended up as PNGs in the
> tc file :( Now ill try to write a script to fixup this issue ....
> hopefully convert will help .....

I just hit this, too. Evidently, qt4 is compiled with support for reading 
gif files but not writing them.

> Unfortunately i dont know when exactly this happened. Ill try to
> comprehend a bit more the image handling of tellico eventualy to make a
> bit more robust against silent data corruption.

To fix the source of the problem, somehow I need to check about gif-writing 
support, and if not found, then write the image as a true png, not 
forgetting to update the image field value, too. That'll be a bit tricky.

As for working around the problem after it showed up, QImage doesn't seem to 
try anything other than file extension. My first test seems to show that 
loading a QImage from a png file with a gif extension silently fails, 
resulting in a null image. Maybe I'll try to catch that case.

> PS - will tellico have a bugzilla entry on bugs.kde.org???

Probably. I haven't asked for it yet.

Robby


More information about the tellico-users mailing list