Bug 40560

Summary: Insert->Picture doesn't insert picture
Product: [Unmaintained] kword Reporter: dneary
Component: generalAssignee: Thomas Zander <zander>
Status: CLOSED FIXED    
Severity: normal CC: marsella5.aaa
Priority: NOR    
Version First Reported In: 1.5 or before   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description dneary 2002-04-09 11:17:25 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kword
Version:           1.1.0 (using KDE 2.2.2 )
Severity:          normal
Installed from:    Debian testing/unstable Packages
Compiler:          Binary distribution packages
OS:                Linux
OS/Compiler notes: Not Specified

When opening the Insert Picture dialog the following messages are put to stderr...
QObject::connect: No such slot Preview::clearPreview()
QObject::connect:  (sender name:   'preview')
QObject::connect:  (receiver name: 'unnamed')

The dialog opens and I select a picture/image in the normal way but the Ok button stays greyed out.

I'm afraid I can't be more precise than that because it's a binary install.

Cheers
Dave.

(Submitted via bugs.kde.org)
Comment 1 David Faure 2002-04-09 14:38:48 UTC
On Tuesday 09 April 2002 13:17 dneary@eircom.net wrote:
> Package: kword
> Version: 1.1.0 (using KDE 2.2.2 )

There's koffice-1.1 and koffice-1.1.1...
I assume it's about 1.1.
Note that 1.1.1 fixes a very common "letters are squashed when printing" bug.

> Severity: normal
> Installed from:    Debian testing/unstable Packages
> Compiler:          Binary distribution packages
> OS:                Linux
> OS/Compiler notes: Not Specified
> 
> When opening the Insert Picture dialog the following messages are put to stderr...
> QObject::connect: No such slot Preview::clearPreview()
> QObject::connect:  (sender name:   'preview')
> QObject::connect:  (receiver name: 'unnamed')

That's a harmless warning (which is fixed now)

> The dialog opens and I select a picture/image in the normal way but the Ok button stays greyed out.

Which kind of picture/image? BMP PNG JPEG.... ?
Which Ok button? The one of the file-chooser-dialog or the one of KOffice's insert image dialog?
(If the latter: do you see the image in that dialog?)

Maybe your Qt lacks support for some image types - any way to find out
which flags Qt was compiled with?

-- 
David FAURE david@mandrakesoft.com faure@kde.org
http://people.mandrakesoft.com/~david/ http://www.konqueror.org/
KDE Making The Future of Computing Available Today
Comment 2 David Neary 2002-04-09 15:37:58 UTC
David Faure wrote:
> There's koffice-1.1 and koffice-1.1.1...
> I assume it's about 1.1.
> Note that 1.1.1 fixes a very common "letters are squashed when printing" bug.

I'll try the upgrade thanks :)

> > The dialog opens and I select a picture/image in the normal way but the Ok button stays greyed out.
> 
> Which kind of picture/image? BMP PNG JPEG.... ?
> Which Ok button? The one of the file-chooser-dialog or the one of KOffice's insert image dialog?
> (If the latter: do you see the image in that dialog?)

The images are jpegs. The Ok button is the one in the "Insert
Picture" dialog. The image doesn't appear in the dialog. For
.png .bmp etc the image appears and inserts as expected.

> Maybe your Qt lacks support for some image types - any way to find out
> which flags Qt was compiled with?

Apologies for the vague (and as it happens incorrect) bug report. 
I did a bit of digging and narrowed the symptoms down to those 
above. I also broadened them a little. JPEG images don't preview 
in any kde apps. The basic KDE Image Viewer can't open them. 
Konqueror in full knobs-and-whistles mode doesn't show thumbs. I 
presume that the reason the image doesn't get inserted here is 
because the thumbnail doesn't get previewed.

JPEGs are displayed fine by applications when they're opened the
problem only seems to be in previewing them. libjpeg6b is
installed properly and kde has (as far as I can tell) jpeg
support built in (how would I find out it didn't other than
using ldd which shows a link to libjpeg?). 

I've also since met someone else on #kde-users who has the same
problem. It's an annoyance but it's obviously not life
threatening and since there are others who don't have the
problem it's obviously an issue with my local installation or
configuration. However I'd still like to sort it out :) Do you
have any ideas?

Cheers
Dave.

-- 
       David Neary
    Marseille France
  E-Mail: bolsh@gimp.org
Comment 3 David Faure 2002-04-09 19:23:21 UTC
On Tuesday 09 April 2002 17:37 David Neary wrote:
> David Faure wrote:
> > There's koffice-1.1 and koffice-1.1.1...
> > I assume it's about 1.1.
> > Note that 1.1.1 fixes a very common "letters are squashed when printing" bug.
> 
> I'll try the upgrade thanks :)
> 
> > > The dialog opens and I select a picture/image in the normal way but the Ok button stays greyed out.
> > 
> > Which kind of picture/image? BMP PNG JPEG.... ?
> > Which Ok button? The one of the file-chooser-dialog or the one of KOffice's insert image dialog?
> > (If the latter: do you see the image in that dialog?)
> 
> The images are jpegs. The Ok button is the one in the "Insert
> Picture" dialog. The image doesn't appear in the dialog. For
> .png .bmp etc the image appears and inserts as expected.
> 
> > Maybe your Qt lacks support for some image types - any way to find out
> > which flags Qt was compiled with?
> 
> Apologies for the vague (and as it happens incorrect) bug report. 
> I did a bit of digging and narrowed the symptoms down to those 
> above. I also broadened them a little. JPEG images don't preview 
> in any kde apps. The basic KDE Image Viewer can't open them. 
> Konqueror in full knobs-and-whistles mode doesn't show thumbs. I 
> presume that the reason the image doesn't get inserted here is 
> because the thumbnail doesn't get previewed.
> 
> JPEGs are displayed fine by applications when they're opened the
> problem only seems to be in previewing them. libjpeg6b is
> installed properly and kde has (as far as I can tell) jpeg
> support built in (how would I find out it didn't other than
> using ldd which shows a link to libjpeg?). 
> 
> I've also since met someone else on #kde-users who has the same
> problem. It's an annoyance but it's obviously not life
> threatening and since there are others who don't have the
> problem it's obviously an issue with my local installation or
> configuration. However I'd still like to sort it out :) Do you
> have any ideas?

Yes compile Qt with JPEG support.

-- 
David FAURE david@mandrakesoft.com faure@kde.org
http://people.mandrakesoft.com/~david/ http://www.konqueror.org/
KDE Making The Future of Computing Available Today
Comment 4 David Neary 2002-04-10 09:04:04 UTC
David Faure wrote:
> On Tuesday 09 April 2002 17:37 David Neary wrote:
> > JPEGs are displayed fine by applications when they're opened the
> > problem only seems to be in previewing them. libjpeg6b is
> > installed properly and kde has (as far as I can tell) jpeg
> > support built in (how would I find out it didn't other than
> > using ldd which shows a link to libjpeg?). 
> > Do you have any ideas?
> 
> Yes compile Qt with JPEG support.

Thanks. Although I'm surprised that it's not in there already in
a binary package... thanks again for your help

Dave.

-- 
       David Neary
  E-Mail: bolsh@gimp.org
   Tél: 04 91 72 46 84
Comment 5 David Neary 2002-04-17 15:30:50 UTC
David Neary wrote:
> David Faure wrote:
> > On Tuesday 09 April 2002 17:37 David Neary wrote:
> > > JPEGs are displayed fine by applications when they're opened the
> > > problem only seems to be in previewing them.
> > > Do you have any ideas?
> > 
> > Yes compile Qt with JPEG support.
> 
> Thanks. Although I'm surprised that it's not in there already in
> a binary package... thanks again for your help

Just letting ye know that I got this working by following your
advice. Can I say that I consider it a bug of sorts that the
Insert->Picture function requires an image to be previewable? I
would have thought that it would be possible to have an image
open properly and have an "Unable to generate preview" type
message in the preview widget.

I'm sure there are all kinds of resons why this is not possible 
but it seems to me that it should be.

Cheers
Dave.

-- 
       David Neary
  E-Mail: bolsh@gimp.org
   Tél: 04 91 72 46 84
Comment 6 David Faure 2002-04-17 15:41:23 UTC
On Wednesday 17 April 2002 17:30 David Neary wrote:
> David Neary wrote:
> > David Faure wrote:
> > > On Tuesday 09 April 2002 17:37 David Neary wrote:
> > > > JPEGs are displayed fine by applications when they're opened the
> > > > problem only seems to be in previewing them.
> > > > Do you have any ideas?
> > > 
> > > Yes compile Qt with JPEG support.
> > 
> > Thanks. Although I'm surprised that it's not in there already in
> > a binary package... thanks again for your help
> 
> Just letting ye know that I got this working by following your
> advice. Can I say that I consider it a bug of sorts that the
> Insert->Picture function requires an image to be previewable? I
> would have thought that it would be possible to have an image
> open properly and have an "Unable to generate preview" type
> message in the preview widget.
> 
> I'm sure there are all kinds of resons why this is not possible 
> but it seems to me that it should be.

!? If the dialog can't load the image the document won't be able to load the image
either ... so what good will it do to insert an image that can't be displayed nor printed?

-- 
David FAURE david@mandrakesoft.com faure@kde.org
http://people.mandrakesoft.com/~david/ http://www.konqueror.org/
KDE Making The Future of Computing Available Today