Bug 30357 - Scanned Images in Kde and Kword
Summary: Scanned Images in Kde and Kword
Status: RESOLVED FIXED
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Other
: NOR normal
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-07 04:18 UTC by Horst Simon
Modified: 2004-05-17 21:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Horst Simon 2001-08-07 04:04:43 UTC
(*** This bug was imported into bugs.kde.org ***)

Package: Image viewer KWord

Version: KDE 2.1.2; 2.2beta1
             KWord 1.1beta3; 1.1 (RC1)

Linux SuSE 7.2

I am trying to insert  large size scanned images into KWord and noticed 
following problems in KDE Graphic Apps and Kword.

The images are A4 text documents and scanned in black and white in windows 
with 600 or 1200 DPI and saved in png format.

The image can not be seen in the KDE Image Viewer or inserted into Kword 
when I try to insert into Kword the system freezes and a hard reset is 
needed. In Gimp the image size shows up as 4960x7008 pixels when I reduce
the pixel size to 800x1130 I can see the image in the Image Viewer and insert 
into Kword but the quality is very poor and when I try to print the image it 
prints a blank page.

I scanned a page with 200 DPI and was able to display it in the Image Viewer
and insert it into a KWord document but it would print only a blank page too.

I have this problem on different KDE installation and some images will 
display ok but when I print them it prints in revers (Negative image). 

Please let me Know if you need copies of the images.

Regards
Horst Simon

-- 
  E-Mail: hsimon@ico.nec.com.au
  Tel: (03) 9271-4641
  Fax: (03) 9264-3075

  This message was sent by 
  KMail 1.3 Using KDE 2.2beta1 & SuSE Linux 7.2
Comment 1 Horst Simon 2001-08-07 05:51:57 UTC
In Kword 1.1 beta3 the image is displayed but it prints as a blank page 
update KOffice to 1.1(RC1) the image is displayed correct and it prints in 
reverse black background and text in white.

Regards
Horst Simon

-- 
  E-Mail: hsimon@ico.nec.com.au
  Tel: (03) 9271-4641
  Fax: (03) 9264-3075

  This message was sent by 
  KMail 1.3 Using KDE 2.2beta1 & SuSE Linux 7.2
Comment 2 Horst Simon 2003-03-06 03:28:39 UTC
The problem with negative images still exist in Kword 1.2.1 in KDE 3.1. 
KView shows the same problem and Matthias Kretz will correct it in KView and 
he supplied me with following information: 
 
If you want to report bugs to other programs using Qt tell 'em the following: 
 
QImage -> QPixmap conversion defaults to keeping 1 Bit images monochrome.  
Making the conversion with the the ColorOnly flag makes them show correctly. 
 
Comment 3 Nicolas Goutte 2003-09-05 18:54:24 UTC
Subject: koffice/lib/kofficecore

CVS commit by goutte: 

Do not show monochrome images (color-) reversed
CCMAIL:30357-close@bugs.kde.org
CCMAIL:52725@bugs.kde.org


  M +2 -2      koPictureImage.cc   1.20


--- koffice/lib/kofficecore/koPictureImage.cc  #1.19:1.20
@@ -79,10 +79,10 @@ void KoPictureImage::scaleAndCreatePixma
     if ( fastMode )
     {
-        m_cachedPixmap = m_originalImage.scale( size );
+        m_cachedPixmap.convertFromImage(m_originalImage.scale( size ), QPixmap::Color); // Always color or else B/W can be reversed
         m_cacheIsInFastMode=true;
     }
     else
     {
-        m_cachedPixmap = m_originalImage.smoothScale( size );
+        m_cachedPixmap.convertFromImage(m_originalImage.smoothScale( size ), QPixmap::Color); // Always color or else B/W can be reversed
         m_cacheIsInFastMode=false;
     }