Bug 447227

Summary: 4.4.2; export to GIF image file has unwanted punctuation marks when file is viewed
Product: [Applications] krita Reporter: van.ly+kde
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: griffinvalley, halla
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: GIF image file with spotty full stop punctuation marks scattered all over the place
4.4.8; messages on console in the course of Krita crashing after New File

Description van.ly+kde 2021-12-19 12:13:09 UTC
Created attachment 144676 [details]
GIF image file with spotty full stop punctuation marks scattered all over the place

SUMMARY
***
4.4.2; export to GIF image file has unwanted punctuation marks when file is viewed

Exporting file of two east asian symbols to GIF image has unwanted spotty full stop punctuation marks scattered all over.  

For comparison, exporting file of two east asian symbols to PNG image file has clear pure background color and solid foreground color for symbols.
***


STEPS TO REPRODUCE
1. create new document; image size 256x256
2. pick svg text tool; enter east asian character 木 at size 6; separately, enter at size 72
3. pick File/Export GIF image

OBSERVED RESULT
The background canvas has many dotted full stop punctuation marks in intermediate color.

The foreground symbols have spotty intermediated color full stop punctuation marks.

EXPECTED RESULT
Pure white background canvas behind solid color symbols in foreground.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
  Build ABI: arm64-little_endian-lp64
  Build CPU: arm64
  CPU: arm64
  Kernel Type: linux
  Kernel Version: 5.10.63-v8+
  Pretty Productname: Debian GNU/Linux 11 (bullseye)
  Product Type: debian
  Product Version: 11
  Desktop: LXDE
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2021-12-19 12:15:20 UTC
Please update to the most recent release of Krita. We cannot investigate bugs in versions this old. And please use the appimage, since that contains dependencies built with many fixes.
Comment 2 wolthera 2021-12-19 12:20:05 UTC
In krita 5.0 you will be able to turn off the dithering (the little pixels) by changing the gif-image export options.
Comment 3 van.ly+kde 2021-12-20 06:40:33 UTC
# build from source file archive but fail to install

After downloading the source file archive for Krita 4.4.8 version; then using

> sudo apt build-dep krita
> cd krita-build
> cmake ../krita-src -DCMAKE_INSTALL_PREFIX=../krita-4.4.8 -DCMAKE_BUILD_TYPE=Debug -DKRITA_DEVS=ON
> make -j4
> make install

## expected behavior
The install process does not require "sudo" for privileged installation to custom install prefix.

## observed behavior
The install process fails to install without "sudo" privilege to change system shared object files, for example.

# install by "sudo"

> sudo make install
> ../krita-4.4.8/bin/krita &

Some messages were

> No "breeze" available.
> NOT COOL: Duplicated action name from xml data:  "object_BLAH_BLAH_BLAH"
> NOT COOL: Duplicated action name from xml data:  "calligraphy_BLAH_BLAH_BLAH"
> NOT COOL: Duplicated action name from xml data:  "KisBLAH"
> NOT COOL: Duplicated action name from xml data:  "movetool-blah-blah"

Krita-4.4.8 crashes before I am able to recreate the steps for this specific bug.

Krita-4.4.8 does not build and install as describe at

=> https://docs.krita.org/en/untranslatable_pages/building_krita.html
Comment 4 Halla Rempt 2021-12-20 08:59:29 UTC
You should uninstall the distribution version of Krita.
Comment 5 van.ly+kde 2021-12-21 01:13:28 UTC
Created attachment 144738 [details]
4.4.8; messages on console in the course of Krita crashing after New File
Comment 6 van.ly+kde 2021-12-21 01:24:31 UTC
The attachement listing console messages was created after 4Gb Raspberry Pi's Debian 11.2 Krita 4.4.2 was removed and 4.4.8 was built and installed without the need for "sudo"; the crash happens in the course of reproducing the bug at the New File first step. Perhaps, Krita 4.4.2 has changes needed to make it work on aarch64 GNU/Linux the upstream source archive does not have.