lotherk 0d0a144d66 MCDE: PNG, JPEG and GIF in dtphoto, one picture writer in libDtSvc
dtphoto read only BMP and ICO and wrote only BMP; PNG, JPEG and GIF were
listed as open in docs/MCDE-PROGRAMS.md since 2026-11-12.  The reader was
already there: McdeThumbRead in libDtSvc has all five formats, is X-free and
is what dtfile uses for its miniatures.  dtphoto calls it for everything its
own reader does not know, so the program carries no second decoder.

There was no picture writer anywhere in the tree, so McdeThumbWrite now sits
next to the reader: PNG through libpng's simplified API, BMP in C99, the
ending decides, an unknown ending is refused instead of silently becoming a
BMP.

Measured on Xvfb depth 24 (2026-11-22):
- 40x30 PNG -> PNG, 1200 of 1200 pixels identical, CRC checked.
- 40x30 GIF -> PNG, 0 of 1200 pixels different.
- 40x30 JPEG q100 -> PNG, at most 3 steps per channel (compression, not the
  reader); the same picture written from libpng is 0 steps.
- Depth 8: a 32-colour picture comes back 0 of 256 pixels different; a
  1200-colour ramp differs by mean 28.6/255, which is the colormap -- the
  same ramp is 0 on depth 24.

test_thumb writes a 13x7 ramp (every pixel unique) as PNG and BMP and reads
it back pixel for pixel.  Proved the test bites: writing the BMP rows
top-down turns it red at 78 of 91 pixels, PNG_FORMAT_BGR at 91 of 91.  The
unknown-ending and zero-size cases are checked too.

dtphoto: the file dialog filters on every format it reads, not on *.bmp.
All 18 dtphoto test modes stay green on depth 24 and depth 8, test_thumb ok.
2026-11-22 12:06:04 +00:00

CDE - The Common Destop Environment

In 2012, CDE was opensourced under the terms of the LGPL V2 license by the Open Group.

You may reuse and redistribute this code under the terms of this license. See the COPYING file for details.

Downloading

Downloading this release:

CDE may be downloaded in source form from the Common Desktop Environment website:

http://sourceforge.net/projects/cdesktopenv/

Or via git:

git clone git://git.code.sf.net/p/cdesktopenv/code CDE

The git repository will always be more up to date than the downloadable tarballs we make available, so if you have problems, please try the latest version from git master.

Note also that the master branch may be unstable, so your milage may vary.

Compiling

Complete build and installation instructions can be found on the CDE wiki:

http://sourceforge.net/p/cdesktopenv/wiki/Home/

Please go there and read the appropriate section(s) for your OS (Linux or FreeBSD/OpenBSD/NetBSD currently) prior to attmpting to build it.

There are a variety of dependencies that must be met, as well as specific set up steps required to build, especially relating to localization and locales.

Do not expect to just type 'make' and have it actually work without meeting the prerequisites and following the correct steps as spelled out on the wiki.

There are also a lot of other documents and information there that you might find useful.

Assuming you've met all of the requirements regarding packages needed for the build, you can follow the standard autoconf method:

$ ./autogen.sh
$ ./configure
$ make
$ sudo make install

NOTE: BSD users must currently install and use gmake to compile, as well as specify the location of the TCL libraries and headers. So the instructions for them would looke like:

$ ./autogen.sh
$ ./configure --with-tcl=/usr/local/lib/tcl8.6 MAKE="gmake"
$ gmake
$ sudo gmake install

Of course change to location of your TCL directory as needed for your system.

Support

Mailing list

https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

IRC

There is a CDE IRC channel on irc.libera.chat, channel #cde

Patches welcome

Please see

https://sourceforge.net/p/cdesktopenv/wiki/Contributing%20to%20CDE/

for information on how to contribute.

S
Description
MCDE, the Makronix Common Desktop Environment (fork of CDE 2.5.3)
Readme LGPL-2.1
127 MiB
0 Stars 3 Watchers 0 Forks
Languages
C 85.7%
Roff 4.3%
C++ 3.3%
Makefile 3.2%
OMNeT++ MSG 1.2%
Other 1.7%